[Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Thu Sep 27 11:12:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54726

             Bug #: 54726
           Summary: libbacktrace segfaults on gcc_asserts with stripped
                    gcc
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


On gcc installed with "make install-strip" libbacktrace outputs
bogus "internal compiler error: Segmentation fault" on normal 
gcc_asserts.

For example the testcase from Bug 54694 now prints:

markus@x4 tmp % gcc -w -Wfatal-errors -mavx -m32 -c -O2 test.i
test.i: In function ‘helper_fldl_ST0’:
test.i:20:1: internal compiler error: in dwarf2out_frame_debug_expr, at
dwarf2cfi.c:1532
 }
 ^
test.i:20:1: internal compiler error: Segmentation fault
gcc: internal compiler error: Segmentation fault (program cc1)
[1]    6684 segmentation fault  gcc -w -Wfatal-errors -mavx -m32 -c -O2 test.i

and this also gets logged in syslog (from dmesg):
cc1[6685]: segfault at 0 ip           (null) sp 00007fffe5fa8828 error 14 in
cc1[400000+a78000]
gcc[6684]: segfault at 0 ip           (null) sp 00007fff672976b8 error 14 in
gcc[400000+97000]



More information about the Gcc-bugs mailing list