Bug 182013 - g++ Internal Compile Error
Summary: g++ Internal Compile Error
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc4 (Show other bugs)
(Show other bugs)
Version: 4
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-02-19 02:11 UTC by Frank Chiulli
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-27 13:43:59 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Frank Chiulli 2006-02-19 02:11:43 UTC
Description of problem:
I received the following error attempting to build OpenOffice.
g++ -Wreturn-type -fmessage-length=0 -c -I.  -I. -I../inc
-I../../../../../../inc -I../../../../../../unx/inc
-I../../../../../../unxlngi6.pro/inc -I.
-I/opt/jdk1.5.0_06/include -I/opt/jdk1.5.0_06/include/linux
-I/opt/jdk1.5.0_06/include/native_threads/include -I/usr/X11R6/include     -I.
-I../../../../../../res -I. -Os -fno-strict-aliasing -Wuninitialized   -pipe
-mtune=pentiumpro -Wno-ctor-dtor-privacy -fvisibility-inlines-hidden
-fexceptions -fno-enforce-eh-specs  -frtti  -fpic -DLINUX -DUNX -DVCL -DGCC
-DMULTITHREAD  -o ../../../../../../unxlngi6.pro/slo/WP3Listener.o
*** glibc detected *** /usr/libexec/gcc/i386-redhat-linux/4.0.2/cc1plus:
malloc(): memory corruption: 0x09d54980 ***
======= Backtrace: =========
======= Memory map: ========
0047a000-00483000 r-xp 00000000 03:02 2600058    /lib/libgcc_s-4.0.2-20051126.so.1
00483000-00484000 rwxp 00009000 03:02 2600058    /lib/libgcc_s-4.0.2-20051126.so.1
00adc000-00af6000 r-xp 00000000 03:02 2599987    /lib/ld-2.3.5.so
00af6000-00af7000 r-xp 00019000 03:02 2599987    /lib/ld-2.3.5.so
00af7000-00af8000 rwxp 0001a000 03:02 2599987    /lib/ld-2.3.5.so
00afa000-00c1d000 r-xp 00000000 03:02 2600025    /lib/libc-2.3.5.so
00c1d000-00c1f000 r-xp 00123000 03:02 2600025    /lib/libc-2.3.5.so
00c1f000-00c21000 rwxp 00125000 03:02 2600025    /lib/libc-2.3.5.so
00c21000-00c23000 rwxp 00c21000 00:00 0
00dab000-00dac000 r-xp 00dab000 00:00 0          [vdso]
08047000-0851b000 r-xp 00000000 03:02 310723    
0851b000-0851e000 rw-p 004d4000 03:02 310723    
0851e000-0859c000 rw-p 0851e000 00:00 0
09cb2000-09d75000 rw-p 09cb2000 00:00 0          [heap]
b6e00000-b6e21000 rw-p b6e00000 00:00 0
b6e21000-b6f00000 ---p b6e21000 00:00 0
b6f53000-b7f66000 rw-p b6f53000 00:00 0
b7f6a000-b7f77000 rw-p b7f6a000 00:00 0
bfe5e000-bfe77000 rw-p bfe5e000 00:00 0          [stack]
In function '_ForwardIter _STL::__uninitialized_copy(_InputIter, _InputIter,
_ForwardIter, const _STL::__false_type&) [with _InputIter = const
_WPXColumnDefinition*, _ForwardIter = _WPXColumnDefinition*]':
internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
dmake:  Error code 1, while making
'---* tg_merge.mk *---'
dmake:  Error code 255, while making './unxlngi6.pro/misc/build/so_built_wpd'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
make: *** [stamp/build] Error 1

Version-Release number of selected component (if applicable):
 g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj- --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)

How reproducible:
Check out OpenOffice from CVS.  Do an autogen.sh, download, make.

Steps to Reproduce:
1. cvs -z3 checkout ooo-build
2. cd ooo-build
3. ./autogen.sh --disable-kde --with-distro=SUSE9.3
4. ./download
5. make
Actual results:
Compiler aborts.

Expected results:
OpenOffice compiles and builds successfully.

Additional info:

Comment 1 Jakub Jelinek 2006-02-20 09:23:46 UTC
Please provide preprocessed testcase if the above is reproduceable, i.e.
add -save-temps to the above command line and attach here the *.ii file
it creates.

Comment 2 Frank Chiulli 2006-02-21 05:04:42 UTC
I was unable to reproduce this problem by copying the compile statement to a
file and executing it.

I re-executed the make.  It had failed twice before in the same spot.  This time
it went past where it has failed before.  But it still failed on a g++ statement
with the same type error (malloc).  I tried copying this compile statement to a
file and executing it.  It also worked.

Is this a hardware problem?  The first time this occurred I booted by Fedora
Rescue CD and ran memtest for 8.5 hours.  There were no reported errors.

Comment 3 Jakub Jelinek 2006-02-21 06:59:39 UTC
You can try running make from within
setarch -R /bin/sh
to turn off randomization.  If you can't reproduce the problem on the exact same
file exact same error, then it is a hardware problem.

Comment 4 Frank Chiulli 2006-02-27 13:42:25 UTC
I tried but was unable to reproduce the problem on the exact same file with the
exact same error.  Therefore I am assuming it is a hardware problem.  I thank
you for your time and effort.

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