Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178247 - dev-scheme/drscheme miscompiles with -mfpmath=sse
Summary: dev-scheme/drscheme miscompiles with -mfpmath=sse
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-12 20:51 UTC by Michal Suchanek
Modified: 2008-02-20 12:46 UTC (History)
3 users (show)

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


Attachments
updatet ebuild with flag-o-matic removing of -mafpmath=sse (drscheme-371.ebuild,2.08 KB, text/plain)
2007-10-17 19:12 UTC, Michael Gaber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2007-05-12 20:51:14 UTC
Running drscheme results in immediate segfault.


Reproducible: Always

Steps to Reproduce:
1. install gcc4
2. select gcc4
3. install drscheme
4. run drscheme

Actual Results:  
 (gdb) bt
#0  0xb7ce81a9 in get_core_geometry () from /usr/lib/libmred-360.so
#1  0xb7db0360 in actionsList () from /usr/lib/libmred-360.so
#2  0xb7dafea0 in extraTranslationsSmall () from /usr/lib/libmred-360.so
#3  0xb7a3d7b8 in CallInitialize (class=0x190, req_widget=0xc9e85650, new_widget=0x53000000, args=0x81b88d0, 
    num_args=516) at Create.c:219
Previous frame inner to this frame (corrupt stack?)


Expected Results:  
a X11 window appears

[I] dev-scheme/drscheme
     Installed versions:  360-r1(10:32:49 PM 05/12/2007)(-3m -backtrace cairo jpeg opengl perl png)

rebuilding with (hardened!) gcc 3.4.6 works: sys-devel/gcc 3.4.6-r2


Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.21.1-src i686)
=================================================================
System uname: 2.6.21.1-src i686 AMD Athlon(tm) XP 1800+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 10 May 2007 22:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.3.5-r3, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks maketest metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en cs cz ja jp"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /opt/x4x-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aim alsa amr amuled apache2 audiofile avcodec avi bash-completion bcmath berkdb bitmap-fonts bzip2 cairo caps cdb cdda cdparanoia cdr cjk cli cpdflib cracklib crypt cscope ctype cups curl d dbx debug dedicated dga dio dlloader doc dri dts dv dvb dvd dvdr dvdread emboss enca encode erandom ethereal examples exif expat fam fbcon ffmpeg firefox flac flash flatfile fontconfig foomaticdb fortran ftp gb gcj gd gdbm ggi gif ginac git glibc-omitfp glut gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal hardened howl iconv icq idn ieee1394 imagemagick imap imlib inifile ipv6 isdnlog jabber javascript jpeg kdexdeltas kerberos lcms libg++ libwww linuxthreads-tls live lm_sensors lua lzo mad maildir matroska matrox mbox midi mikmod mime ming mmap mmx mmxext mng mozilla mp3 mp4 mpeg msn mudflap musepack nas ncurses network nls nptl nptlonly nsplugin objc objc++ objc-gc offensive ogg oggvorbis openal opengl osc oscar oss pam pcntl pcre pdflib perl png ppds pppd python quicktime readline real recode reflection remote rtc ruby samba sasl sdl session sharedmem shorten skey slp sndfile snmp sockets sox speex spell spl sqlite srt sse ssl svg sysvipc tcpd test tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd videos vorbis wifi win32codecs wmf x264 x86 xanim xface xml xml2 xorg xosd xpm xprint xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard kbd joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz ja jp" USERLAND="GNU" VIDEO_CARDS="mga radeon ati"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Isaac Chanin 2007-09-22 21:52:10 UTC
Have you tried recompiling without -mfpmath=sse in your cflags?  Removing that flag fixed a rather similar segfault (and similar backtrace) for me.  Though, as I'm using a prescott chip, your luck may vary.
Comment 2 Michael Gaber 2007-10-02 21:11:17 UTC
can confirm this problem and also the "solution" on a core2-duo (-march=prescott) and drscheme-371
Comment 3 Michael Gaber 2007-10-17 19:12:48 UTC
Created attachment 133701 [details]
updatet ebuild with flag-o-matic removing of -mafpmath=sse
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-10-25 14:41:50 UTC
Michael, you're on i686?
Comment 5 Michael Gaber 2007-10-25 14:51:07 UTC
i don't get what you want to know with your question but atm my CFLAGS look like 

CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -msse -msse2 -msse3 -mmmx -mfpmath=sse"
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2007-10-25 15:11:06 UTC
(In reply to comment #5)
> i don't get what you want to know with your question

I want to know your CHOST, the arch you are running. I want to know that it is not amd64.
Comment 7 Michael Gaber 2007-10-25 21:09:20 UTC
it is not amd64
Comment 8 Marijn Schouten (RETIRED) gentoo-dev 2007-11-29 16:12:36 UTC
Can anyone reproduce with 371?
Comment 9 Isaac Chanin 2007-11-30 04:35:31 UTC
(In reply to comment #8)
> Can anyone reproduce with 371?
> 

Still segfaults with -mfpmath=sse and works fine without it, for me.