Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77335 - torsmo Floating point exception
Summary: torsmo Floating point exception
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-09 23:13 UTC by Byeong-taek Lee
Modified: 2005-01-10 11:21 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 Byeong-taek Lee 2005-01-09 23:13:08 UTC
In this case, when i run torsmo, Floating point exception error occurs.
When I use strace, I can get a following message.

open("/proc/net/dev", O_RDONLY)         = 8
fstat(8, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9
556e000
read(8, "Inter-|   Receive               "..., 1024) = 694
read(8, "", 1024)                       = 0
open("/proc/meminfo", O_RDONLY)         = 10
fstat(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9
556f000
read(10, "MemTotal:      2058908 kB\nMemFre"..., 1024) = 600
read(10, "", 1024)                      = 0
fstatfs(4, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=1723573, f_bfree=6
41966, f_bavail=624456, f_files=876096, f_ffree=622022, f_fsid={0, 0}, f_namelen
=255, f_frsize=4096}) = 0
--- SIGFPE (Floating point exception) @ 0 (0) ---
+++ killed by SIGFPE +++

My meminfo information is,

MemTotal:      2058908 kB
MemFree:         56236 kB
Buffers:        269744 kB
Cached:         420292 kB
SwapCached:          0 kB
Active:        1560392 kB
Inactive:       229716 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      2058908 kB
LowFree:         56236 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:              12 kB
Writeback:           0 kB
Mapped:        1225616 kB
Slab:           194504 kB
CommitLimit:   1029452 kB
Committed_AS:  1574444 kB
PageTables:       8496 kB
VmallocTotal: 536870911 kB
VmallocUsed:       436 kB
VmallocChunk: 536870139 kB

I don't use swap.

And my emerge info is as following:

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r
0, 2.6.10-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep 24 2004, 14:26:07)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.7.9, 1.8.5-r2, 1.4_p6, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=k8 -pipe -fomit-frame-pointer -ffast-math -funit-at-a-time 
-fpeel-loops -ftracer -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/g
entoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gg3.net/pub/lin
ux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://mirror.gentoo.gr.jp http://ft
p.gentoo.or.kr/ ftp://212.219.56.131/sites/www.ibiblio.org/gentoo/ ftp://212.219
.56.152/sites/www.ibiblio.org/gentoo/"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d acl acpi alsa berkdb bitmap-fonts cdr cjk crypt cups esd f77 
faad fam foomaticdb fortran gdbm gif gimp-print gnome gstreamer gtk2 imagemagick
 ipv6 jp2 jpeg lzw lzw-tiff mad mikmod motif mozilla multilib nautilus nls nptl 
oggvorbis opengl oss pam pda pdflib perl png python readline samba sdl slang tcl
tk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xpm xp
rint xrandr xv zlib"





Reproducible: Always
Steps to Reproduce:
1. emerge torsmo
2. torsmo &
3.

Actual Results:  
Floating point exception


Expected Results:  
working and enjoying :)
Comment 1 Ciaran McCreesh 2005-01-10 10:29:08 UTC
You're using broken CFLAGS that tell GCC to intentionally create broken floating point code. What did you expect?
Comment 2 Byeong-taek Lee 2005-01-10 11:21:39 UTC
I don't think so.
When I changed CFLAGS into `CFLAGS="-O2 -march=k8 -pipe"`,
still I encountered the same error.
What can I change again?