http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51211
Bug #: 51211 Summary: ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2242) with -fgnu-tm -O -freorder-blocks -ftracer --param hot-bb-frequency-fraction=1 and __transaction_atomic Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: amacl...@redhat.com, patrick.marl...@gmail.com Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 25852 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25852 reduced testcase (from g++.dg/tm/nested-2.C) Compiler output: $ gcc -fgnu-tm -O -freorder-blocks -ftracer --param hot-bb-frequency-fraction=1 testcase.c ==11106== Invalid read of size 1 ==11106== at 0x9DFE6E: execute_tm_mark() (trans-mem.c:2242) ==11106== by 0x8DF684: execute_one_pass(opt_pass*) (passes.c:2074) ==11106== by 0x8DFA24: execute_pass_list(opt_pass*) (passes.c:2129) ==11106== by 0x8DFA36: execute_pass_list(opt_pass*) (passes.c:2130) ==11106== by 0xA4169D: tree_rest_of_compilation(tree_node*) (tree-optimize.c:420) ==11106== by 0x694D19: cgraph_expand_function(cgraph_node*) (cgraphunit.c:1819) ==11106== by 0x696ABB: cgraph_optimize() (cgraphunit.c:1886) ==11106== by 0x697229: cgraph_finalize_compilation_unit() (cgraphunit.c:1327) ==11106== by 0x574EDF: c_write_global_declarations() (c-decl.c:10023) ==11106== by 0x9D4923: toplev_main(int, char**) (toplev.c:581) ==11106== by 0x674ED2C: (below main) (in /lib64/libc-2.12.2.so) ==11106== Address 0xb0 is not stack'd, malloc'd or (recently) free'd ==11106== testcase.c: In function 'foo': testcase.c:4: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: r181442 - crash