public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
@ 2023-04-15 10:27 zsojka at seznam dot cz
  2023-04-15 19:50 ` [Bug tree-optimization/109524] " pinskia at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: zsojka at seznam dot cz @ 2023-04-15 10:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109524
           Summary: [13 Regression] ICE: SIGSEGV in
                    remove_unreachable::remove_and_update_globals
                    (tree-vrp.cc:136) with -O3 -fno-tree-forwprop
                    -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 54867
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54867&action=edit
auto-reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O3 -fno-tree-forwprop -fnon-call-exceptions
-fno-tree-ccp -fno-tree-fre testcase.C -w -wrapper
valgrind,-q,--track-origins=yes
==2129== Invalid read of size 8
==2129==    at 0x197A872: remove_unreachable::remove_and_update_globals(bool)
[clone .part.0] (tree-vrp.cc:136)
==2129==    by 0x197CC3D: remove_and_update_globals (tree-vrp.cc:1106)
==2129==    by 0x197CC3D: execute_ranger_vrp(function*, bool, bool)
(tree-vrp.cc:1104)
==2129==    by 0x15B4E8A: execute_one_pass(opt_pass*) (passes.cc:2651)
==2129==    by 0x15B577F: execute_pass_list_1(opt_pass*) (passes.cc:2760)
==2129==    by 0x15B5791: execute_pass_list_1(opt_pass*) (passes.cc:2761)
==2129==    by 0x15B57B8: execute_pass_list(function*, opt_pass*)
(passes.cc:2771)
==2129==    by 0x11E5605: expand (cgraphunit.cc:1841)
==2129==    by 0x11E5605: cgraph_node::expand() (cgraphunit.cc:1794)
==2129==    by 0x11E694A: expand_all_functions (cgraphunit.cc:2024)
==2129==    by 0x11E694A: symbol_table::compile() [clone .part.0]
(cgraphunit.cc:2398)
==2129==    by 0x11E94A7: compile (cgraphunit.cc:2311)
==2129==    by 0x11E94A7: symbol_table::finalize_compilation_unit()
(cgraphunit.cc:2583)
==2129==    by 0x16B5541: compile_file() (toplev.cc:471)
==2129==    by 0xE11068: do_compile (toplev.cc:2125)
==2129==    by 0xE11068: toplev::main(int, char**) (toplev.cc:2277)
==2129==    by 0xE12D0A: main (main.cc:39)
==2129==  Address 0x55a4840 is in a rw- anonymous segment
==2129== 
==2129== Invalid read of size 1
==2129==    at 0x197A876: remove_unreachable::remove_and_update_globals(bool)
[clone .part.0] (tree-vrp.cc:136)
==2129==    by 0x58E1A47: ???
==2129==    by 0x197CC3D: remove_and_update_globals (tree-vrp.cc:1106)
==2129==    by 0x197CC3D: execute_ranger_vrp(function*, bool, bool)
(tree-vrp.cc:1104)
==2129==    by 0x15B4E8A: execute_one_pass(opt_pass*) (passes.cc:2651)
==2129==    by 0x15B577F: execute_pass_list_1(opt_pass*) (passes.cc:2760)
==2129==    by 0x15B5791: execute_pass_list_1(opt_pass*) (passes.cc:2761)
==2129==    by 0x15B57B8: execute_pass_list(function*, opt_pass*)
(passes.cc:2771)
==2129==    by 0x11E5605: expand (cgraphunit.cc:1841)
==2129==    by 0x11E5605: cgraph_node::expand() (cgraphunit.cc:1794)
==2129==    by 0x11E694A: expand_all_functions (cgraphunit.cc:2024)
==2129==    by 0x11E694A: symbol_table::compile() [clone .part.0]
(cgraphunit.cc:2398)
==2129==    by 0x11E94A7: compile (cgraphunit.cc:2311)
==2129==    by 0x11E94A7: symbol_table::finalize_compilation_unit()
(cgraphunit.cc:2583)
==2129==    by 0x16B5541: compile_file() (toplev.cc:471)
==2129==    by 0xE11068: do_compile (toplev.cc:2125)
==2129==    by 0xE11068: toplev::main(int, char**) (toplev.cc:2277)
==2129==  Address 0xa5a5a5a5a5a5a5f6 is not stack'd, malloc'd or (recently)
free'd
==2129== 
during GIMPLE pass: vrp
testcase.C: In function 'void AddGRFTextToList()':
testcase.C:30:6: internal compiler error: Segmentation fault
   30 | void AddGRFTextToList() {
      |      ^~~~~~~~~~~~~~~~
0x16b507f crash_signal
        /repo/gcc-trunk/gcc/toplev.cc:314
0x197a876 remove_unreachable::remove_and_update_globals(bool)
        /repo/gcc-trunk/gcc/tree-vrp.cc:136
...

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-7181-20230414111512-gb0e85485fbf-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-7181-20230414111512-gb0e85485fbf-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.1 20230414 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-19  8:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
2023-04-15 19:50 ` [Bug tree-optimization/109524] " pinskia at gcc dot gnu.org
2023-04-15 20:17 ` pinskia at gcc dot gnu.org
2023-04-15 20:18 ` pinskia at gcc dot gnu.org
2023-04-15 20:33 ` jakub at gcc dot gnu.org
2023-04-15 20:38 ` pinskia at gcc dot gnu.org
2023-04-15 20:55 ` jakub at gcc dot gnu.org
2023-04-15 21:12 ` pinskia at gcc dot gnu.org
2023-04-15 22:49 ` jakub at gcc dot gnu.org
2023-04-15 23:00 ` jakub at gcc dot gnu.org
2023-04-17  7:22 ` rguenth at gcc dot gnu.org
2023-04-17  9:03 ` cvs-commit at gcc dot gnu.org
2023-04-17  9:04 ` rguenth at gcc dot gnu.org
2023-04-19  8:04 ` cvs-commit at gcc dot gnu.org
2023-04-19  8:09 ` cvs-commit 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).