public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta
@ 2014-07-26 12:02 zsojka at seznam dot cz
2014-07-28 8:15 ` [Bug ipa/61921] " trippels at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2014-07-26 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61921
Bug ID: 61921
Summary: [4.10 Regression] ICE: SIGSEGV in
varpool_node::get_constructor(), at varpool.c:275 with
-O2 -fipa-pta
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Created attachment 33189
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33189&action=edit
reduced testcase
Compiler output (under valgrind):
$ gcc -O2 -fipa-pta testcase.C
==11993== Invalid read of size 8
==11993== at 0xFA105D: varpool_node::get_constructor() (varpool.c:275)
==11993== by 0xE9FFAA: create_variable_info_for_1(tree_node*, char const*)
(tree-ssa-structalias.c:5674)
==11993== by 0xEA2D92: intra_create_variable_infos(function*) [clone
.isra.123] (tree-ssa-structalias.c:5888)
==11993== by 0xEABF2D: (anonymous
namespace)::pass_ipa_pta::execute(function*) (tree-ssa-structalias.c:7190)
==11993== by 0xC190AC: execute_one_pass(opt_pass*) (passes.c:2149)
==11993== by 0xC19CBA: execute_ipa_pass_list(opt_pass*) (passes.c:2539)
==11993== by 0x947386: compile() (cgraphunit.c:2219)
==11993== by 0x9480A4: finalize_compilation_unit() (cgraphunit.c:2338)
==11993== by 0x72441C: cp_write_global_declarations() (decl2.c:4684)
==11993== by 0xD1314C: compile_file() (toplev.c:562)
==11993== by 0xD15484: toplev_main(int, char**) (toplev.c:1938)
==11993== by 0x5A46BF4: (below main) (in /lib64/libc-2.17.so)
==11993== Address 0x8 is not stack'd, malloc'd or (recently) free'd
==11993==
testcase.C:21: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.
Tested revisions:
r213075 - ICE
r213035 - ICE
r212969 - OK
4_9 r212703 - OK
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/61921] [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta
2014-07-26 12:02 [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta zsojka at seznam dot cz
@ 2014-07-28 8:15 ` trippels at gcc dot gnu.org
2014-07-28 8:18 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-07-28 8:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61921
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Joost.VandeVondele at mat dot ethz
| |.ch
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 61932 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/61921] [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta
2014-07-26 12:02 [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta zsojka at seznam dot cz
2014-07-28 8:15 ` [Bug ipa/61921] " trippels at gcc dot gnu.org
@ 2014-07-28 8:18 ` pinskia at gcc dot gnu.org
2014-07-28 8:20 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-07-28 8:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61921
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.10.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/61921] [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta
2014-07-26 12:02 [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta zsojka at seznam dot cz
2014-07-28 8:15 ` [Bug ipa/61921] " trippels at gcc dot gnu.org
2014-07-28 8:18 ` pinskia at gcc dot gnu.org
@ 2014-07-28 8:20 ` rguenth at gcc dot gnu.org
2014-07-28 8:25 ` rguenth at gcc dot gnu.org
2014-07-28 8:26 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-07-28 8:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61921
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-07-28
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/61921] [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta
2014-07-26 12:02 [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta zsojka at seznam dot cz
` (2 preceding siblings ...)
2014-07-28 8:20 ` rguenth at gcc dot gnu.org
@ 2014-07-28 8:25 ` rguenth at gcc dot gnu.org
2014-07-28 8:26 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-07-28 8:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61921
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/61921] [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta
2014-07-26 12:02 [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta zsojka at seznam dot cz
` (3 preceding siblings ...)
2014-07-28 8:25 ` rguenth at gcc dot gnu.org
@ 2014-07-28 8:26 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-07-28 8:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61921
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Jul 28 08:25:34 2014
New Revision: 213114
URL: https://gcc.gnu.org/viewcvs?rev=213114&root=gcc&view=rev
Log:
2014-07-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/61921
* tree-ssa-structalias.c (create_variable_info_for_1): Check
if there is a varpool node before dereferencing it.
* gfortran.dg/pr61921.f90: New testcase.
Added:
trunk/gcc/testsuite/gfortran.dg/pr61921.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-structalias.c
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-28 8:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26 12:02 [Bug ipa/61921] New: [4.10 Regression] ICE: SIGSEGV in varpool_node::get_constructor(), at varpool.c:275 with -O2 -fipa-pta zsojka at seznam dot cz
2014-07-28 8:15 ` [Bug ipa/61921] " trippels at gcc dot gnu.org
2014-07-28 8:18 ` pinskia at gcc dot gnu.org
2014-07-28 8:20 ` rguenth at gcc dot gnu.org
2014-07-28 8:25 ` rguenth at gcc dot gnu.org
2014-07-28 8:26 ` 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).