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: [email protected]
ReportedBy: [email protected]
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.