public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
@ 2010-08-06 22:59 zsojka at seznam dot cz
2010-08-06 23:00 ` [Bug tree-optimization/45219] " zsojka at seznam dot cz
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-08-06 22:59 UTC (permalink / raw)
To: gcc-bugs
Command line:
$ gcc -O2 -fprofile-generate testcase.c
Valgrind output:
==8227== Invalid read of size 8
==8227== at 0x60BB4B: dominated_by_p (dominance.c:973)
==8227== by 0x950317: dse_enter_block (tree-ssa-dse.c:198)
==8227== by 0xF18CC6: walk_dominator_tree (domwalk.c:188)
==8227== by 0x94F9F2: tree_ssa_dse (tree-ssa-dse.c:429)
==8227== by 0x7BD50B: execute_one_pass (passes.c:1564)
==8227== by 0x7BD7A4: execute_pass_list (passes.c:1619)
==8227== by 0x7BD7B6: execute_pass_list (passes.c:1620)
==8227== by 0x8FF355: tree_rest_of_compilation (tree-optimize.c:452)
==8227== by 0xAB6505: cgraph_expand_function (cgraphunit.c:1643)
==8227== by 0xAB9389: cgraph_optimize (cgraphunit.c:1722)
==8227== by 0xAB997A: cgraph_finalize_compilation_unit (cgraphunit.c:1185)
==8227== by 0x4DF88E: c_write_global_declarations (c-decl.c:9698)
==8227== Address 0x20 is not stack'd, malloc'd or (recently) free'd
==8227==
testcase.c: In function 'foo':
testcase.c:12:5: 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.
Tested revisions:
r162940 - crash
r162456 - OK
--
Summary: [4.6 Regression] ICE: SIGSEGV in dominated_by_p
(dominance.c:973) with -O2 -fprofile-generate
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
2010-08-06 22:59 [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate zsojka at seznam dot cz
@ 2010-08-06 23:00 ` zsojka at seznam dot cz
2010-08-07 10:38 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-08-06 23:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2010-08-06 23:00 -------
Created an attachment (id=21429)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21429&action=view)
reduced testcase (from gcc.dg/tree-ssa/20041008-1.c)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
2010-08-06 22:59 [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate zsojka at seznam dot cz
2010-08-06 23:00 ` [Bug tree-optimization/45219] " zsojka at seznam dot cz
@ 2010-08-07 10:38 ` rguenth at gcc dot gnu dot org
2010-08-07 10:44 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-07 10:38 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
2010-08-06 22:59 [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate zsojka at seznam dot cz
2010-08-06 23:00 ` [Bug tree-optimization/45219] " zsojka at seznam dot cz
2010-08-07 10:38 ` rguenth at gcc dot gnu dot org
@ 2010-08-07 10:44 ` rguenth at gcc dot gnu dot org
2010-08-07 18:46 ` hjl dot tools at gmail dot com
2010-09-02 11:16 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-07 10:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-08-07 10:44 -------
Confirmed.
(gdb) call debug_gimple_stmt ($1)
.MEM_15 = PHI <.MEM_19
Program received signal SIGSEGV, Segmentation fault.
0x08384621 in gimple_phi_arg_edge (gs=0xb77611b0, i=0)
at /home/richard/src/trunk/gcc/tree-flow-inline.h:479
479 return EDGE_PRED (gimple_bb (gs), i);
Immediate uses are hosed before DSE. And partial inlining is the cause.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-08-07 10:44:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
2010-08-06 22:59 [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-08-07 10:44 ` rguenth at gcc dot gnu dot org
@ 2010-08-07 18:46 ` hjl dot tools at gmail dot com
2010-09-02 11:16 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-08-07 18:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hjl dot tools at gmail dot com 2010-08-07 18:46 -------
It is caused by revision 162842:
http://gcc.gnu.org/ml/gcc-cvs/2010-08/msg00053.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
2010-08-06 22:59 [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-08-07 18:46 ` hjl dot tools at gmail dot com
@ 2010-09-02 11:16 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-02 11:16 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
[not found] <bug-45219-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2010-10-28 22:40 ` hjl.tools at gmail dot com
@ 2010-11-03 16:10 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-03 16:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-03 16:10:31 UTC ---
*** Bug 45220 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
[not found] <bug-45219-4@http.gcc.gnu.org/bugzilla/>
2010-10-28 20:26 ` pinskia at gcc dot gnu.org
2010-10-28 20:36 ` zsojka at seznam dot cz
@ 2010-10-28 22:40 ` hjl.tools at gmail dot com
2010-11-03 16:10 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-28 22:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-28 22:39:39 UTC ---
It was fixed by revision 163775:
http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00066.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
[not found] <bug-45219-4@http.gcc.gnu.org/bugzilla/>
2010-10-28 20:26 ` pinskia at gcc dot gnu.org
@ 2010-10-28 20:36 ` zsojka at seznam dot cz
2010-10-28 22:40 ` hjl.tools at gmail dot com
2010-11-03 16:10 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-28 20:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-28 20:36:20 UTC ---
It seems to have disappeared between r163636 and r165699. Both original and
reduced testcase stopped crashing between those revisions.
4.5 r165781 doesn't crash as well.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate
[not found] <bug-45219-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-28 20:26 ` pinskia at gcc dot gnu.org
2010-10-28 20:36 ` zsojka at seznam dot cz
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-10-28 20:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-28 20:26:24 UTC ---
This works with
GNU C (GCC) version 4.6.0 20101026 (experimental) [trunk revision 165988]
(x86_64-unknown-linux-gnu)
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-11-03 16:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-06 22:59 [Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate zsojka at seznam dot cz
2010-08-06 23:00 ` [Bug tree-optimization/45219] " zsojka at seznam dot cz
2010-08-07 10:38 ` rguenth at gcc dot gnu dot org
2010-08-07 10:44 ` rguenth at gcc dot gnu dot org
2010-08-07 18:46 ` hjl dot tools at gmail dot com
2010-09-02 11:16 ` rguenth at gcc dot gnu dot org
[not found] <bug-45219-4@http.gcc.gnu.org/bugzilla/>
2010-10-28 20:26 ` pinskia at gcc dot gnu.org
2010-10-28 20:36 ` zsojka at seznam dot cz
2010-10-28 22:40 ` hjl.tools at gmail dot com
2010-11-03 16:10 ` 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).