Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21208 - gcc-3.3: procps-3.2.8 failures: after emerging procps, ps and top won't run
Summary: gcc-3.3: procps-3.2.8 failures: after emerging procps, ps and top won't run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-18 16:08 UTC by FL
Modified: 2003-10-01 21:59 UTC (History)
1 user (show)

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


Attachments
strace top (somethingwrong,89.20 KB, text/plain)
2003-05-31 08:59 UTC, Sébastien Champigny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FL 2003-05-18 16:08:57 UTC
ps aux gives me: Signal 8 (FPE) caught by ps (procps version 3.1.8)
top says: Gleitkomma-Ausnahme

Reproducible: Always
Steps to Reproduce:
1. emerge procfs
2. ps *
3. top

Actual Results:  
the program(s) exit with failures


  Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-wolk4.0s i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow avi crypt encode gif jpeg libg++ libwww mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa
gdbm berkdb slang readline aalib svga tcltk java X sdl gpm tcpd pam ssl perl
python imlib oggvorbis gtk motif opengl mozilla dvd fbcon gtk2 gtkhtml jikes
tiff xfs xinerama xml xosd -apm -arts -cups -kde -qt -esd -gnome"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox distcc userpriv usersandbox"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-18 18:38:32 UTC
Works here.  Have glibc-2.3.2-r2 though (just commited).
Comment 2 FL 2003-05-20 14:31:31 UTC
too an update to gcc-2.3.2-r2 won't solve the problem
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-20 14:53:09 UTC
You mean glibc right ?  Why do you say that ?  Could you maybe include a
strace of ps ?
Comment 4 FL 2003-05-23 12:11:03 UTC
sry. yes i meant glibc-2.3.2-r2 above. it is related to the hammer patch problem ...
Comment 5 Sébastien Champigny 2003-05-31 08:59:47 UTC
Created attachment 12608 [details]
strace top

The result of "strace top".
This bug could also break mysql emerge process as I get:

bash $ emerge mysql-4.0.13
...
checking for ps... /bin/ps
checking "how to check if pid exists"... configure: error: Could not find the
right ps switches. Which OS is this ?. See the Installation chapter in the
Reference Manual.

!!! ERROR: dev-db/mysql-4.0.13 failed.
!!! Function econf, Line 304, Exitcode 1
!!! econf failed
Comment 6 Sébastien Champigny 2003-05-31 09:16:03 UTC
Rebuilding procps with CFLAGS="-march=pentium3 -02 -pipe" solves the procps problem for me. (pentium3 Coppermine)
S
Comment 7 Sébastien Champigny 2003-05-31 09:16:03 UTC
Rebuilding procps with CFLAGS="-march=pentium3 -02 -pipe" solves the procps problem for me. (pentium3 Coppermine)
Sébastien
Comment 8 Robert Moss (RETIRED) gentoo-dev 2003-06-07 21:39:50 UTC
The problem is the funit-at-a-time flag. Compiling with "-O3 -fno-unit-at-a-time" or with "-O2 -finline-functions -fweb -funit-at-a-time -ftracer -funswitch-loops -frename-registers" (which are effectively the same, but the second instance is less ambiguous) allows compilation and usage with no problems here.
Comment 9 Joshua Kinard gentoo-dev 2003-10-01 21:59:01 UTC
Resolving as FIXED, as the last two comments provide solutions.  This is
likely to have been fixed in later versions of procps.