This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54647] New: Segmentation fault in get_expr_value_id with -O2
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Sep 2012 22:13:27 +0000
- Subject: [Bug c++/54647] New: Segmentation fault in get_expr_value_id with -O2
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54647
Bug #: 54647
Summary: Segmentation fault in get_expr_value_id with -O2
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dcb314@hotmail.com
Created attachment 28240
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28240
C++ source code
I just tried to compile the package kdelibs3-3.5.10-39
on gcc-4.8 trunk dated 20120919 on an AMD x86_64 box.
The compiler said
render_table.cpp: In member function 'void khtml::RenderTable::splitColumn(int,
int)':
render_table.cpp:563:6: internal compiler error: Segmentation fault
void RenderTable::splitColumn( int pos, int firstSpan )
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Here is valgrind helping out with a stack backtrace
==27576== Invalid read of size 4
==27576== at 0xB5BAC8: get_expr_value_id(pre_expr_d*) (tree-ssa-pre.c:615)
==27576== by 0xB6346A: find_or_generate_expression(basic_block_def*,
pre_expr_d*, gimple_statement_d**, gimple_statement_d*) [clone .constprop.104]
(tree-ssa-pre.c:2894)
==27576== by 0xB60282: create_expression_by_pieces(basic_block_def*,
pre_expr_d*, gimple_statement_d**, gimple_statement_d*, tree_node*) [clone
.constprop.103] (tree-ssa-pre.c:2995)
==27576== by 0xB606FD: insert_into_preds_of_block(basic_block_def*, unsigned
int, vec_t<pre_expr_d*>*) (tree-ssa-pre.c:3234)
==27576== by 0xB61743: insert_aux(basic_block_def*) (tree-ssa-pre.c:3524)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)
==27576== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27576==
Preprocessed source code attached. Flag -O2 required.