public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27793]  New: num_ssa_names inconsistent or immediate use iterator wrong
@ 2006-05-29 10:47 rguenth at gcc dot gnu dot org
  2006-05-29 10:47 ` [Bug middle-end/27793] " rguenth at gcc dot gnu dot org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-29 10:47 UTC (permalink / raw)
  To: gcc-bugs

The testcase I'll attach momentarily segfaults/ICEs at random places for a
checking enabled 4.1.1 compiler.  Valgrind has more useful information as

==31272== Invalid read of size 4
==31272==    at 0x82AC3C3: verify_ssa (tree-ssa.c:746)
==31272==    by 0x8731ED8: execute_todo (passes.c:761)
...
==31272==  Address 0x456FA58 is 8 bytes after a block of size 120 alloc'd
==31272==    at 0x402064B: calloc (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==31272==    by 0x88D0817: xcalloc (xmalloc.c:162)
==31272==    by 0x82ABA7F: verify_ssa (tree-ssa.c:637)

which means we access definition_block[SSA_NAME_VERSION (op)] with
SSA_NAME_VERSION (op) >= num_ssa_names.  Attaching with gdb at this point
also shows op being corrupt (0x433230c), so it may be well the iterator
being bogus.

It's hard to reduce the testcase further as it is very sensitive to number
of ssa names and allocation profile.


-- 
           Summary: num_ssa_names inconsistent or immediate use iterator
                    wrong
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-08-13 19:27 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-29 10:47 [Bug middle-end/27793] New: num_ssa_names inconsistent or immediate use iterator wrong rguenth at gcc dot gnu dot org
2006-05-29 10:47 ` [Bug middle-end/27793] " rguenth at gcc dot gnu dot org
2006-05-29 10:48 ` rguenth at gcc dot gnu dot org
2006-05-29 12:43 ` rguenth at gcc dot gnu dot org
2006-05-29 13:17 ` rguenth at gcc dot gnu dot org
2006-05-29 13:46 ` rguenth at gcc dot gnu dot org
2006-05-29 14:05 ` rguenth at gcc dot gnu dot org
2006-05-29 14:09 ` [Bug middle-end/27793] [4.1 Regression] " rguenth at gcc dot gnu dot org
2006-05-29 14:15 ` rguenth at gcc dot gnu dot org
2006-05-29 14:19 ` rguenth at gcc dot gnu dot org
2006-05-29 16:14 ` pinskia at gcc dot gnu dot org
2006-05-30 22:05 ` amacleod at redhat dot com
2006-06-01 11:48 ` jakub at gcc dot gnu dot org
2006-06-01 14:59 ` mark at codesourcery dot com
2006-06-06 15:02 ` amacleod at redhat dot com
2006-06-06 16:57 ` mark at codesourcery dot com
2006-06-06 19:10 ` pinskia at gcc dot gnu dot org
2006-06-06 19:44 ` amacleod at redhat dot com
2006-06-07  2:32 ` amacleod at gcc dot gnu dot org
2006-06-08  1:24 ` amacleod at gcc dot gnu dot org
2006-06-08 14:20 ` rguenth at gcc dot gnu dot org
2006-06-13  9:22 ` jakub at gcc dot gnu dot org
2006-06-15 13:31 ` amacleod at gcc dot gnu dot org
2006-08-13 19:27 ` jakub at gcc dot gnu dot 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).