This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30338] New: Segmentation fault for legal code with -Os -m32
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2006 11:38:40 -0000
- Subject: [Bug c/30338] New: Segmentation fault for legal code with -Os -m32
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I just tried to compile Suse package grub-0.97-40
with the new GNU C compiler version 4.3 snapshot 20061230.
The compiler said
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Here is some help from valgrind
==3736== Stack overflow in thread 1: can't grow stack to 0x7FE001F04
==3736== Can't extend stack to 0x7FE0015E0 during signal delivery for thread 1:
==3736== no stack segment
==3736==
==3736== Process terminating with default action of signal 11 (SIGSEGV)
==3736== Access not within mapped region at address 0x7FE0015E0
==3736== at 0x611927: fold_comparison (fold-const.c:7950)
==3736== Invalid write of size 8
==3736== at 0x4A1E348: _vgnU_freeres (in
/usr/lib64/valgrind/amd64-linux/vgpreload_core.so)
==3736== Address 0x7FE001E48 is on thread 1's stack
==3736== Stack overflow in thread 1: can't grow stack to 0x7FE001E48
==3736==
==3736== Process terminating with default action of signal 11 (SIGSEGV)
==3736== Access not within mapped region at address 0x7FE001E48
==3736== at 0x4A1E348: _vgnU_freeres (in
/usr/lib64/valgrind/amd64-linux/vgpreload_core.so)
Preprocessed source code attached. Flags -Os -m32 required.
--
Summary: Segmentation fault for legal code with -Os -m32
Product: gcc
Version: 4.3.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: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30338