Bug 443165

Summary: Internal error: Segmentation fault (program cc1)
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-18 22:27:36 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
pre-processed input (bad-eol.i) none

Description John Reiser 2008-04-18 21:49:53 UTC
Description of problem:


Version-Release number of selected component (if applicable):
gcc-4.3.0-7.i386


How reproducible: always


Steps to Reproduce:
1./usr/libexec/gcc/i386-redhat-linux/4.3.0/cc1 -v -I. -I. -I../../../include
-I../../../include -D_REENTRANT bad-eol.i -quiet -dumpbase menu.c -mtune=generic
-auxbase-strip menu.o -g -O2 -Wall -Wdeclaration-after-statement -Wwrite-strings
-Wtype-limits -Wpointer-arith -version -fPIC -fno-strict-aliasing

2.
3.
  
Actual results:
$ gdb /usr/libexec/gcc/i386-redhat-linux/4.3.0/cc1
GNU gdb Fedora (6.8-1.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
Missing separate debuginfos, use: debuginfo-install gcc.i386
(gdb) set args -v -I. -I. -I../../../include -I../../../include -D_REENTRANT
bad-eol.i -quiet -dumpbase menu.c -mtune=generic -auxbase-strip menu.o -g -O2
-Wall -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
-Wpointer-arith -version -fPIC -fno-strict-aliasing
(gdb) run
Starting program: /usr/libexec/gcc/i386-redhat-linux/4.3.0/cc1 -v -I. -I.
-I../../../include -I../../../include -D_REENTRANT bad-eol.i -quiet -dumpbase
menu.c -mtune=generic -auxbase-strip menu.o -g -O2 -Wall
-Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith
-version -fPIC -fno-strict-aliasing
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
ignoring nonexistent directory "/usr/lib/gcc/i386-redhat-linux/4.3.0/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../i386-redhat-linux/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../../include"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../include
 /usr/local/include
 /usr/lib/gcc/i386-redhat-linux/4.3.0/include
 /usr/include
End of search list.
GNU C (GCC) version 4.3.0 20080416 (Red Hat 4.3.0-7) (i386-redhat-linux)
	compiled by GNU C version 4.3.0 20080416 (Red Hat 4.3.0-7), GMP version 4.2.2,
MPFR version 2.3.0-p2.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129365
Compiler executable checksum: 76c4486536497035818c59932cf121d5

Program received signal SIGSEGV, Segmentation fault.
0x082f0099 in ?? ()
(gdb) x/i $pc
0x82f0099:	mov    %eax,-0x3c(%ebp)
(gdb) x/12i $pc-0x20
0x82f0079:	mov    $0x1,%edx
0x82f007e:	jmp    0x82ef56a
0x82f0083:	mov    $0x1,%edx
0x82f0088:	jmp    0x82ef55a
0x82f008d:	lea    0x0(%esi),%esi
0x82f0090:	push   %ebp
0x82f0091:	mov    %esp,%ebp
0x82f0093:	push   %edi
0x82f0094:	push   %esi
0x82f0095:	push   %ebx
0x82f0096:	sub    $0x4c,%esp
0x82f0099:	mov    %eax,-0x3c(%ebp)
(gdb) 
0x82f009c:	mov    0x18(%eax),%edx
0x82f009f:	mov    0x87567e8,%eax
0x82f00a4:	mov    -0x3c(%ebp),%edi
0x82f00a7:	mov    %eax,-0x40(%ebp)
0x82f00aa:	mov    -0x40(%ebp),%ecx
0x82f00ad:	mov    0x87567e0,%eax
0x82f00b2:	mov    0x8(%ecx,%edx,4),%edx
0x82f00b6:	mov    %eax,0x8(%edx)
0x82f00b9:	add    $0x1,%eax
0x82f00bc:	mov    %eax,0x87567e0
0x82f00c1:	mov    0x18(%edi),%eax
0x82f00c4:	mov    0x8(%ecx,%eax,4),%eax
(gdb) info reg
eax            0xb06ced68	-1335038616
ecx            0xaed68008	-1361674232
edx            0x991a6	627110
ebx            0xb06ced68	-1335038616
esp            0xbed9dfe0	0xbed9dfe0
ebp            0xbed9e038	0xbed9e038
esi            0x0	0
edi            0xb433a688	-1271683448
eip            0x82f0099	0x82f0099
eflags         0x210282	[ SF IF RF ID ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51
(gdb) x/16x $esp
0xbed9dfe0:	Cannot access memory at address 0xbed9dfe0
(gdb) x/16x $ebp
0xbed9e038:	0xbed9e098	0x082f037f	0x00000000	0x00000000
0xbed9e048:	0x00000000	0x00000000	0x00000000	0x00000000
0xbed9e058:	0xaed68008	0xb06d109c	0x00000000	0xb433a688
0xbed9e068:	0x00000000	0x00000000	0x00000000	0x00000000
(gdb) bt
#0  0x082f0099 in ?? ()
#1  0x082f037f in ?? ()
#2  0x082f037f in ?? ()
#3  0x082f037f in ?? ()
#4  0x082f037f in ?? ()
#5  0x082f037f in ?? ()
#6  0x082f037f in ?? ()
#7  0x082f037f in ?? ()
#8  0x082f037f in ?? ()
#9  0x082f037f in ?? ()
#10 0x082f037f in ?? ()
#11 0x082f037f in ?? ()
#12 0x082f037f in ?? ()
#13 0x082f037f in ?? ()
#14 0x082f037f in ?? ()
#15 0x082f037f in ?? ()
#16 0x082f037f in ?? ()
#17 0x082f037f in ?? ()
#18 0x082f037f in ?? ()
#19 0x082f037f in ?? ()
#20 0x082f037f in ?? ()
#21 0x082f037f in ?? ()
#22 0x082f037f in ?? ()
---Type <return> to continue, or q <return> to quit---q


Expected results: successful compilation


Additional info:

Comment 1 John Reiser 2008-04-18 21:52:23 UTC
Created attachment 302946 [details]
pre-processed input  (bad-eol.i)

from wine-0.9.60/dlls/user32/tests/menu.c

Comment 2 Jakub Jelinek 2008-04-18 22:27:36 UTC

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