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

--- Comment #8 from bill <w.langdon at cs dot ucl.ac.uk> ---
We have checked that the system error logs are clear.
We are still looking for a combinations of memory size and g++ version
which show the error every time.
One additional item of information, when run with GDB sometimes we see
the error being reported on line 853 of gimple-low.cc:853

brent-l% gdb --arg g++ -c -fmax-errors=5 min6.cpp 
GNU gdb (Rocky Linux) 16.3-2.el9
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from g++...
Reading symbols from .gnu_debugdata for
/opt/rh/gcc-toolset-14/root/usr/bin/g++...
(No debugging symbols found in .gnu_debugdata for
/opt/rh/gcc-toolset-14/root/usr/bin/g++)
Missing rpms, try: dnf --enablerepo='*debug*' install
gcc-toolset-14-gcc-c++-debuginfo-14.2.1-12.el9.x86_64
(gdb) break lower_stmt
Function "lower_stmt" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (lower_stmt) pending.
(gdb) r
Starting program: /opt/rh/gcc-toolset-14/root/usr/bin/g++ -c -fmax-errors=5
min6.cpp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after vfork from child process 12758]
during GIMPLE pass: lower
min6.cpp: In function ‘void LoadRun()’:
min6.cpp:29:6: internal compiler error: in lower_stmt, at gimple-low.cc:853
   29 | void LoadRun()
      |      ^~~~~~~
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
[Detaching after vfork from child process 12759]
[Detaching after vfork from child process 12788]
[Detaching after vfork from child process 12789]
The bug is not reproducible, so it is likely a hardware or OS problem.
[Inferior 1 (process 12728) exited with code 01]
Missing rpms, try: dnf --enablerepo='*debug*' install
glibc-debuginfo-2.34-231.el9_7.10.x86_64


I think this means lower_stmt in gimple-low.cc has been called but its
arguments
are not beeing translated into a value expected by the switch leading to 
the default: (line 853) and so raising the error report

Sometimes gdb instead reports
min6.cpp: In function ‘void LoadRun()’:
min6.cpp:6000050: internal compiler error: Segmentation fault
and generates something like
Preprocessed source stored into /tmp/ccSLaEIN.out file,

Reply via email to