Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136309 - [4.1/ICE] compiling kaffeine crashes when using -O1 -finline-functions
Summary: [4.1/ICE] compiling kaffeine crashes when using -O1 -finline-functions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR28116
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-10 11:04 UTC by Piojo
Modified: 2007-01-07 12:28 UTC (History)
2 users (show)

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


Attachments
The preprocessed source that triggers the ICE. (kaffeine-crash.cpp,777.68 KB, text/plain)
2006-06-10 11:06 UTC, Piojo
Details
136309-ice.ii (ice.ii,219 bytes, text/plain)
2006-06-10 13:35 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piojo 2006-06-10 11:04:52 UTC
g++ 4.1.1 crashes when compiling the attached file with -finline-functions, which is enabled at -O3. The attached file belongs to media-video/kaffeine-0.8.1 .
Removing finline-functions compiles it all right.

This is the output I get:

piojo@StarWars ~ $ LANG='' LC_ALL='' g++ -O1 -finline-functions -c  kaffeine-crash.cpp
kxinewidget.cpp: In member function 'QTime KXineWidget::getLengthInfo()':
kxinewidget.cpp:3748: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Comment 1 Piojo 2006-06-10 11:06:10 UTC
Created attachment 88851 [details]
The preprocessed source that triggers the ICE.
Comment 2 Piojo 2006-06-10 11:14:02 UTC
BTW, mi emerge --info:
Portage 2.1_rc4-r5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -ftree-vectorize  -ftree-loop-im"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/conf.d/net /etc/conf.d/rc /etc/env.d /etc/eselect/compiler /etc/fstab /etc/gconf /etc/locales.build /etc/make.conf /etc/modules.autoload.d/kernel-2.6 /etc/rc.conf /etc/revdep-rebuild /etc/services /etc/sudoers /etc/terminfo /etc/texmf/web2c /usr/kde/3.5/share/config/kdm/kdmrc"
CXXFLAGS="-O3 -march=athlon-xp -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -ftree-vectorize  -ftree-loop-im -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/ http://213.186.33.38/gentoo-distfiles/ http://213.186.33.37/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://linuv.uv.es/mirror/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/home/portagetmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts blas bootsplash browserplugin bzip2 cdparanoia cli crypt cups dri dvd emacs encode fam ffmpeg flac foomaticdb fortran gd gdbm gif gimp gimpprint gmail gpm gtk gtk2 hal idn imagemagick imlib input_devices_keyboard input_devices_mouse isdnlog java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lapack lcms libg++ libwww mad mikmod mmx mmx2 mmxext mng motif moznocompose moznoirc moznomail mp3 mpeg mplayer ncurses nls no-old-linux nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdf pdflib perl png postgres pppd python qt quicktime readline reflection rtc scanner sdl sensord session spell spl sse ssl svg svga tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales video_cards_nvidia vorbis win32codecs xcomposite xine xorg xv xvid zlib elibc_glibc kernel_linux linguas_es userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS


And gcc -v:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/portagetmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)
Comment 3 SpanKY gentoo-dev 2006-06-10 12:00:14 UTC
works fine with amd64, but fails with -m32
Comment 4 SpanKY gentoo-dev 2006-06-10 13:35:50 UTC
Created attachment 88858 [details]
136309-ice.ii

reduced testcase
Comment 5 Thomas Bettler 2006-06-21 10:03:25 UTC
I confirm this error.

Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.3.6-r4, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect confcache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en de"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500 --filter='hide /*/*/files/digest-*' --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aalib accessibility acl acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo canna cdr cli crypt cscope cups curl dga directfb dri dts dvd eds emboss encode esd exif fam fbcon ffmpeg flac flash foomaticdb fortran freewnn gd gdbm ggi gif gimpprint glut gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imap imlib ipv6 isdnlog jack java jikes jpeg jpeg2k kde kdehiddenvisibility lcms libg++ libwww lirc mad maildir mbox mcal mikmod mmx mng mono motif motiv mozilla mp3 mpeg mysql nas ncurses nls nptl ogg oggvorbis openal openexr opengl oss pam pcmcia pcre pda pdflib perl pic png pnp ppds pppd prelude python qt quicktime readline reflection samba scanner sdl session slang slp speex spell spl sqlite sse sse2 ssl subversion svg svga symlink tcltk tcpd tetex theora tiff truetype truetype-fonts trusted type1-fonts udev usb v4l v4l2 vorbis wifi win32codecs wxwindows xine xinerama xml xml2 xorg xosd xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_vmmouse kernel_linux linguas_en linguas_de userland_GNU video_cards_ati video_cards_vga video_cards_vesa video_cards_radeon video_cards_fbdev video_cards_vmware video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
Comment 6 Thomas Bettler 2006-06-21 10:19:41 UTC
Removing -O3 on that particular file omits the error.
-O2 works fine
Comment 7 Piojo 2006-06-21 16:32:20 UTC
It's -finline-functions what fails. -O2 doesn't enable that optimization.
Comment 8 SpanKY gentoo-dev 2007-01-07 12:28:37 UTC
this will be fixed in gcc-4.1.1-r4 or gcc-4.1.2, whichever comes first