public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45877] New: invalid write in gimplify_and_update_call_from_tree
@ 2010-10-03 20:56 dcb314 at hotmail dot com
  2010-10-03 22:05 ` [Bug middle-end/45877] [4.6 Regression] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2010-10-03 20:56 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: invalid write in gimplify_and_update_call_from_tree
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


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

I just tried to compile package freefem++-3.9-1 with the latest 4.6
snapshot 20101002 on a Fedora Linux box. The compiler said

array_long.cpp:127:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

valgrind said

==4313== Invalid write of size 4
==4313==    at 0xD03AFC: gimplify_and_update_call_from_tree (gimple.h:1193)
==4313==    by 0xD05440: fold_gimple_call (gimple-fold.c:1505)
==4313==    by 0xD05AFB: fold_stmt_1 (gimple-fold.c:1581)
==4313==    by 0xA074EC: substitute_and_fold (tree-ssa-propagate.c:1135)
==4313==    by 0x9A7DEC: do_ssa_ccp (tree-ssa-ccp.c:885)
==4313==    by 0x87040E: execute_one_pass (passes.c:1569)
==4313==    by 0x8706A4: execute_pass_list (passes.c:1624)
==4313==    by 0x8706B6: execute_pass_list (passes.c:1625)
==4313==    by 0x86F91B: do_per_function_toporder (passes.c:1160)
==4313==    by 0x870B55: execute_ipa_pass_list (passes.c:1941)
==4313==    by 0xB09B07: cgraph_optimize (cgraphunit.c:1699)
==4313==    by 0xB09CC9: cgraph_finalize_compilation_unit (cgraphunit.c:1020)
==4313==  Address 0x8 is not stack'd, malloc'd or (recently) free'd
==4313==

Source code attached. Flag -O2 required.


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

end of thread, other threads:[~2010-10-05 10:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-03 20:56 [Bug c++/45877] New: invalid write in gimplify_and_update_call_from_tree dcb314 at hotmail dot com
2010-10-03 22:05 ` [Bug middle-end/45877] [4.6 Regression] " rguenth at gcc dot gnu.org
2010-10-04  0:13 ` hjl.tools at gmail dot com
2010-10-04  8:50 ` rguenth at gcc dot gnu.org
2010-10-05 10:37 ` rguenth at gcc dot gnu.org
2010-10-05 10:37 ` 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).