Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28809 - octave crashes with "segmentation fault" if compiled with CFLAGS option "-ffast-math"
Summary: octave crashes with "segmentation fault" if compiled with CFLAGS option "-ffa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-15 11:09 UTC by Jani Kotakoski
Modified: 2003-09-16 15:07 UTC (History)
0 users

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 Jani Kotakoski 2003-09-15 11:09:15 UTC
I had octave compiled with CFLAGS option "-ffast-math" in two gentoo boxes.
I got "segmentation fault" when trying to start octave. I then compiled both
leaving "-ffast-math" option out and octave is working now.

box 1:

 CFLAGS="-Os -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -mmmx
-msse -mfpmath=sse,387 -ffast-math"

box 2:

 CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer -ffast-math -mmmx
-m3dnow -msse -mfpmath=sse,387"

I tried both versions 2.1.40 and 2.1.49 of octave.

Reproducible: Always
Steps to Reproduce:
1. Put "-ffast-math" in your CFLAGS in /etc/make.conf
2. emerge octave
3. run octave

Actual Results:  
segmentation fault

Expected Results:  
octave should have started

emerge info:

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test5-mm1)
=================================================================
System uname: 2.6.0-test5-mm1 i686 Mobile Intel(R) Celeron(R) CPU 2.00GHz
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -mmmx
-msse -mfpmath=sse,387 -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -mmmx
-msse -mfpmath=sse,387 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs distcc cchache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline arts tetex bonobo svga tcltk java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla
gphoto2 cdr scanner acpi acpi4linux dga doc dvd evo gtk2 moznocomposer moznoirc
moznomail plotutils radeon samba smooth tiff xml"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-09-16 15:07:57 UTC
nice catch, fixed in cvs