public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54647] New: Segmentation fault in get_expr_value_id with -O2
@ 2012-09-20 22:13 dcb314 at hotmail dot com
  2012-09-20 23:40 ` [Bug c++/54647] " markus at trippelsdorf dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2012-09-20 22:13 UTC (permalink / raw)
  To: gcc-bugs


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.


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

end of thread, other threads:[~2012-09-21 12:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-20 22:13 [Bug c++/54647] New: Segmentation fault in get_expr_value_id with -O2 dcb314 at hotmail dot com
2012-09-20 23:40 ` [Bug c++/54647] " markus at trippelsdorf dot de
2012-09-20 23:56 ` paolo.carlini at oracle dot com
2012-09-20 23:56 ` paolo.carlini at oracle dot com
2012-09-21  8:55 ` [Bug tree-optimization/54647] [4.8 Regression] " rguenth at gcc dot gnu.org
2012-09-21  9:46 ` rguenth at gcc dot gnu.org
2012-09-21 12:44 ` rguenth at gcc dot gnu.org
2012-09-21 12:46 ` 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).