Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30916 - Using libsdl-1.2.6 results in 100% CPU usage.
Summary: Using libsdl-1.2.6 results in 100% CPU usage.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-11 09:51 UTC by Balki
Modified: 2003-10-19 13:35 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 Balki 2003-10-11 09:51:15 UTC
Upgrading to libsdl-1.2.6-r1 causes 100% of CPU to be used when this library is
called. This is not evident in libsdl-1.2.5-r2.   E.g.  
1) Running frozen-bubble against 1.2.6-r1 results in 100% CPU, against 1.2.5-r2
this goes away.
2) Using pygame.  Enter a python session and enter "import pygame", then
"pygame.mixer.init()" - this results in 100%CPU against 1.2.6-r1.


Reproducible: Always
Steps to Reproduce:
1.Start an interactive python session type "python"
2.type "import pygame"
3.type "pygame.mixer.init()" to get 100% CPU usage.
4. type "pygame.mixer.quit()" to stop 100% CPU usage.




Sound card: Creative Labs SoundBlaster 5.1
pygame-1.5.6
sdl-mixer-1.2.5-r1
alsa-lib-0.9.2
kernel: gentoo-sources-2.4.20-r7
Comment 1 SpanKY gentoo-dev 2003-10-11 12:29:28 UTC
you forgot `emerge info` ...

did you try re-emerging the sdl perl packages after upgrading to 1.2.6 ?
 i can run frozen-bubble w/sdl-1.2.6 over here w/out any problems
Comment 2 Balki 2003-10-12 08:42:45 UTC
Here's the emerge info:
Portage 2.0.49-r10 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon -funroll-loops -fomit-frame-pointer -pipe"
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/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi encode foomaticdb gif jpeg libg++ libwww mad mikmod
mpeg ncurses nls pdflib quicktime spell xml2 xmms xv zlib gdbm berkdb slang
readline svga sdl tcpd ssl perl imlib gtk motif scanner alsa cdr crypt cups
dvd esd evo gnome gpm gtk2 gtkhtml java joystick mozilla mysql oggvorbis
opengl pda pam png postgres python qt samba tcltk truetype X -kde -arts"
 
I've not tried recompiling sdl-perl yet, but I assume this would not affect
the pygame side of things anyway.
Comment 3 SpanKY gentoo-dev 2003-10-18 00:04:18 UTC
could you try this ?
export EXTRA_ECONF="--disable-nasm"
emerge libsdl
Comment 4 Balki 2003-10-18 09:23:37 UTC
Gave that a go.  No luck I'm afraid.

Tried recompiling with nasm (0.99.38) enabled, still the same problem.
Comment 5 Balki 2003-10-19 13:35:48 UTC
Hmmm.  Just checked again (after a reboot). All seems fine now.