Project

General

Profile

Actions

Bug #37719

closed

test_mock_GetLockerRequest.cc:78:3: internal compiler error: Segmentation fault

Added by Kefu Chai over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
build
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

it's a bug in GCC's preprocessor but just want to log it here to increase its "findability".

/usr/bin/c++   -DTEST_LIBRBD_INTERNALS -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__linux__ -isystem /opt/ceph/include -I/home/kchai/ceph/build/src/include -I/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src -isystem /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/build/include -I/usr/include/nss -I/usr/include/nspr -isystem /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/xxHash -isystem /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/rapidjson/include -I/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/googletest/googlemock/include -I/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/googletest/googletest/include  -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -Wno-unknown-pragmas -rdynamic  -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas -Wno-ignored-qualifiers -Wstrict-null-sentinel -Woverloaded-virtual -fno-new-ttp-matching -DCEPH_DEBUG_MUTEX -fstack-protector-strong -std=c++17 -fdiagnostics-color=auto -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -g -fPIE   -DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -o ~/test_mock_GetLockerRequest.bad.o -c /home/kchai/ceph/src/test/librbd/managed_lock/test_mock_GetLockerRequest.cc
/home/kchai/ceph/src/test/librbd/managed_lock/test_mock_GetLockerRequest.cc:78:3: internal compiler error: Segmentation fault
   }
   ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Thread 2.1 "cc1plus" received signal SIGSEGV, Segmentation fault.
[Switching to process 2953]
0x0000000000729b34 in ggc_set_mark(void const*) ()
(gdb) bt
#0  0x0000000000729b34 in ggc_set_mark(void const*) ()
#1  0x00000000006816e8 in gt_ggc_mx_lang_tree_node(void*) ()
#2  0x000000000066f654 in gt_ggc_mx(deferred_access_check&) ()
#3  0x000000000066f618 in gt_ggc_mx_vec_deferred_access_check_va_gc_(void*) ()
#4  0x000000000060a0d4 in gt_ggc_mx_tree_check(void*) ()
#5  0x000000000060a140 in gt_ggc_mx_vec_cp_token_va_gc_(void*) ()
#6  0x000000000060a1bc in gt_ggc_mx_cp_lexer(void*) ()
#7  0x000000000060a388 in gt_ggc_mx_cp_parser(void*) ()
#8  0x000000000088fdf8 in ?? ()
#9  0x000000000089009c in ggc_mark_roots() ()
#10 0x000000000072a550 in ggc_collect() ()
#11 0x000000000078cb40 in cgraph_node::finalize_function(tree_node*, bool) ()
#12 0x000000000066cd50 in expand_or_defer_fn(tree_node*) ()
#13 0x000000000062ca9c in ?? ()
#14 0x000000000062cd18 in ?? ()
#15 0x000000000060d554 in ?? ()
#16 0x000000000060ea94 in ?? ()
#17 0x000000000060f624 in ?? ()
#18 0x00000000006311ec in ?? ()
#19 0x0000000000631f50 in ?? ()
#20 0x000000000061017c in ?? ()
#21 0x00000000006363c4 in ?? ()
#22 0x0000000000636af8 in ?? ()
#23 0x0000000000610288 in ?? ()
#24 0x00000000006363c4 in ?? ()
#25 0x0000000000636af8 in ?? ()
#26 0x0000000000610288 in ?? ()
#27 0x00000000006363c4 in ?? ()
#28 0x00000000006366ec in c_parse_file() ()
#29 0x00000000007098f8 in c_common_parse_file() ()
#30 0x0000000000ab6018 in ?? ()
#31 0x0000000000573020 in toplev::main(int, char**) ()
#32 0x000000000057477c in main ()
 g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.4.0-1ubuntu1~16.04~ppa1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~16.04~ppa1)

the funny thing is that the source can be preprocessed successfully with "-E", and it compiles just fine.

related bug reports:

Actions

Also available in: Atom PDF