Bug 40298 - possible failure in cgraph_clone_inlined_nodes with -O3
Summary: possible failure in cgraph_clone_inlined_nodes with -O3
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 18:27 UTC by David Binderman
Modified: 2009-11-22 19:49 UTC (History)
1 user (show)

See Also:
Host: x86_64-suse-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
C source code (44.93 KB, text/plain)
2009-05-29 18:28 UTC, David Binderman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2009-05-29 18:27:09 UTC
I just tried to compile the Suse Linux package qemacs-0.3.1-380.42
with the GNU gcc version 4.5 snapshot 20090528.

The compiler said

gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flag -O3 required.

Here is some valgrind output which might help

==8522== Stack overflow in thread 1: can't grow stack to 0x7FE801FF8
==8522== Can't extend stack to 0x7FE801700 during signal delivery for thread 1:
==8522==   no stack segment
==8522==
==8522== Process terminating with default action of signal 11 (SIGSEGV)
==8522==  Access not within mapped region at address 0x7FE801700
==8522==    at 0x96B07A: cgraph_clone_inlined_nodes (ipa-inline.c:261)
==8522== Invalid write of size 8
==8522==    at 0x4A1F3A8: _vgnU_freeres (in /usr/lib64/valgrind/amd64-linux/vgpreload_core.so)
==8522==  Address 0x7fe801f70 is on thread 1's stack
==8522== Stack overflow in thread 1: can't grow stack to 0x7FE801F70
==8522==
==8522== Process terminating with default action of signal 11 (SIGSEGV)
==8522==  Access not within mapped region at address 0x7FE801F70
==8522==    at 0x4A1F3A8: _vgnU_freeres (in /usr/lib64/valgrind/amd64-linux/vgpreload_core.so)
Comment 1 David Binderman 2009-05-29 18:28:19 UTC
Created attachment 17932 [details]
C source code