public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54647] New: Segmentation fault in get_expr_value_id with -O2
Date: Thu, 20 Sep 2012 22:13:00 -0000	[thread overview]
Message-ID: <bug-54647-4@http.gcc.gnu.org/bugzilla/> (raw)


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.


             reply	other threads:[~2012-09-20 22:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 22:13 dcb314 at hotmail dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-54647-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).