Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 247407 - gcc w/ -O1+ gives internal compiler error: Segmentation fault
Summary: gcc w/ -O1+ gives internal compiler error: Segmentation fault
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 268281
TreeView+ depends on / blocked
 
Reported: 2007-07-09 04:33 UTC by Matthew Fluet
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-26 19:34:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
preprocessed source demonstrating gcc ICE (203.80 KB, text/x-csrc)
2007-07-09 04:35 UTC, Matthew Fluet
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 32694 0 None None None Never

Description Matthew Fluet 2007-07-09 04:33:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20070530 Fedora/1.5.0.12-1.fc6 Firefox/1.5.0.12

Description of problem:
After the recent update to gcc-4.1.2-13.fc6, I observe many ICEs on C files produced by MLton (http://mlton.org), a compiler for Standard ML that uses C and gcc as one backend.  The ICEs occur with optimization level 1 or higher; I do not observe the ICEs with optimization level 0.  I did not observe any such ICEs (with any optimization level) with 
gcc-4.1.1-51.fc6.

As the C code is machine generated, it isn't particularly human readable.
Nonetheless, I've attached a preprocessed source file, as indicated by the gcc error message.

Version-Release number of selected component (if applicable):
gcc-4.1.2-13.fc6

How reproducible:
Always


Steps to Reproduce:
1. gcc -c -O1 ccVnl11d.out.c


Actual Results:
z.2.c: In function ‘Chunk2’:
z.2.c:1188: warning: assignment makes pointer from integer without a cast
z.2.c:1533: warning: assignment makes pointer from integer without a cast
z.2.c:1552: warning: assignment makes pointer from integer without a cast
z.2.c:164: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccRZLLye.out file, please attach this to your bugreport.


Expected Results:


Additional info:

Comment 1 Matthew Fluet 2007-07-09 04:35:30 UTC
Created attachment 158745 [details]
preprocessed source demonstrating gcc ICE

Comment 2 Jakub Jelinek 2007-07-09 12:56:51 UTC
Tracking upstream.

Comment 3 Adam Goode 2007-08-29 15:19:54 UTC
Can the fix in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32694#c5 be backported? 

This is breaking MLton in Fedora:
http://koji.fedoraproject.org/koji/getfile?taskID=131416&name=build.log

Comment 4 Adam Goode 2007-09-17 20:54:58 UTC
F8t3 freeze is soon. Any chance of this being fixed before that? Thanks.

Comment 5 Adam Goode 2007-09-26 19:34:19 UTC
I've confirmed this is fixed in latest rawhide. Thanks!


Note You need to log in before you can comment on or make changes to this bug.