Bug 45252 - soundtracker 0.6.7 crashes with "Segmentation fault" if compiled with CFLAG "O3"
Bug#: 45252 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: eradicator@gentoo.org Reported By: bruce@brucebertrand.com
Component: Applications
URL: 
Summary: soundtracker 0.6.7 crashes with "Segmentation fault" if compiled with CFLAG "O3"
Keywords:  
Status Whiteboard: 
Opened: 2004-03-20 19:18 0000
Description:   Opened: 2004-03-20 19:18 0000
When "O3" is set in the CFLAG variable, the ebuild compiles without error, but
trying to run soundtracker (from console) causes the app to immediately crash
with a simple "Segmentation fault" error.  This does not happen with CFLAG set
at "O2" or "O1".

Reproducible: Always
Steps to Reproduce:
1.Set "O3" in your CFLAG (CXXFLAG??? in /etc/make.conf)
2.ACCEPT_KEYWORDS="~x86" emerge soundtracker
3.run soundtracker

Actual Results:  
soundtracker window briefly pops up, then crashes.  "Segmentation fault"
appears
in the console.

Expected Results:  
Worked properly.

Downloading and compiling the sources from www.soundtracker.org works as
expected.  Also, the ebuild instals the binary into /usr/bin, while "make
install" on the sources installs it into /usr/local/bin.

------- Comment #1 From Jeremy Huddleston (RETIRED) 2004-03-21 13:43:56 0000 -------
what were the rest of your cflags (please post your 'emerge info' output here)?
 It seems to work just fine for me if I do:

CFLAGS="-O3" CXXFLAGS="-O3" emerge soundtracker

------- Comment #2 From Bruce Bertrand 2004-03-21 16:07:30 0000 -------
emerge info output
--------------------

Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-rc1-mm1)
=================================================================
System uname: 2.6.5-rc1-mm1 i686 Intel(R) Pentium(R) 4 Mobile CPU 2.00GHz
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.247.10/sites/www.ibiblio.org/gentoo/ http://212.219.247.12/sites/www.ibiblio.org/gentoo/ http://212.219.247.11/sites/www.ibiblio.org/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm avi berkdb cdr crypt cups directfb dvd encode esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jack java jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl static svga tcpd tiff truetype x86 xml2 xmms xv zlib"

--------------------------------

The above reflects my CFLAG change from -O3 to -O2
also, you need to add "~x86" to get 0.6.7 .... the 0.6.6 version runs fine for me at -O3

------- Comment #3 From Jeremy Huddleston (RETIRED) 2004-03-22 23:15:12 0000 -------
fixed.  thanks.