Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146358

Summary: Segmentation Violations in GTK+ with optimisation on gcc-4.1.1
Product: Gentoo Linux Reporter: Jeremy Barton <bartonjs>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeremy Barton 2006-09-05 00:57:40 UTC
As mentioned in http://forums.gentoo.org/viewtopic-t-494802.html, compiling GTK+ optimised results in strange segmentation violations.  My consistent repro is with gmudix-1.0, connect to anything and try to highlight-copy test.

Compiled with -O3 on gcc-4.1.1 results in these SIGSEGVs, -O0 does not.  In the short term finding the max level and capping the optimisation in the ebuild would be good, as well as accelerating it upstream.


 $ emerge --info
Portage 2.1-r2 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 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.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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://girru.xyons.net/gentoo-portage"
USE="x86 3dnow 3dnowext X aalib acpi aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups dlloader dri dvd dvdr eds emboss encode esd ethereal fam fbcon fftw flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib imlib2 innodb ipv6 isdnlog java jpeg libg++ libwww mad maildir mikmod mmx mmxext mng motif mp3 mpeg mysql ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl oss pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc samba sdl session speex spell spl sse ssl svga tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml2 xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-05 01:04:01 UTC
Which gtk+ version? Please, don't refer to forums.g.o. for bug descriptions, it makes bugzilla search useless.
Comment 2 Jeremy Barton 2006-09-05 09:55:27 UTC
Sorry, gtk+-2.8.19.