public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52047] New: [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays
@ 2012-01-29 20:55 zsojka at seznam dot cz
2012-02-02 22:02 ` [Bug middle-end/52047] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2012-01-29 20:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52047
Bug #: 52047
Summary: [trans-mem] ICE: SIGSEGV in execute_tm_mark
(trans-mem.c:2270) with -O -fgnu-tm
-fprefetch-loop-arrays
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 26509
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26509
reduced testcase (from libitm.c/stackundo.c)
Compiler output:
$ gcc -O -fgnu-tm -fprefetch-loop-arrays testcase.c
==24821== Invalid read of size 1
==24821== at 0x9FC6E6: execute_tm_mark() (trans-mem.c:2270)
==24821== by 0x8FB8E4: execute_one_pass(opt_pass*) (passes.c:2081)
==24821== by 0x8FBCA4: execute_pass_list(opt_pass*) (passes.c:2136)
==24821== by 0x8FBCB6: execute_pass_list(opt_pass*) (passes.c:2137)
==24821== by 0xA5DFFD: tree_rest_of_compilation(tree_node*)
(tree-optimize.c:420)
==24821== by 0x6AFE39: cgraph_expand_function(cgraph_node*)
(cgraphunit.c:1819)
==24821== by 0x6B1D0B: cgraph_optimize() (cgraphunit.c:1886)
==24821== by 0x6B2369: cgraph_finalize_compilation_unit()
(cgraphunit.c:1328)
==24821== by 0x58EC1F: c_write_global_declarations() (c-decl.c:10030)
==24821== by 0x9F081B: toplev_main(int, char**) (toplev.c:573)
==24821== by 0x66E009C: (below main) (in /lib64/libc-2.13.so)
==24821== Address 0xb0 is not stack'd, malloc'd or (recently) free'd
==24821==
testcase.c: In function 'test1':
testcase.c:6: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:
r183676 - crash
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/52047] [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays
2012-01-29 20:55 [Bug middle-end/52047] New: [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays zsojka at seznam dot cz
@ 2012-02-02 22:02 ` pinskia at gcc dot gnu.org
2012-02-06 14:34 ` patrick.marlier at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-02 22:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52047
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Status|UNCONFIRMED |NEW
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2012-02/msg00096.htm
| |l
Last reconfirmed| |2012-02-02
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 22:01:35 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/52047] [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays
2012-01-29 20:55 [Bug middle-end/52047] New: [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays zsojka at seznam dot cz
2012-02-02 22:02 ` [Bug middle-end/52047] " pinskia at gcc dot gnu.org
@ 2012-02-06 14:34 ` patrick.marlier at gmail dot com
2012-02-06 14:43 ` aldyh at gcc dot gnu.org
2012-02-06 14:45 ` aldyh at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: patrick.marlier at gmail dot com @ 2012-02-06 14:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52047
Patrick Marlier <patrick.marlier at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |patrick.marlier at gmail
| |dot com
--- Comment #2 from Patrick Marlier <patrick.marlier at gmail dot com> 2012-02-06 14:34:24 UTC ---
Proposed fix here:
http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00096.html
Waiting Rth approval and Aldy's kindness for commit.
--
Patrick Marlier.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/52047] [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays
2012-01-29 20:55 [Bug middle-end/52047] New: [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays zsojka at seznam dot cz
2012-02-02 22:02 ` [Bug middle-end/52047] " pinskia at gcc dot gnu.org
2012-02-06 14:34 ` patrick.marlier at gmail dot com
@ 2012-02-06 14:43 ` aldyh at gcc dot gnu.org
2012-02-06 14:45 ` aldyh at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: aldyh at gcc dot gnu.org @ 2012-02-06 14:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52047
--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-02-06 14:42:11 UTC ---
Author: aldyh
Date: Mon Feb 6 14:42:07 2012
New Revision: 183936
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183936
Log:
PR middle-end/52047
* trans-mem.c (expand_call_tm): Add an assertion.
* calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
functions.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/trans-mem.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/52047] [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays
2012-01-29 20:55 [Bug middle-end/52047] New: [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays zsojka at seznam dot cz
` (2 preceding siblings ...)
2012-02-06 14:43 ` aldyh at gcc dot gnu.org
@ 2012-02-06 14:45 ` aldyh at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: aldyh at gcc dot gnu.org @ 2012-02-06 14:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52047
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aldyh at gcc dot gnu.org
Resolution| |FIXED
--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-02-06 14:44:31 UTC ---
fixed on trunk
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-02-06 14:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-29 20:55 [Bug middle-end/52047] New: [trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays zsojka at seznam dot cz
2012-02-02 22:02 ` [Bug middle-end/52047] " pinskia at gcc dot gnu.org
2012-02-06 14:34 ` patrick.marlier at gmail dot com
2012-02-06 14:43 ` aldyh at gcc dot gnu.org
2012-02-06 14:45 ` 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).