Bug 151034

Summary: gcc segfaults when compiling qemu sources
Product: [Fedora] Fedora Reporter: Paul Jakma <paul+rhbugz>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-14 09:03:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preprocessed source of qemu's target-i386/op.c which caused segv
none
The original C source file which causes the gcc segfault none

Description Paul Jakma 2005-03-14 08:54:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041020 Galeon/1.3.19

Description of problem:
- retrieve the qemu CVS sources 
  (the attached files are from CVS from 20050314 0830GMT CVS, but the problem
   has been occuring for a while now)
- try compile it on FC3 x86_64 
  (I havn't tried on i386)
- Get segfault in qemu's target-i386/op.c file:

gcc -Wall -O2 -g -fno-strict-aliasing -falign-functions=0 -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I/home/paul/cvs/qemu/target-i386 -I/home/paul/cvs/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/paul/cvs/qemu/fpu -I/home/paul/cvs/qemu/slirp -c -o op.o /home/paul/cvs/qemu/target-i386/op.c
/home/paul/cvs/qemu/target-i386/op.c: In function `op_goto_tb0':
/home/paul/cvs/qemu/target-i386/op.c:1277: warning: cast to pointer from integer of different size
/home/paul/cvs/qemu/target-i386/op.c: In function `op_goto_tb1':
/home/paul/cvs/qemu/target-i386/op.c:1282: warning: cast to pointer from integer of different size
/home/paul/cvs/qemu/target-i386/op.c: In function `op_divw_AX_T0':
/home/paul/cvs/qemu/target-i386/op.c:374: 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/ccTRyOgP.out file, please attach this to your bugreport.

See attached C source file and the preprocessed source which gcc advised me to post to bugzilla.


Version-Release number of selected component (if applicable):
3.4.2-6.fc3

How reproducible:
Always

Steps to Reproduce:
1. retrieve qemu CVS
2. configure && make
3. see it segfault in target-i386/op.c
  

Actual Results:  Segfault in gcc

Expected Results:  Should have either compiled the source, or exited with an error.

Additional info:

Comment 1 Paul Jakma 2005-03-14 08:56:12 UTC
Created attachment 111967 [details]
preprocessed source of qemu's target-i386/op.c which caused segv

Comment 2 Paul Jakma 2005-03-14 08:57:09 UTC
Created attachment 111968 [details]
The original C source file which causes the gcc segfault

Comment 3 Jakub Jelinek 2005-03-14 09:03:15 UTC

*** This bug has been marked as a duplicate of 138627 ***