This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81302] New: Segmentation fault in diagnose_tm_1 at trans-mem.c


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81302

            Bug ID: 81302
           Summary: Segmentation fault in diagnose_tm_1 at trans-mem.c
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

/* from volatile-1.c */
/* in trunk 249883 */
/* must be compiled with command gcc -fgnu-tm -fsanitize=address */
__attribute ((transaction_safe))
int f() {
  int x;
     &x;
}
/*
 * during GIMPLE pass: *diagnose_tm_blocks
 In function ‘f’:
 internal compiler error: Segmentation fault
 int f() {
     ^
0xc5f4df crash_signal
        ../../gcc-249883/gcc/toplev.c:338
0xc64cbe diagnose_tm_1
        ../../gcc-249883/gcc/trans-mem.c:664
0x9f071a walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:568
0x9f09f5 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:51
0x9f08d2 walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:631
0x9f09f5 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:51
0x9f08aa walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:595
0x9f09f5 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:51
0x9f0a66 walk_gimple_seq(gimple*, tree_node* (*)(gimple_stmt_iterator*, bool*,
walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*)
        ../../gcc-249883/gcc/gimple-walk.c:81
0xc64b68 diagnose_tm_blocks
        ../../gcc-249883/gcc/trans-mem.c:848
0xc64b68 execute
        ../../gcc-249883/gcc/trans-mem.c:878
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]