https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62047
Bug ID: 62047 Summary: --coverage segfault in libcilkrts Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: glisse at gcc dot gnu.org export CFLAGS=--coverage export CXXFLAGS=--coverage /path/to/configure --enable-languages=c,c++ --with-system-zlib --disable-nls --disable-bootstrap make -j 12 [...] libtool: compile: /tmp/gcc-bug/build/./gcc/xg++ -B/tmp/gcc-bug/build/./gcc/ -nostdinc++ -nostdinc++ -I/tmp/gcc-bug/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/gcc-bug/build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/data/repos/gcc/trunk/libstdc++-v3/libsupc++ -I/data/repos/gcc/trunk/libstdc++-v3/include/backward -I/data/repos/gcc/trunk/libstdc++-v3/testsuite/util -L/tmp/gcc-bug/build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/tmp/gcc-bug/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/gcc-bug/build/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/tmp/gcc-bug/inst/x86_64-unknown-linux-gnu/bin/ -B/tmp/gcc-bug/inst/x86_64-unknown-linux-gnu/lib/ -isystem /tmp/gcc-bug/inst/x86_64-unknown-linux-gnu/include -isystem /tmp/gcc-bug/inst/x86_64-unknown-linux-gnu/sys-include "-DPACKAGE_NAME=\"Cilk Runtime Library\"" -DPACKAGE_TARNAME=\"cilk-runtime-library\" -DPACKAGE_VERSION=\"2.0\" "-DPACKAGE_STRING=\"Cilk Runtime Library 2.0\"" -DPACKAGE_BUGREPORT=\"c...@intel.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cilk-runtime-library\" -DVERSION=\"2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_ATTRIBUTE_VISIBILITY=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/data/repos/gcc/trunk/libcilkrts -I/data/repos/gcc/trunk/libcilkrts/include -I/data/repos/gcc/trunk/libcilkrts/runtime -I/data/repos/gcc/trunk/libcilkrts/runtime/config/x86 -DIN_CILK_RUNTIME=1 -fcilkplus -g -O2 --coverage -D_GNU_SOURCE -MT cilk-abi-cilk-for.lo -MD -MP -MF .deps/cilk-abi-cilk-for.Tpo -c /data/repos/gcc/trunk/libcilkrts/runtime/cilk-abi-cilk-for.cpp -fPIC -DPIC -o .libs/cilk-abi-cilk-for.o /data/repos/gcc/trunk/libcilkrts/runtime/cilk-abi-cilk-for.cpp:414:1: internal compiler error: Segmentation fault } // end extern "C" ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Makefile:782: recipe for target 'cilk-abi-cilk-for.lo' failed make[2]: *** [cilk-abi-cilk-for.lo] Error 1 make[2]: Leaving directory '/tmp/gcc-bug/build/x86_64-unknown-linux-gnu/libcilkrts' Makefile:10846: recipe for target 'all-target-libcilkrts' failed Note that this is not the only file in libcilk that causes a segfault. If I do a more minimal build (in particular without cilk) I still have issues because libgcc_s depends on atexit, but at least the build can finish.