Bug 123537 - GAIM trap divide (by zero) error
Summary: GAIM trap divide (by zero) error
Keywords:
Status: CLOSED DUPLICATE of bug 119611
Alias: None
Product: Fedora
Classification: Fedora
Component: gaim
Version: 2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Warren Togami
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC3Target
TreeView+ depends on / blocked
 
Reported: 2004-05-19 06:48 UTC by Justin M. Forbes
Modified: 2007-11-30 22:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-26 04:02:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Justin M. Forbes 2004-05-19 06:48:45 UTC
I am only using the Oscar protocol, with the following plugins enabled: 
Auto-Reconnect, History, Message Notification, System Tray Icon

GAIM appears to start up and function normally, but I am seeing the
following kernel error hit syslog/dmesg on the order of 2 or more
times per hour for my numa system, less frequently on the SMP and UP
non numa x86_64:

gaim[24635] trap divide error rip:3efd442a70 rsp:7fbfff7e60 error:0

This is followed by a core file in the home directory but the app
keeps functioning and the user would not be aware if they never saw
the cores/logs/filesystem fill up. An example core file is available
at: http://www.linuxtx.org/gaim.core.gz

Dont hesitate to ping me for any other information needed via this
bug, email, or on freenode as Fedora64

Comment 1 Warren Togami 2004-05-19 07:16:01 UTC
<warren> arjan, "2 or more times per hour for my numa system, less
frequently on the SMP and UP non numa x86_64"
<arjan> division by zero
<warren> why does it dump core but not crash the program?
<arjan> rip:3efd442a70
<arjan> addr2line it
<arjan> maybe the app catches the segv
<warren> arjan, any reason it would happen more often on "numa"?
<arjan> warren: race in threads show up more in numa


Comment 2 Warren Togami 2004-05-19 07:23:09 UTC
<warren> why?
<arjan> warren: bigger memory timings -> bigger race window

Comment 3 Mark Doliner 2004-05-19 12:37:27 UTC
Justin: Is it possible for you to get a backtrace from the core file?
 The instructions at http://gaim.sourceforge.net/gdb.php might be
helpful.  Also, the output from "file gaim.core" might be helpful.

I don't think Gaim is catching segv, but I suppose it's possible the
DNS lookup threads are crashing.

Comment 4 Justin M. Forbes 2004-05-19 13:50:06 UTC
file gaim.core:
gaim.core: ELF 64-bit LSB core file AMD x86-64, version 1 (SYSV),
SVR4-style, SVR4-style, SVR4-style, SVR4-style, SVR4-style

Of possible interest, I turned off the history plugin (usually never
turn it on, not sure why it was) and I am getting the cores less
frequenlty, only one every few hours now, might have been because it
was 3AM until 8AM though.  Also, this is happening with no AIM
conversations going on .

Backtrace:
#0  0x0000003efd442a70 in snd_pcm_sw_params () from
/usr/lib64/libasound.so.2
#1  0x0000002a98225efa in ao_plugin_device_clear ()
   from /usr/lib64/ao/plugins-2/libalsa09.so
#2  0x0000002a98225936 in ao_plugin_open () from
/usr/lib64/ao/plugins-2/libalsa09.so
#3  0x0000003ef8e02142 in ?? () from /usr/lib64/libao.so.2
#4  0x000000000049eaec in gaim_gtk_sound_play_file (filename=0x812840
"D\225")
    at gtksound.c:240
#5  0x000000000044ec8a in gaim_sound_play_file (
    filename=0xa0b190 "/usr/share/sounds/gaim/leave.wav") at sound.c:67
#6  0x000000000049ecb2 in gaim_gtk_sound_play_event
(event=GAIM_SOUND_BUDDY_ARRIVE)
    at gtksound.c:298
#7  0x000000000044ecc8 in gaim_sound_play_event
(event=GAIM_SOUND_BUDDY_LEAVE)
    at sound.c:76
#8  0x000000000044b7ec in serv_got_update (gc=0x959ab0, name=0xa1d560
"Kagtuuk",
    loggedin=0, evil=0, signon=0, idle=0, type=0) at server.c:1261
#9  0x0000002a9a9a44ef in gaim_parse_offgoing (sess=0x0, fr=0x2b11) at
oscar.c:2157
#10 0x0000002a9a98c1f1 in buddychange (sess=0x96e670, mod=0x2b11,
rx=0xc269c0,
    snac=0x7fbfff9320, bs=0x2b11) at buddylist.c:253
#11 0x0000002a9a9989f3 in consumesnac (sess=0x96e670, rx=0xc269c0) at
rxhandlers.c:138
#12 0x0000002a9a9990a4 in aim_rxdispatch (sess=0x96e670) at
rxhandlers.c:525
#13 0x0000002a9a9a0fcb in oscar_callback (data=0x0, source=11025,
    condition=GAIM_INPUT_READ) at oscar.c:767
#14 0x000000000047ef2c in gaim_gtk_io_invoke (source=0x0,
condition=11025, data=0x0)
    at gtkeventloop.c:61
#15 0x0000003ef90456db in g_vasprintf () from /usr/lib64/libglib-2.0.so.0
#16 0x0000003ef902495a in g_main_depth () from /usr/lib64/libglib-2.0.so.0
#17 0x0000003ef9025974 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#18 0x0000003ef9025c5e in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#19 0x0000003ef902620d in g_main_loop_run () from
/usr/lib64/libglib-2.0.so.0
#20 0x0000003efb808451 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#21 0x00000000004a43fc in main (argc=1, argv=0x7fbffff858) at main.c:911


Comment 5 Justin M. Forbes 2004-05-19 14:04:17 UTC
Doh, do not know why it just hit me.  This might be related to bug
119611 which is actually an alsa issue. Going to install the
recommended patch there and see if it fixes things.

Comment 6 Justin M. Forbes 2004-05-19 14:08:37 UTC
Also of note, I had the sound settings on default on the Numa box, so
it was trying to play sounds much more often, as opposed to the UP box
where I only play sound when message received begins conversation.

Comment 7 Luke Schierer 2004-05-19 14:12:22 UTC
the backtrace is certainly in the libao code, i'd be interested to see
if it still happened, or if it changed, if you disabled sounds entirely. 

Comment 8 Justin M. Forbes 2004-05-20 17:17:39 UTC
After turning off sounds for the past 24 hours, no more issues with
gaim.  This is definately an alsa-lib issue only.  Going to close this
one as a duplicate of bug 119611

*** This bug has been marked as a duplicate of 119611 ***


Note You need to log in before you can comment on or make changes to this bug.