[Bug c++/38490] New: stack overflow with -O2 for legal C++ code
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 11 19:01:00 GMT 2008
I just tried to compile the package Coin-2.5.0-1.pm.3
with the GNU C++ compiler version 4.4 snapshot 20081205.
The compiler said
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
The preprocessed source code is attached. Flag -O2 required.
Here is valgrind helping out with a stack backtrace
==3265== Stack overflow in thread 1: can't grow stack to 0x7FE801F98
==3265== Can't extend stack to 0x7FE8016A0 during signal delivery for thread 1:
==3265== no stack segment
==3265==
==3265== Process terminating with default action of signal 11 (SIGSEGV)
==3265== Access not within mapped region at address 0x7FE8016A0
==3265== at 0x698CCB: fold_convert_const (fold-const.c:2120)
==3265== Invalid write of size 8
==3265== at 0x4A1F348: _vgnU_freeres (in
/usr/lib64/valgrind/amd64-linux/vgpreload_core.so)
==3265== Address 0x7fe801f10 is on thread 1's stack
==3265== Stack overflow in thread 1: can't grow stack to 0x7FE801F10
==3265==
--
Summary: stack overflow with -O2 for legal C++ code
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: suse-linux-x86_64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38490
More information about the Gcc-bugs
mailing list