http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51297
Bug #: 51297 Summary: [4.7 regressions] Many gcov tests FAIL on Tru64 UNIX, Solaris 8 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile AssignedTo: unassig...@gcc.gnu.org ReportedBy: r...@gcc.gnu.org CC: nat...@gcc.gnu.org Host: alpha-dec-osf5.1b, *-*-solaris2.8 Target: alpha-dec-osf5.1b, *-*-solaris2.8 Build: alpha-dec-osf5.1b, *-*-solaris2.8 Between 20111110 (r181259) and 20111114 (r181350), many gcov tests started to FAIL on Solaris 8 (SPARC and x86) and Tru64 UNIX V5.1B: FAIL: g++.dg/gcov/gcov-1.C gcov failed: FAIL: g++.dg/gcov/gcov-1.C gcov failed: FAIL: g++.dg/gcov/gcov-10.C gcov failed: FAIL: g++.dg/gcov/gcov-10.C gcov failed: FAIL: g++.dg/gcov/gcov-11.C gcov failed: FAIL: g++.dg/gcov/gcov-11.C gcov failed: FAIL: g++.dg/gcov/gcov-2.C gcov failed: FAIL: g++.dg/gcov/gcov-2.C gcov failed: FAIL: g++.dg/gcov/gcov-3.C gcov failed: FAIL: g++.dg/gcov/gcov-3.C gcov failed: FAIL: g++.dg/gcov/gcov-4.C gcov failed: FAIL: g++.dg/gcov/gcov-4.C gcov failed: FAIL: g++.dg/gcov/gcov-5.C gcov failed: FAIL: g++.dg/gcov/gcov-5.C gcov failed: FAIL: g++.dg/gcov/gcov-7.C gcov failed: FAIL: g++.dg/gcov/gcov-7.C gcov failed: FAIL: gcc.misc-tests/gcov-1.c gcov failed: FAIL: gcc.misc-tests/gcov-10.c gcov failed: FAIL: gcc.misc-tests/gcov-10b.c gcov failed: FAIL: gcc.misc-tests/gcov-11.c gcov failed: FAIL: gcc.misc-tests/gcov-12.c gcov failed: FAIL: gcc.misc-tests/gcov-13.c gcov failed: FAIL: gcc.misc-tests/gcovpart-13b.c gcov failed: FAIL: gcc.misc-tests/gcov-14.c (test for excess errors) WARNING: gcc.misc-tests/gcov-14.c compilation failed to produce executable FAIL: gcc.misc-tests/gcov-14.c gcov failed: FAIL: gcc.misc-tests/gcov-15.c gcov failed: FAIL: gcc.misc-tests/gcov-2.c gcov failed: FAIL: gcc.misc-tests/gcov-3.c gcov failed: FAIL: gcc.misc-tests/gcov-4.c gcov failed: FAIL: gcc.misc-tests/gcov-4b.c gcov failed: FAIL: gcc.misc-tests/gcov-5b.c gcov failed: FAIL: gcc.misc-tests/gcov-6.c gcov failed: FAIL: gcc.misc-tests/gcov-7.c gcov failed: FAIL: gcc.misc-tests/gcov-8.c gcov failed: FAIL: gcc.misc-tests/gcov-9.c gcov failed: The message is pretty useless since it states no reason. The problem is that gcov dies with a SEGV: > /var/gcc/regression/trunk/8-gcc-gas/build/gcc/gcov gcov-1.c Segmentation Fault Program received signal SIGSEGV, Segmentation fault. 0x08056d17 in name_search (a_=0x80a2f70, b_=0x7ffffff8) at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:838 838 return strcmp (a, b->name); (gdb) where #0 0x08056d17 in name_search (a_=0x80a2f70, b_=0x7ffffff8) at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:838 #1 0xbf6fc6ae in bsearch () from /usr/lib/libc.so.1 #2 0x08056d88 in find_source (file_name=0x80a2f70 <error reading variable>) at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:866 #3 0x0808066e in read_graph_file (argc=2, argv=0x80479f4) at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:1017 #4 process_file (argc=2, argv=0x80479f4) at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:571 #5 main (argc=2, argv=0x80479f4) at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:423 The second argument to name_search is invalid, it seems. Rainer