public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57140] New: Segmentation fault in backtrace_dwarf_add
@ 2013-05-02  8:08 dcb314 at hotmail dot com
  2013-05-02  8:48 ` [Bug c++/57140] [4.9 Regression] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2013-05-02  8:08 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57140
           Summary: Segmentation fault in backtrace_dwarf_add
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


Created attachment 29993
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29993
gzipped C++ source code

I just tried to compile the package spectrum-1.4.8-10
on gcc-4.9 trunk dated 20130501 on an AMD x86_64 box.

The compiler said

/home/dcb/rpmbuild/BUILD/spectrum-1.4.8/src/adhoc/adhocadmin.cpp:328:38:
internal compiler error: Segmentation fault
     data.output.sort(compareSDataASC);
                                      ^
0xaa2adf crash_signal
    ../../src/trunk/gcc/toplev.c:333
0xaf3104 copy_loops
    ../../src/trunk/gcc/tree-inline.c:2214
0xafcd56 copy_cfg_body
    ../../src/trunk/gcc/tree-inline.c:2339
0xafcd56 copy_body
    ../../src/trunk/gcc/tree-inline.c:2519
0xb01a3b expand_call_inline
    ../../src/trunk/gcc/tree-inline.c:4119
0xb01a3b gimple_expand_calls_inline
    ../../src/trunk/gcc/tree-inline.c:4226
0xb01a3b optimize_inline_calls(tree_node*)
    ../../src/trunk/gcc/tree-inline.c:4380
0xefef2c inline_transform(cgraph_node*)
    ../../src/trunk/gcc/ipa-inline-transform.c:415
0xa0335f execute_one_ipa_transform_pass
    ../../src/trunk/gcc/passes.c:2175
0xa0335f execute_all_ipa_transforms()
    ../../src/trunk/gcc/passes.c:2215
0x7c6988 expand_function
    ../../src/trunk/gcc/cgraphunit.c:1633
0x7c8706 expand_all_functions
    ../../src/trunk/gcc/cgraphunit.c:1744
0x7c8706 compile()
    ../../src/trunk/gcc/cgraphunit.c:2042
0x7c8dd9 finalize_compilation_unit()
    ../../src/trunk/gcc/cgraphunit.c:2119
0x5eb3b0 cp_write_global_declarations()
    ../../src/trunk/gcc/cp/decl2.c:4330
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Here is a valgrind dump

==10282== Process terminating with default action of signal 11 (SIGSEGV)
==10282==  General Protection Fault
==10282==    at 0xFAF570: backtrace_dwarf_add (dwarf.c:1438)
==10282==    by 0xFAB767: elf_add (elf.c:757)
==10282==    by 0xFABABE: backtrace_initialize (elf.c:858)
==10282==    by 0xFAAB59: fileline_initialize (fileline.c:144)
==10282==    by 0xFAAC61: backtrace_pcinfo (fileline.c:184)
==10282==    by 0xFAA6D0: unwind (backtrace.c:83)
==10282==    by 0xFDA868: _Unwind_Backtrace (unwind.inc:295)
==10282==    by 0xFAA731: backtrace_full (backtrace.c:106)

Preprocessed source code attached. Flag -O3 required.


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

* [Bug c++/57140] [4.9 Regression] Segmentation fault in backtrace_dwarf_add
  2013-05-02  8:08 [Bug c++/57140] New: Segmentation fault in backtrace_dwarf_add dcb314 at hotmail dot com
@ 2013-05-02  8:48 ` mpolacek at gcc dot gnu.org
  2013-05-02  9:22 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-05-02  8:48 UTC (permalink / raw)
  To: gcc-bugs


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-02
                 CC|                            |mpolacek at gcc dot gnu.org
      Known to work|                            |4.8.1
            Summary|Segmentation fault in       |[4.9 Regression]
                   |backtrace_dwarf_add         |Segmentation fault in
                   |                            |backtrace_dwarf_add
     Ever Confirmed|0                           |1
      Known to fail|                            |4.9.0

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-05-02 08:48:01 UTC ---
Confirmed.


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

* [Bug c++/57140] [4.9 Regression] Segmentation fault in backtrace_dwarf_add
  2013-05-02  8:08 [Bug c++/57140] New: Segmentation fault in backtrace_dwarf_add dcb314 at hotmail dot com
  2013-05-02  8:48 ` [Bug c++/57140] [4.9 Regression] " mpolacek at gcc dot gnu.org
@ 2013-05-02  9:22 ` mpolacek at gcc dot gnu.org
  2013-05-02  9:32 ` [Bug middle-end/57140] " rguenth at gcc dot gnu.org
  2013-05-02 15:47 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-05-02  9:22 UTC (permalink / raw)
  To: gcc-bugs


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-05-02 09:22:17 UTC ---
Seems to have started with http://gcc.gnu.org/r198333


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

* [Bug middle-end/57140] [4.9 Regression] Segmentation fault in backtrace_dwarf_add
  2013-05-02  8:08 [Bug c++/57140] New: Segmentation fault in backtrace_dwarf_add dcb314 at hotmail dot com
  2013-05-02  8:48 ` [Bug c++/57140] [4.9 Regression] " mpolacek at gcc dot gnu.org
  2013-05-02  9:22 ` mpolacek at gcc dot gnu.org
@ 2013-05-02  9:32 ` rguenth at gcc dot gnu.org
  2013-05-02 15:47 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-05-02  9:32 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|c++                         |middle-end
   Target Milestone|---                         |4.9.0

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2013-05-02 09:32:21 UTC ---
I will have a look.


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

* [Bug middle-end/57140] [4.9 Regression] Segmentation fault in backtrace_dwarf_add
  2013-05-02  8:08 [Bug c++/57140] New: Segmentation fault in backtrace_dwarf_add dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2013-05-02  9:32 ` [Bug middle-end/57140] " rguenth at gcc dot gnu.org
@ 2013-05-02 15:47 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-05-02 15:47 UTC (permalink / raw)
  To: gcc-bugs


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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-05-02 15:46:56 UTC ---
Author: rguenth
Date: Thu May  2 15:46:12 2013
New Revision: 198548

URL: http://gcc.gnu.org/viewcvs?rev=198548&root=gcc&view=rev
Log:
2013-05-02  Richard Biener  <rguenther@suse.de>

    PR middle-end/57140
    * tree-inline.c (copy_loops): Properly handle removed loops.
    (copy_cfg_body): Mark destination loops for fixup if source
    loops needed fixup.

    * g++.dg/torture/pr57140.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr57140.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


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

end of thread, other threads:[~2013-05-02 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-02  8:08 [Bug c++/57140] New: Segmentation fault in backtrace_dwarf_add dcb314 at hotmail dot com
2013-05-02  8:48 ` [Bug c++/57140] [4.9 Regression] " mpolacek at gcc dot gnu.org
2013-05-02  9:22 ` mpolacek at gcc dot gnu.org
2013-05-02  9:32 ` [Bug middle-end/57140] " rguenth at gcc dot gnu.org
2013-05-02 15:47 ` rguenth at gcc dot gnu.org

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).