Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126087 - [3.4/ICE] GCC segfaults building objc code with -fobjc-exceptions
Summary: [3.4/ICE] GCC segfaults building objc code with -fobjc-exceptions
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-13 15:13 UTC by Shon Frazier
Modified: 2006-04-29 15:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Preprocessed source, as requested by GCC error output (preprocessed-src.txt,305.26 KB, text/plain)
2006-03-13 18:44 UTC, Shon Frazier
Details
GNUmakefile used during segfault (GNUmakefile,311 bytes, text/plain)
2006-03-13 18:45 UTC, Shon Frazier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shon Frazier 2006-03-13 15:13:27 UTC
command-line: make USE_OBJC_EXCEPTIONS=yes
makefile: http://sfrazier.servehttp.com/gcc-crash/GNUmakefile (635bytes)
preprocesed source: http://sfrazier.servehttp.com/gcc-crash/preprocessed-src.txt (306K)

command output:
-----start
Making all for tool mymain...
 Compiling file BigNumber.m ...
BigNumber.m: In function `+[BigNumber bigNumberFromString:]':
BigNumber.m:214: warning: `NSString' may not respond to `-getCString:maxLength:encoding:'
BigNumber.m:214: warning: (Messages without a matching method signature
BigNumber.m:214: warning: will be assumed to return `id' and accept
BigNumber.m:214: warning: `...' as arguments.)
BigNumber.m:222: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/cc5qVlrt.out file, please attach this to your bugreport.
make[1]: *** [shared_obj/BigNumber.o] Error 1
make: *** [mymain.all.tool.variables] Error 2
-----end

emerge --info gcc says:
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups dri eds emboss encode expat foomaticdb fortran gcj gdbm gif gmp gnome gpm gstreamer gtk gtk2 idn imlib ipv6 java jpeg kde lcms ldap libg++ libwww mad mhash mikmod mng motif mp3 mpeg ncurses nls objc ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 15:21:07 UTC
At least include gcc version you are trying to compile and attach the output here, the links are broken. Also, not worth reopening unless it fails repeatedly at *exactly* the same place.
Comment 2 Shon Frazier 2006-03-13 18:44:26 UTC
Created attachment 82066 [details]
Preprocessed source, as requested by GCC error output

Apologies for the broken links.  I didn't realize I would be allowed to attach files.
Comment 3 Shon Frazier 2006-03-13 18:45:21 UTC
Created attachment 82067 [details]
GNUmakefile used during segfault
Comment 4 Shon Frazier 2006-03-13 18:47:00 UTC
Not compiling GCC, compiling my own code.  GCC suggested that this was a bug.  I can recreate it, same line and segfault error everytime.
Comment 5 Shon Frazier 2006-03-13 18:55:14 UTC
Reproducible -- see previous comment
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-04-29 15:53:42 UTC
I found the revision at which this was fixed, but the patch would be almost 2000 lines, and I'm not going to add that to 3.4.  This is fixed in 4.x atleast.