public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code
@ 2011-11-24 7:24 zsojka at seznam dot cz
2011-11-24 10:32 ` [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and " burnus at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-11-24 7:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
Bug #: 51291
Summary: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with
any fortran code
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
CC: amacleod@redhat.com
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
It seems any fotran code triggers this segfault:
Compiler output:
$ echo '' > testcase.f
$ gfortran testcase.f -fgnu-tm
f951: warning: 'transaction_pure' attribute directive ignored [-Wattributes]
==3935== Invalid read of size 2
==3935== at 0xC88CCF: ix86_init_builtins() (i386.c:27691)
==3935== by 0x6268F7: gfc_init_builtin_functions() (f95-lang.c:1136)
==3935== by 0x627C68: gfc_be_parse_file() (f95-lang.c:231)
==3935== by 0xA56547: toplev_main(int, char**) (toplev.c:565)
==3935== by 0x674ED2C: (below main) (in /lib64/libc-2.12.2.so)
==3935== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3935==
f951: 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.
The warning is likely invalid.
Tested revisions:
r181678 - crash
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
2011-11-24 7:24 [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code zsojka at seznam dot cz
@ 2011-11-24 10:32 ` burnus at gcc dot gnu.org
2011-12-09 19:33 ` aldyh at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-11-24 10:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org,
| |burnus at gcc dot gnu.org
Component|fortran |middle-end
Target Milestone|--- |4.7.0
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-24 09:52:37 UTC ---
The crash happens at config/i386/i386.c's ix86_init_tm_builtins:
decl = builtin_decl_explicit (BUILT_IN_TM_LOAD_1);
attrs_load = DECL_ATTRIBUTES (decl);
The problem is that builtin_decl_explicit returns NULL - or in other words:
builtin_info.decl[(size_t) BUILT_IN_TM_LOAD_1]
is NULL.
The problem is that gtm-builtins.def is included in builtins.def which is
included in c-common.c. However, builtins.def is not included in fortran/*.
Ideas?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
2011-11-24 7:24 [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code zsojka at seznam dot cz
2011-11-24 10:32 ` [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and " burnus at gcc dot gnu.org
@ 2011-12-09 19:33 ` aldyh at gcc dot gnu.org
2011-12-09 22:25 ` aldyh at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-12-09 19:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-09
AssignedTo|unassigned at gcc dot |aldyh at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-12-09 19:16:11 UTC ---
Mine. Testing a patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
2011-11-24 7:24 [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code zsojka at seznam dot cz
2011-11-24 10:32 ` [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and " burnus at gcc dot gnu.org
2011-12-09 19:33 ` aldyh at gcc dot gnu.org
@ 2011-12-09 22:25 ` aldyh at gcc dot gnu.org
2011-12-21 14:02 ` aldyh at gcc dot gnu.org
2011-12-21 14:06 ` aldyh at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-12-09 22:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-12-09 21:45:49 UTC ---
Proposed fix:
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00736.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
2011-11-24 7:24 [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-12-09 22:25 ` aldyh at gcc dot gnu.org
@ 2011-12-21 14:02 ` aldyh at gcc dot gnu.org
2011-12-21 14:06 ` aldyh at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-12-21 14:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-12-21 14:00:36 UTC ---
fixed
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and any fortran code
2011-11-24 7:24 [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code zsojka at seznam dot cz
` (3 preceding siblings ...)
2011-12-21 14:02 ` aldyh at gcc dot gnu.org
@ 2011-12-21 14:06 ` aldyh at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-12-21 14:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-12-21 14:03:25 UTC ---
now fixed and closed for real :)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-12-21 14:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 7:24 [Bug fortran/51291] New: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with any fortran code zsojka at seznam dot cz
2011-11-24 10:32 ` [Bug middle-end/51291] ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with -fgnu-tm and " burnus at gcc dot gnu.org
2011-12-09 19:33 ` aldyh at gcc dot gnu.org
2011-12-09 22:25 ` aldyh at gcc dot gnu.org
2011-12-21 14:02 ` aldyh at gcc dot gnu.org
2011-12-21 14:06 ` aldyh 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).