Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51042 - Segfault when GAIM attempts to use ARTS sound
Summary: Segfault when GAIM attempts to use ARTS sound
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gaim Bugs Crew
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 06:21 UTC by Kit Fenderson-Peters
Modified: 2004-06-10 07:47 UTC (History)
0 users

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


Attachments
gdb backtrace when GAIM segfaults (gaim-bug.txt,4.88 KB, text/plain)
2004-05-14 06:22 UTC, Kit Fenderson-Peters
Details
strace when gaim segfaults (gaim.strace,1.14 MB, text/plain)
2004-06-01 14:43 UTC, Kit Fenderson-Peters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kit Fenderson-Peters 2004-05-14 06:21:40 UTC
Running GAIM 0.77-r2.  When I have ARTS running, and sound method in GAIM is set to ARTS, GAIM segfaults but does not die.  It simply doesn't make any sound.  When I have sound method in GAIM set to "automatic," GAIM segaults and dies.

Reproducible: Always
Steps to Reproduce:
1. Start GAIM
2. make sure artsd is running
3. set sound method in GAIM to 'automatic' or 'arts'
Actual Results:  
if sound method is 'automatic' GAIM will crash.   
 
if sound method is 'arts' GAIM will print a segfault message, then continue 
with no sound for that conversation. 

Expected Results:  
GAIM should play sounds via ARTS if sound method is set to 'arts'. 

took@brook grb $ emerge info 
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 
2.6.6-rc3-mm1) 
================================================================= 
System uname: 2.6.6-rc3-mm1 i686 Intel(R) Pentium(R) M processor 1300MHz 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O2 -pipe -msse2 -mfpmath=sse" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=pentium3 -O2 -pipe -msse2 -mfpmath=sse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo 
http://gentoo.noved.org/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ 
http://mirrors.tds.net/gentoo 
http://212.219.247.15/sites/www.ibiblio.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm 
gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg 
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl slang spell ssl svga tcltk tcpd truetype video_cards_radeon x86 
xml2 xmms xv zlib"
Comment 1 Kit Fenderson-Peters 2004-05-14 06:22:49 UTC
Created attachment 31408 [details]
gdb backtrace when GAIM segfaults
Comment 2 Don Seiler (RETIRED) gentoo-dev 2004-05-14 11:20:37 UTC
The "No debugging symbols found" messages in your backtrace indicate that you have built gaim without USE="debug".  If there are no debugging symbols, the backtrace is pretty much useless.  Your backtrace in particular doesn't list any gaim functions or files.

Please USE="debug" emerge gaim and try to get a backtrace then.
Comment 3 Kit Fenderson-Peters 2004-05-14 12:58:58 UTC
new backtrace, after re-emerging with commandline: 'USE="debug" emerge /usr/portage/net-im/gaim/gaim-0.77-r2.ebuild'

(gdb) run
Starting program: /usr/bin/gaim
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Detaching after fork from child process 5057.
Detaching after fork from child process 5058.

Program received signal SIGSEGV, Segmentation fault.
0x4028dee4 in mallopt () from /lib/libc.so.6
(gdb) bt
#0  0x4028dee4 in mallopt () from /lib/libc.so.6
#1  0x4028d61e in mallopt () from /lib/libc.so.6
#2  0x4028c813 in malloc () from /lib/libc.so.6
#3  0x4090297a in operator new(unsigned) ()
   from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5
#4  0x408f23b5 in std::__default_alloc_template<true, 0>::allocate(unsigned)
    () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5
#5  0x41a6dc8c in ?? ()
#6  0x00000200 in ?? ()
#7  0x0846dbd4 in ?? ()
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-05-18 08:31:23 UTC
http://gaim.sourceforge.net/gdb.php

Please follow the instructions at the bottom of that page regarding backtraces with "malloc()" in them.
Comment 5 Don Seiler (RETIRED) gentoo-dev 2004-06-01 09:32:45 UTC
Kit is this still an issue?  Can you duplicate it in gaim-0.78?
Comment 6 Kit Fenderson-Peters 2004-06-01 13:39:29 UTC
Bug persists in gaim-0.78.  gdb gives me this error: 
"warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers"

backtrace for sound method "automatic"

#0  0x40290ee4 in mallopt () from /lib/libc.so.6
#1  0x4029061e in mallopt () from /lib/libc.so.6
#2  0x4028e5e2 in _IO_str_pbackfail () from /lib/libc.so.6
#3  0x4028f7b5 in malloc () from /lib/libc.so.6
#4  0x4098574f in operator new(unsigned) () from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5
#5  0x40973489 in std::__default_alloc_template<true, 0>::allocate(unsigned) ()
   from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5
#6  0x4165753c in ?? ()
#7  0x00000200 in ?? ()
#8  0x400399d0 in __pthread_initialize () from /lib/libpthread.so.0
#9  0x416566e0 in ?? ()
#10 0xbfff82f0 in ?? ()
#11 0x08508be4 in ?? ()
#12 0x08508be8 in ?? ()
#13 0xbfff8330 in ?? ()
#14 0x00000001 in ?? ()
#15 0xbfff82f0 in ?? ()
#16 0x00000003 in ?? ()
#17 0x00000008 in ?? ()
#18 0x08508b94 in ?? ()
#19 0x08508b94 in ?? ()
#20 0xbfff8488 in ?? ()
#21 0x084f6c80 in ?? ()
#22 0x084f6a80 in ?? ()
#23 0x084f6a80 in ?? ()
#24 0x4003baba in sem_timedwait () from /lib/libpthread.so.0
#25 0x416560f6 in ?? ()
#26 0xbfff82f0 in ?? ()
Comment 7 Don Seiler (RETIRED) gentoo-dev 2004-06-01 13:47:19 UTC
Did you remember to build gaim-0.78 with USE="debug"?  I don't see anything from gaim in your backtrace either and want to confirm.
Comment 8 Kit Fenderson-Peters 2004-06-01 14:40:34 UTC
Yes.  Gaim is built with USE="debug".  I've even downgraded to binutils 2.14.90.0.8-r1 and recompiled.  No useful debug information. 
Comment 9 Kit Fenderson-Peters 2004-06-01 14:43:15 UTC
Created attachment 32497 [details]
strace when gaim segfaults
Comment 10 Don Seiler (RETIRED) gentoo-dev 2004-06-09 12:14:10 UTC
For the record what version of ARTS do you have installed?  Some folks in #gaim are having a look.  One that I've spoken with uses ARTS just fine, although he says there is a slight delay in the playing.
Comment 11 Don Seiler (RETIRED) gentoo-dev 2004-06-09 12:17:08 UTC
Just noticed that you are using gcc 3.4.0 and glibc 2.3.3_preBLAH.  They may be playing a part in this as well.
Comment 12 Kit Fenderson-Peters 2004-06-09 13:42:29 UTC
using arts 1.2.2.  I suppose I could go back to glibc 2.3.2 and just get rid of GCC 3.4.0.  I think I've tried compiling gaim with both GCC 3.3.3 and 3.4.0 with similar results.
Comment 13 Kit Fenderson-Peters 2004-06-10 07:07:11 UTC
After switching to glibc-2.3.3.20040420, removing GCC 3.4.0, installing GCC 3.3.3-r6, and re-emerging GAIM, the problem appears to be solved.  I have tested GAIM with ARTS running, and GAIM with ARTS running and XMMS playing a song, and I got working sound.

Life is beautiful once again.
Comment 14 Don Seiler (RETIRED) gentoo-dev 2004-06-10 07:47:15 UTC
Good to hear.  nosnilmot in #gaim thought of that.  kudos to him.