Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45252 - soundtracker 0.6.7 crashes with "Segmentation fault" if compiled with CFLAG "O3"
Summary: soundtracker 0.6.7 crashes with "Segmentation fault" if compiled with CFLAG "O3"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-20 19:18 UTC by Bruce Bertrand
Modified: 2004-03-22 23:15 UTC (History)
1 user (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 Bruce Bertrand 2004-03-20 19:18:48 UTC
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 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-21 13:43:56 UTC
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 Bruce Bertrand 2004-03-21 16:07:30 UTC
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 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-22 23:15:12 UTC
fixed.  thanks.