<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>28809</bug_id>
          
          <creation_ts>2003-09-15 11:09 0000</creation_ts>
          <short_desc>octave crashes with &quot;segmentation fault&quot; if compiled with CFLAGS option &quot;-ffast-math&quot;</short_desc>
          <delta_ts>2003-09-16 15:07:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jkkoski@iki.fi</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>jkkoski@iki.fi</who>
            <bug_when>2003-09-15 11:09:15 0000</bug_when>
            <thetext>I had octave compiled with CFLAGS option &quot;-ffast-math&quot; in two gentoo boxes.
I got &quot;segmentation fault&quot; when trying to start octave. I then compiled both
leaving &quot;-ffast-math&quot; option out and octave is working now.

box 1:

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

box 2:

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

I tried both versions 2.1.40 and 2.1.49 of octave.

Reproducible: Always
Steps to Reproduce:
1. Put &quot;-ffast-math&quot; 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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-Os -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -mmmx
-msse -mfpmath=sse,387 -ffast-math&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-Os -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -mmmx
-msse -mfpmath=sse,387 -ffast-math&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;sandbox ccache autoaddcvs distcc cchache&quot;
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j5&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-09-16 15:07:57 0000</bug_when>
            <thetext>nice catch, fixed in cvs</thetext>
          </long_desc>
      
    </bug>

</bugzilla>