Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108231 - Test file that causes a segfault at gcc-4.0.2
Summary: Test file that causes a segfault at gcc-4.0.2
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-05 17:28 UTC by Gustavo Ribeiro Alves
Modified: 2006-01-22 21:06 UTC (History)
0 users

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


Attachments
Test case (ArcEngine.ii,446.68 KB, text/plain)
2005-10-05 17:30 UTC, Gustavo Ribeiro Alves
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Ribeiro Alves 2005-10-05 17:28:00 UTC
The included file causes a segfault on gcc if the following compile options are
used:
g++ -march=athlon64 -O3 -pipe -c ArcEngine.ii -o ArcEngine.o

Using -O2 also causes the segfault. -O1 don't.

This is file is part of app-text/opensp-1.5.1 . This should problably be
forwarded upstream (gcc shouldn't segfault). But gcc devs clearly state that:

What we do not want
    * Bugs in releases or snapshots of GCC not issued by the GNU Project. Report
them to whoever provided you with the release

So I'm posting it here.

Reproducible: Always
Steps to Reproduce:
Comment 1 Gustavo Ribeiro Alves 2005-10-05 17:30:09 UTC
Created attachment 69963 [details]
Test case
Comment 2 Gustavo Ribeiro Alves 2005-10-05 17:33:04 UTC
Just a correction. -O2 does not cause the bug. Only -O3.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-10-05 17:55:49 UTC
`emerge info'?  Is this with gcc-4.0.2 or gcc-4.0.2-r1?  If the first one,
please update and tell me if it is still a problem.
Comment 4 Gustavo Ribeiro Alves 2005-10-05 21:38:32 UTC
emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-4.0.2,
glibc-2.3.5.20050722-r0, 2.6.13-gentoo-r1gralves x86_64)
=================================================================
System uname: 2.6.13-gentoo-r1gralves x86_64 AMD Athlon(tm) 64 X2 Dual Core
Processor 3800+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
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.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="pt_BR.UTF-8"
LINGUAS="en_US fr pt pt_BR"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3ds X a52 aac acpi alsa apache2 apm artworkextra avi bash-completion
berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdr cpudetection crypt cups
curl dbus doc dvd dvdr dvdread dvi eds emboss encode erandom esd examples fam
firefox flac foomaticdb fortran fpx ftp gd gd-external gif gimp gimpprint glitz
glut gnome gnome-print gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal howl
icq icu imagemagick imlib ipv6 jabber java joystick jpeg junit ldap libcaca
libgda libwww lzw lzw-tiff mad mikmod mng mozilla moznocompose moznoirc
moznomail mozsvg mozxmlterm mp3 mpeg mpi msn nautilus ncurses net nls nptl
nptlonly offensive ogg oggvorbis openal opengl openssl pam pccts pda pdflib perl
physfs pic png ppds pyste python qt quicktime readline recode samba scanner sdl
smp sms sox speex spell ssl stencil-buffer svg t1lib tcltk tcpd tetex theora
threads tiff transcode truetype truetype-fonts type1 type1-fonts unicode usb
vorbis wmf wxwindows xinerama xml xml2 xmlrpc xpm xv yahoo zlib linguas_en_US
linguas_fr linguas_pt linguas_pt_BR userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS


 emerge -pv gcc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/gcc-4.0.2-r1  (-altivec) -bootstrap -boundschecking
-build +fortran -gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64)
+nls -nocxx -nopie -objc -static -vanilla 0 kB

Total size of downloads: 0 kB

gcc --version
gcc (GCC) 4.0.2 (Gentoo 4.0.2-r1, pie-8.7.8)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Comment 5 Gustavo Ribeiro Alves 2005-10-05 21:39:18 UTC
Just to make clear that the problem is happening on gcc-4.0.2-r1.
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2005-10-06 21:37:15 UTC
I will clean up the patch and get it into the patchset so the next time I bump
gcc-4.0.2 it will be fixed.  I'm leaving this open for now as a reminder to do
this tomorrow :)
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2005-10-13 23:26:38 UTC
Added to the patchset.  It'll be included next time I make a release.
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-12-03 20:51:40 UTC
The patch for this issue seems to cause another ICE.  Reopening this for
tracking purposes.
Comment 9 Mark Loeser (RETIRED) gentoo-dev 2005-12-12 12:56:23 UTC
New patch in CVS to fix the regressions pr22252 caused.  The new patch is from
pr25010 and had some slight changes made to make it patch to 4.0.
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2006-01-22 20:02:46 UTC
Reopening because this patch is causing yet another issue.
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2006-01-22 20:04:50 UTC
bug #118361 is caused by this patch.  I'm going to remove the two patches associated with this bug until upstream has a fix specifically for gcc-4.0, or someone else gets me a clean fix which doesn't make other problems appear.
Comment 12 Gustavo Ribeiro Alves 2006-01-22 21:03:26 UTC
Is there an upstream bug filled for this? If yes is there someplace where I can track its progress?
Comment 13 Mark Loeser (RETIRED) gentoo-dev 2006-01-22 21:06:36 UTC
The upstream bug is in the URL field of this bug:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22252

Its currently fixed for gcc-4.1 and above.  No idea if they plan on fixing it for the 4.0 branch.