Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180836 - x11-plugins/bfm-0.6.4 segfaults
Summary: x11-plugins/bfm-0.6.4 segfaults
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-04 11:22 UTC by Olaf Walkowiak
Modified: 2008-12-24 23:24 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 Olaf Walkowiak 2007-06-04 11:22:43 UTC
bubblefishymon segfaults from time to time, it seems! to have to do with free memory (more segfaults when a lot of memory is used) 



Reproducible: Always

Steps to Reproduce:
1. run bubblefishymon
2. wait ..
3. it crahses




Actual Results:  
It crashes

Expected Results:  
It should not crash :-)

emerge --info:

Portage 2.1.2.7 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r2 i686)
=================================================================
System uname: 2.6.21-gentoo-r2 i686 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 04 Jun 2007 06:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
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.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -ggdb"
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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://85.25.128.62 ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://212.219.56.133/sites/www.ibiblio.org/gentoo/"
LINGUAS="de ru fr en"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi alsa apache2 arts bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups curl dbus dga dri dts dv dvd dvdr dvdread eds emacs emboss encode esd evolution exif fam fame ffmpeg fftw firefox flac fontconfig fortran freetype gdbm gif gimp gnome gphoto2 gpm gstreamer gtk gtkhtml hal iconv imagemagick imlib ipv6 irda isdnlog jack java jpeg jpeg2k kde kerberos lame latex lcms ldap libg++ libnotify live logrotate lua lzo mad midi mikmod mjpeg mmx mmxext mng mp3 mpeg mudflap musepack music musicbrainz mysql ncurses network nfs nls nptl nptlonly nsplugin objc odbc offensive ogg openal openexr opengl openmp oss pam pcre pdf perl png portaudio povray ppds pppd python qt3 qt3support qt4 quicktime readline real reflection rtc samba scanner sdl session sms sndfile sound speex spell spl sse sse2 ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb utempter v4l v4l2 vcd vidix vorbis win32codecs wmf x86 xanim xinerama xinetd xml xorg xpm xprint xscreensaver xv xvid xvmc 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de ru fr en" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Bactrace give no usable info, even though build with app. falgs and features :-(
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-04 12:01:57 UTC
Which ebuild and version is this about? Don't see any such thing in the tree. Also see http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Olaf Walkowiak 2007-06-04 12:10:19 UTC
Sorry: x11-plugins/bfm


I already followed  http://www.gentoo.org/proj/en/qa/backtraces.xml but get no usable info.

Rigth now waiting for next crash, I'll post the result when it happens





Comment 3 Olaf Walkowiak 2007-06-04 12:38:30 UTC
Backtrace not very enlightning:

 gdb /usr/bin/bubblefishymon --core ./core --batch --quiet -ex "thread apply all bt full" -ex "quit"
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

warning: Can't read pathname for load map: Input/output error.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Core was generated by `bubblefishymon'.
Program terminated with signal 11, Segmentation fault.
#0  0x0804b17d in ?? ()

Thread 1 (process 15654):
#0  0x0804b17d in ?? ()
No symbol table info available.
#1  0xffffffff in ?? ()
No symbol table info available.
#2  0x0805d612 in ?? ()
No symbol table info available.
#3  0x0808ab30 in ?? ()
No symbol table info available.
#4  0x00000011 in ?? ()
No symbol table info available.
#5  0x00000396 in ?? ()
No symbol table info available.
#6  0x00000264 in ?? ()
No symbol table info available.
#7  0x00000001 in ?? ()
No symbol table info available.
#8  0x00000000 in ?? ()
No symbol table info available.

Comment 4 Olaf Walkowiak 2007-06-04 12:39:04 UTC
actual version: x11-plugins/bfm-0.6.4
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-06-04 13:50:26 UTC
Well, the above backtrace is just useless; recompile all the dependencies as well.
Comment 6 Olaf Walkowiak 2007-06-04 14:01:19 UTC
(In reply to comment #5)
> Well, the above backtrace is just useless; 

I know :-((

> recompile all the dependencies as
> well.

Any idea what dependency may cause the problem? I doubt it is gtk+.


Comment 7 Olaf Walkowiak 2007-06-04 14:10:02 UTC
Additional Info:  x11-plugins/gkrellm-bfm-0.6.4 shows the same behaviour.

Comment 8 Alexandros Diamantidis 2008-12-24 23:24:52 UTC
I encountered this bug too with x11-plugins/bfm-0.6.4-r1.

It seems that if optimizations are enabled (-O1 or more) it segfaults as soon as memory usage increases enough for the water level to reach the top of the program's display. With optimizations disabled (-O0) the problem disappears. Here's a backtrace:

* gdb /usr/bin/bubblefishymon --batch --quiet -ex run -ex "thread apply all bt full" -ex "quit"
[Thread debugging using libthread_db enabled]
[New Thread 0xb738f710 (LWP 17327)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb738f710 (LWP 17327)]
0x0804adfe in duck_set (x=45, y=<value optimized out>, nr=<value optimized out>, rev=1, upsidedown=1) at bubblemon.c:1522
1522                    r = _R(cmap);

Thread 1 (Thread 0xb738f710 (LWP 17327)):
#0  0x0804adfe in duck_set (x=45, y=<value optimized out>, nr=<value optimized out>, rev=1, upsidedown=1) at bubblemon.c:1522
        r = 0 '\0'
        g = 132 '\204'
        b = 183 '�'
        w = 0
        h = 0
        rw = <value optimized out>
        rh = <value optimized out>
        dw = 11
        di = 0
        dh = 17
        ds = <value optimized out>
        cmap = <value optimized out>
#1  0x0804c9ff in main (argc=804228911, argv=0x8f2fef8f) at bubblemon.c:1591
        execute = "hducpmkfn::t", '\0' <repeats 243 times>
        proximity = 0
        ch = <value optimized out>
        event = <value optimized out>

To make it crash quickly, run it, and at the same time do something that uses a lot of RAM, e.g.: perl -e 'while (1) { $x .= "." x 10000; }'

Compiled with:
sys-devel/gcc-4.3.2
sys-libs/glibc-2.9_p20081201
sys-devel/binutils-2.19

HOST="i686-pc-linux-gnu"
CFLAGS="-O1 -pipe -ggdb"

(initially I had CFLAGS="-O2 -march=pentium4 -msse2 -mfpmath=sse -fomit-frame-pointer -pipe -ggdb", and trimmed them for the above backtrace - although as far as I can tell, the extra options don't make any difference)

Could this bug be reopened? Or should I report this upstream?