Menu

#1591 SIGSEGV in xchat_get_info

open
nobody
None
5
2015-03-01
2014-05-27
No

I've been using bip IRC proxy and xchat as IRC client and sometimes xchat crashes (not always, in fact after a crash it never crashes again). Maybe it's the backlog of messages that bip sends to xchat that makes it crash, I can't figure it so far.

So, today I compiled xchat with debug symbols and got it running under gdb, so here's the backtrace:

$ gdb /usr/bin/xchat
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/xchat...done.
(gdb) run
Starting program: /usr/bin/xchat
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed52a700 (LWP 6941)]
[New Thread 0x7fffe7fff700 (LWP 6942)]
[New Thread 0x7fffe548a700 (LWP 6943)]
[New Thread 0x7fffe4c89700 (LWP 6944)]
[New Thread 0x7fffd7fff700 (LWP 6945)]
[New Thread 0x7fffd63d0700 (LWP 6964)]
[Thread 0x7fffd7fff700 (LWP 6945) exited]

Program received signal SIGSEGV, Segmentation fault.
0x000000000046b633 in xchat_get_info (ph=0x0, id=0x492b70 "win_status") at plugin.c:1008

(gdb) bt
#0  0x000000000046b633 in xchat_get_info (ph=0x0, id=0x492b70 "win_status") at plugin.c:1008
#1  0x0000000000435873 in tray_get_window_status () at plugin-tray.c:68
#2  0x0000000000436134 in tray_set_flash (icon=0x77e990) at plugin-tray.c:364
#3  0x0000000000436269 in fe_tray_set_icon (icon=FE_ICON_MESSAGE) at plugin-tray.c:408
#4  0x000000000047683b in text_emit (index=16, sess=0xeb4140, a=0x7fffffffc730 "NaTx1",
    b=0x791388 "08:58:27> bon dia!", c=0x7fffffffc620 "", d=0x7fffffffc630 "") at text.c:2054
#5  0x000000000045a1eb in inbound_chanmsg (serv=0x791050, sess=0xeb4140, chan=0x7fffffffca99 "#sudoersbcn",
    from=0x7fffffffc730 "NaTx1", text=0x791388 "08:58:27> bon dia!", fromme=0 '\000', id=0) at inbound.c:453
#6  0x00000000004839c5 in process_named_msg (sess=0xeb4140, type=0x7fffffffca91 "PRIVMSG",
    word=0x7fffffffc860, word_eol=0x7fffffffc970) at proto-irc.c:1088
#7  0x000000000048413e in irc_inline (serv=0x791050,
    buf=0x791362 ":NaTx1!bip@b.i.p PRIVMSG #sudoersbcn :08:58:27> bon dia!", len=56) at proto-irc.c:1249
#8  0x000000000046d0d4 in server_inline (serv=0x791050,
    line=0x791362 ":NaTx1!bip@b.i.p PRIVMSG #sudoersbcn :08:58:27> bon dia!", len=56) at server.c:396
#9  0x000000000046d32b in server_read (source=0xe64910, condition=G_IO_IN, serv=0x791050) at server.c:461
#10 0x00007ffff59c0ce5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff59c1048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff59c130a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff76b8447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#14 0x000000000041d7da in fe_main () at fe-gtk.c:290
#15 0x000000000047c4c5 in main (argc=1, argv=0x7fffffffd818) at xchat.c:922
(gdb)

Let me know if I can provide further information.

Discussion


Log in to post a comment.