Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136116 - gdm-2.14.8 segfaults when built with with -O3
Summary: gdm-2.14.8 segfaults when built with with -O3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
: 136179 (view as bug list)
Depends on:
Blocks: 119872
  Show dependency tree
 
Reported: 2006-06-08 14:40 UTC by Dave Shanker
Modified: 2007-03-21 21:41 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Shanker 2006-06-08 14:40:03 UTC
Re-building with -O2 works fine.

Someone else had this issue -> http://forums.gentoo.org/viewtopic-t-469607.html

emerge info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
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-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-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect digest distlocks fixpackages sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentopia /usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 audiofile avahi avi berkdb bitmap-fonts bluetooth bzip2 cdr cli crypt cups curl dbus dri dvd dvdr eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gdbm gif glut gnome gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib ipv6 isdnlog jpeg junit kdeenablefinal lcms libg++ libwww mad mikmod mmx mng motif mozilla mp3 mpeg musicbrainz ncurses nls nptl ogg opengl pam pcre pda pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl sqlite sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis wmf xinerama xml xml2 xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Balint Dobai-Pataky 2006-06-08 22:49:02 UTC
same here.
emerge --info
>>> cfg-update-1.8.0-r3 : Building checksum index... (takes a few seconds)  done!
Portage 2.1_rc4-r4 (default-linux/x86/2005.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
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.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 -mtune=athlon -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon -mtune=athlon -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LC_ALL="en_US.UTF-8"
LINGUAS="en hu ro"
MAKEOPTS=" -s -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://gw/gentoo-portage"
USE="x86 X acpi alsa avi bash-completion browserplugin bzip2 cairo cdparanoia cdr css cups dga divx4linux dri dvd dvdr dvdread encode erandom esd fbsplash firefox foomaticdb fpu gd gif gimpprint gmail gnome gnutls gstreamer gtk gtk2 hal howl i8x0 imagemagick imap ithreads jabber jpeg kqemu live maildir mbox mbrola mime mmx mmxext mozdevelop mozilla mozmail moznocompose moznoirc moznoroaming mozsvg mp3 mpeg mplayer mtrr mysql nautilus ncurses nls nptl nptlonly ogg openal opengl oss pam pdflib perl png ppds python quicktime readline rtc screen sdl softmmu sox sse sse2 ssl startup-notification subtitles svg tcpd truetype udev unicode usb userlocales utf8 vcd video_cards_nvidia vorbis win32codecs xine xml xmms xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_hu linguas_ro userland_GNU video_cards_nv video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Leonardo Boshell (RETIRED) gentoo-dev 2006-06-09 06:21:45 UTC
We got another report mentioning how the -finline-functions cause problems in gdm. It is likely that it's the same problem, but before marking it as a dupe, and so we can be sure it is really that flag causing problems, I'd like to ask you to re-emerge gdm, using -O3, but adding -fno-inline-functions to CFLAGS as well.

Tell us if it makes any difference. Thanks.
Comment 3 Gabriel Lavoie 2006-06-09 07:38:38 UTC
(In reply to comment #2)
> We got another report mentioning how the -finline-functions cause problems in
> gdm. It is likely that it's the same problem, but before marking it as a dupe,
> and so we can be sure it is really that flag causing problems, I'd like to ask
> you to re-emerge gdm, using -O3, but adding -fno-inline-functions to CFLAGS as
> well.
> 
> Tell us if it makes any difference. Thanks.
> 

-fno-inline-functions solves the problem here. I had the same problem with -O3 and I tryed what you said. 

emerge --info
Portage 2.1_rc4-r4 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-suspend2-r8-MindLess i686)
=================================================================
System uname: 2.6.16-suspend2-r8-MindLess i686 Intel(R) Pentium(R) M processor 1.80GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
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-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-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer -fno-inline-functions"
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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer -fno-inline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_CA"
LC_ALL="fr_CA"
LINGUAS="fr"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdparanoia cdr cli crypt ctype cups curl dbus directfb doc dri dvd dvdr dvdread eds emboss encode esd ethereal exif fam fbsplash firefox flac foomaticdb fortran ftp gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv ieee1394 imagemagick imap imlib innodb ipv6 isdnlog jabber java javascript jpeg libcaca libg++ libwww lirc logrotate mad mikmod mime mmap mmx mng motif mp3 mpeg msn mysql ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcmcia pcre pdf pdflib perl php png posix postgres pppd python qt quicktime readline reflection samba sasl sdl session spell spl sqlite sse sse2 ssl svg svga tcpd threads truetype truetype-fonts type1-fonts udev unicode usb videos vorbis wifi win32codecs wxwindows xinerama xml xml2 xmlrpc xmms xorg xpm xprint xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_fr userland_GNU video_cards_radeon video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Leonardo Boshell (RETIRED) gentoo-dev 2006-06-09 09:35:27 UTC
*** Bug 136179 has been marked as a duplicate of this bug. ***
Comment 5 Bret Towe 2006-06-11 15:00:09 UTC
im seeing this also
adding the -fno-inline-functions to my cflags
allowed it to function correctly

perhaps gcc-porting should be CC'd so they can see about
getting gcc fixed if thats whats causing it

Portage 2.1 (default-linux/amd64/2005.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.17-rc4-git10 x86_64)
=================================================================
System uname: 2.6.17-rc4-git10 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
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-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-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fweb -ftracer -ftree-vectorize"
CHOST="x86_64-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O3 -pipe -fweb -ftracer -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer nostrip parallel-fetch sandbox sfperms userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/mdhd/portage.local"
SYNC="rsync://vox.net/gentoo-portage"
USE="amd64 X a52 aac alsa avi berkdb bitmap-fonts bzip2 cairo canna cdda cddb cdr cjk cli crypt cups dbus dri dts dv dvb dvd dvdread eds emboss encode esd fam fbcon fbdev firefox fits flac foomaticdb geos glitz gml gnome gstreamer gtk gtk2 gtkhtml hdf hdf5 imagemagick imlib ipv6 isdnlog jpeg kde live lzw lzw-tiff mad matroska mng mp3 mp4 mpeg musepack ncurses netcdf nls nptl nptlonly ogg oggvorbis opengl pam pcre pda pdf pdflib perl png pppd python qt quicktime readline reflection rtsp sdl session speex spell spl ssl stream svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis wmf x264 xine xml xml2 xmms xorg xpm xv xvmc zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS
Comment 6 Martin Wegner 2006-06-12 15:44:44 UTC
I had several configuration errors when starting GDM, compiling it with -O2 solved it for me.

For details, see my comments #5 and #6 in bug #136130 .
Comment 7 Leonardo Boshell (RETIRED) gentoo-dev 2006-06-12 16:09:22 UTC
Before looking at the possibility of messing with CFLAGS inside the ebuild, could anyone check if the problem exists in gdm-2.14.9 as well? Thanks.
Comment 8 Dave Shanker 2006-06-12 17:11:13 UTC
copied gdm-2.14.8.ebuild to gdm-2.14.9.ebuild and rebuilt with following flags and didn't have any issues:

CFLAGS="-march=pentium-m -O3 -pipe"
CXXFLAGS="-march=pentium-m -O3 -pipe"


Interesting ChangeLog/News entry:

- Fix compiler warnings that were causing core dumping issues on
  some platforms (Brian Cameron)

SO it looks as though 2.14.9 works!

--snip--
emerge --info
Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
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-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-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium-m -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect confcache digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/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/gentopia /usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 avahi avi berkdb bitmap-fonts bluetooth bzip2 cdr cjk cli crypt cups dbus dri dvd dvdr eds emboss encode esd fam foomaticdb fortran gdbm gif gnome gstreamer gtk gtk2 hal imlib ipv6 isdnlog jpeg kdeenablefinal libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg musicbrainz ncurses nls nptl ogg opengl pam pcre pda pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xinerama xml xorg xv zlib elibc_glibc kernel_linux userland_GNU"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Martin Wegner 2006-06-14 02:31:56 UTC
gdm 2.14.9 works for me on all machines I had problems before.
Comment 10 Leonardo Boshell (RETIRED) gentoo-dev 2006-06-14 09:37:22 UTC
OK, thanks for the feedback. Assuming fixed.