public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608
@ 2012-09-19 18:40 burnus at gcc dot gnu.org
2012-09-19 19:09 ` [Bug middle-end/54629] " burnus at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-19 18:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54629
Bug #: 54629
Summary: [4.8 Regression] ICE (segfault) in index_in_loop_nest
tree-data-ref.h:608
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Seemingly, some noninitialized memory is now accessed. At least
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
gfortran -O3 -fomit-frame-pointer -c gfortran.dg/array_assignment_1.F90
now gives an ICE (segfault) with the follow backtrace:
#0 0x00000000009d7c7c in index_in_loop_nest (loop_nest=0x1614460, var=1) at
/home/tob/projects/gcc-git/gcc/gcc/tree-data-ref.h:608
#1 classify_partition (partition=0x1602ef0, loop=0x2aaaac194660,
rdg=<optimized out>) at
/home/tob/projects/gcc-git/gcc/gcc/tree-loop-distribution.c:1039
#2 ldist_gen (starting_vertices=<optimized out>, rdg=0x164aa80,
loop=<optimized out>) at
/home/tob/projects/gcc-git/gcc/gcc/tree-loop-distribution.c:1308
#3 distribute_loop (stmts=<optimized out>, loop=<optimized out>) at
/home/tob/projects/gcc-git/gcc/gcc/tree-loop-distribution.c:1463
#4 tree_loop_distribution () at
/home/tob/projects/gcc-git/gcc/gcc/tree-loop-distribution.c:1531
#5 0x00000000008d940d in execute_one_pass (pass=pass@entry=0x14bd040
<pass_loop_distribution>) at /home/tob/projects/gcc-git/gcc/gcc/passes.c:2206
#6 0x00000000008d97c5 in execute_pass_list (pass=0x14bd040
<pass_loop_distribution>) at /home/tob/projects/gcc-git/gcc/gcc/passes.c:2261
#7 0x00000000008d97d7 in execute_pass_list (pass=0x14be080 <pass_tree_loop>)
at /home/tob/projects/gcc-git/gcc/gcc/passes.c:2262
#8 0x00000000008d97d7 in execute_pass_list (pass=0x14bb520
<pass_all_optimizations>) at /home/tob/projects/gcc-git/gcc/gcc/passes.c:2262
#9 0x00000000006e0118 in expand_function (node=0x2aaaac2a5ea0) at
/home/tob/projects/gcc-git/gcc/gcc/cgraphunit.c:1609
#10 0x00000000006e2002 in expand_all_functions () at
/home/tob/projects/gcc-git/gcc/gcc/cgraphunit.c:1714
#11 compile () at /home/tob/projects/gcc-git/gcc/gcc/cgraphunit.c:2012
#12 0x00000000006e25f5 in finalize_compilation_unit () at
/home/tob/projects/gcc-git/gcc/gcc/cgraphunit.c:2089
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/54629] [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608
2012-09-19 18:40 [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608 burnus at gcc dot gnu.org
@ 2012-09-19 19:09 ` burnus at gcc dot gnu.org
2012-09-20 7:39 ` [Bug tree-optimization/54629] " jakub at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-19 19:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54629
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
Target Milestone|--- |4.8.0
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-09-19 19:09:13 UTC ---
Caused by:
Author: rguenth
Date: Wed Sep 19 08:59:06 2012
New Revision: 191463
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191463
Log:
2012-09-19 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54132
* tree-loop-distribution.c (classify_partition): Properly
check dependences for memmove.
* tree-data-ref.h (compute_affine_dependence): Declare.
* tree-data-ref.c (compute_affine_dependence): Export.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/54629] [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608
2012-09-19 18:40 [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608 burnus at gcc dot gnu.org
2012-09-19 19:09 ` [Bug middle-end/54629] " burnus at gcc dot gnu.org
@ 2012-09-20 7:39 ` jakub at gcc dot gnu.org
2012-09-20 7:41 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 7:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54629
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-09-20
CC| |jakub at gcc dot gnu.org
Component|middle-end |tree-optimization
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/54629] [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608
2012-09-19 18:40 [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608 burnus at gcc dot gnu.org
2012-09-19 19:09 ` [Bug middle-end/54629] " burnus at gcc dot gnu.org
2012-09-20 7:39 ` [Bug tree-optimization/54629] " jakub at gcc dot gnu.org
@ 2012-09-20 7:41 ` jakub at gcc dot gnu.org
2012-09-21 11:54 ` rguenth at gcc dot gnu.org
2012-09-21 11:55 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 7:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54629
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-20 07:41:01 UTC ---
Created attachment 28225
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28225
gcc48-pr54629.patch
IMHO there are two issues - one is that the loop nest is freed too early,
before it is still used, and another one that on success the ddr isn't freed at
all, so we leak memory.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/54629] [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608
2012-09-19 18:40 [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608 burnus at gcc dot gnu.org
` (2 preceding siblings ...)
2012-09-20 7:41 ` jakub at gcc dot gnu.org
@ 2012-09-21 11:54 ` rguenth at gcc dot gnu.org
2012-09-21 11:55 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-21 11:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54629
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-21 11:54:19 UTC ---
Author: rguenth
Date: Fri Sep 21 11:54:14 2012
New Revision: 191611
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191611
Log:
2012-09-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/54629
* tree-loop-distribution.c (classify_partition): Free loop nest only
after freeing ddr. Free ddr and loop nest also if successful.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-loop-distribution.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/54629] [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608
2012-09-19 18:40 [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608 burnus at gcc dot gnu.org
` (3 preceding siblings ...)
2012-09-21 11:54 ` rguenth at gcc dot gnu.org
@ 2012-09-21 11:55 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-21 11:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54629
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-21 11:55:24 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-09-21 11:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-19 18:40 [Bug middle-end/54629] New: [4.8 Regression] ICE (segfault) in index_in_loop_nest tree-data-ref.h:608 burnus at gcc dot gnu.org
2012-09-19 19:09 ` [Bug middle-end/54629] " burnus at gcc dot gnu.org
2012-09-20 7:39 ` [Bug tree-optimization/54629] " jakub at gcc dot gnu.org
2012-09-20 7:41 ` jakub at gcc dot gnu.org
2012-09-21 11:54 ` rguenth at gcc dot gnu.org
2012-09-21 11:55 ` 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).