https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91021
Bug ID: 91021 Summary: internal compiler error: Segmentation fault Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gsocshubham at gmail dot com Target Milestone: --- Host: x86_64-linux-gnu Target: x86_64-linux-gnu Build: x86_64-linux-gnu Created attachment 46528 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46528&action=edit Preprocessed code of ICE causing program "crash5.c" ------------------------COMPILER CONFIGURATION---------------------------------- Using built-in specs. COLLECT_GCC=/home/extended_csmith/gcc-8.3-release/build/gcc/xgcc Target: x86_64-pc-linux-gnu Configured with: ../gcc-8.3.0/configure --enable-languages=c,c++ --enable-lto --disable-bootstrap Thread model: posix gcc version 8.3.0 (GCC) ----------------------COMMAND LINE USED FOR COMPILATION------------------------- extended_csmith@gcc10:~/ice-atomic$ ~/gcc-8.3-release/build/gcc/xgcc -B ~/gcc-8.3-release/build/gcc/ crash5.i -fgnu-tm -w -O1 during GIMPLE pass: tmmemopt crash5.c: In function ‘main’: crash5.c:827:5: internal compiler error: Segmentation fault 0xb0d4ef crash_signal ../../gcc-8.3.0/gcc/toplev.c:325 0x7fcce61c305f ??? /build/glibc-yWQXbR/glibc-2.24/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0xb1a3cd tm_memopt_compute_antic ../../gcc-8.3.0/gcc/trans-mem.c:3867 0xb1a3cd execute_tm_memopt ../../gcc-8.3.0/gcc/trans-mem.c:4062 0xb1a3cd execute ../../gcc-8.3.0/gcc/trans-mem.c:4100 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. -----------------------REDUCED CODE------------------------------------------- struct a { signed b } d; c, e; static f() { __transaction_atomic { for (; 0; c++) ; } } static g(h) { e = 4; for (; e; e--) { struct a *i; *i = d; } } j() { __transaction_atomic { g(f()); } }