public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc
@ 2012-09-27 11:12 markus at trippelsdorf dot de
  2012-09-27 11:42 ` [Bug other/54726] [4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-27 11:12 UTC (permalink / raw)
  To: gcc-bugs


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]


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54726] [4.8 Regression] libbacktrace segfaults on gcc_asserts with stripped gcc
  2012-09-27 11:12 [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc markus at trippelsdorf dot de
@ 2012-09-27 11:42 ` rguenth at gcc dot gnu.org
  2012-09-27 15:36 ` ian at airs dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-27 11:42 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |ian at airs dot com
   Target Milestone|---                         |4.8.0
            Summary|libbacktrace segfaults on   |[4.8 Regression]
                   |gcc_asserts with stripped   |libbacktrace segfaults on
                   |gcc                         |gcc_asserts with stripped
                   |                            |gcc

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-27 11:41:51 UTC ---
Exactly what I feared ... (Linux distributors ship stripped binaries /
libraries).


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54726] [4.8 Regression] libbacktrace segfaults on gcc_asserts with stripped gcc
  2012-09-27 11:12 [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc markus at trippelsdorf dot de
  2012-09-27 11:42 ` [Bug other/54726] [4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-09-27 15:36 ` ian at airs dot com
  2012-09-27 15:45 ` markus at trippelsdorf dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ian at airs dot com @ 2012-09-27 15:36 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2012-09-27 15:36:30 UTC ---
The segfault is a bug I will fix, but the fact that the backtrace doesn't work
doesn't matter.  We didn't have the backtrace information before, and we won't
have it in this case either.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54726] [4.8 Regression] libbacktrace segfaults on gcc_asserts with stripped gcc
  2012-09-27 11:12 [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc markus at trippelsdorf dot de
  2012-09-27 11:42 ` [Bug other/54726] [4.8 Regression] " rguenth at gcc dot gnu.org
  2012-09-27 15:36 ` ian at airs dot com
@ 2012-09-27 15:45 ` markus at trippelsdorf dot de
  2012-09-27 19:21 ` ian at gcc dot gnu.org
  2012-09-27 19:26 ` ian at airs dot com
  4 siblings, 0 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-27 15:45 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-27 15:45:05 UTC ---
(In reply to comment #2)
> The segfault is a bug I will fix, but the fact that the backtrace doesn't work
> doesn't matter.  We didn't have the backtrace information before, and we won't
> have it in this case either.

But gcc configures and builds libbacktrace even if one intents to strip
the gcc binaries. Therefore a configure option would be appreciated, simply
to save some build time in this case.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54726] [4.8 Regression] libbacktrace segfaults on gcc_asserts with stripped gcc
  2012-09-27 11:12 [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc markus at trippelsdorf dot de
                   ` (2 preceding siblings ...)
  2012-09-27 15:45 ` markus at trippelsdorf dot de
@ 2012-09-27 19:21 ` ian at gcc dot gnu.org
  2012-09-27 19:26 ` ian at airs dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ian at gcc dot gnu.org @ 2012-09-27 19:21 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-09-27 19:20:53 UTC ---
Author: ian
Date: Thu Sep 27 19:20:49 2012
New Revision: 191811

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191811
Log:
    PR other/54726
    * elf.c (backtrace_initialize): Set *fileln_fn, not
    state->fileln_fn.

Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/elf.c


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54726] [4.8 Regression] libbacktrace segfaults on gcc_asserts with stripped gcc
  2012-09-27 11:12 [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc markus at trippelsdorf dot de
                   ` (3 preceding siblings ...)
  2012-09-27 19:21 ` ian at gcc dot gnu.org
@ 2012-09-27 19:26 ` ian at airs dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ian at airs dot com @ 2012-09-27 19:26 UTC (permalink / raw)
  To: gcc-bugs


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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> 2012-09-27 19:25:49 UTC ---
Bug fixed.

The libbacktrace library is very small compared to GCC as a whole.  I really
don't think it's worth adding yet another configuration option, one that
ideally would be tested but in practice would simply bitrot, merely to save the
time it takes to compile 8 C files, 6 of which are very short.

There are currently only 5824 lines of C code in the entire libbacktrace
library.  I really can't accept that compiling those files is a significant
time penalty for somebody who is already building all of GCC.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-27 19:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-27 11:12 [Bug other/54726] New: libbacktrace segfaults on gcc_asserts with stripped gcc markus at trippelsdorf dot de
2012-09-27 11:42 ` [Bug other/54726] [4.8 Regression] " rguenth at gcc dot gnu.org
2012-09-27 15:36 ` ian at airs dot com
2012-09-27 15:45 ` markus at trippelsdorf dot de
2012-09-27 19:21 ` ian at gcc dot gnu.org
2012-09-27 19:26 ` ian at airs dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).