irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

irssi consistently segfaults #397

Open irssibot opened 18 years ago

irssibot commented 18 years ago

Irssi is running within screen version 4.00.02 (FAU) 5-Dec-03 connected via SSL (v. 0.9.8) to an unreal server. I cannot cause the segfault at will, but it happens consistently at least once every several days. Irssi frequently freezes for 30sec up to a few minutes just before the segfault.

#0  0xff11ee0c in g_io_error_get_from_g_error () from /usr/lib/libglib-2.0.so.0
#1  0xff11f050 in g_io_channel_write () from /usr/lib/libglib-2.0.so.0
#2  0x000a2358 in net_transmit (handle=0x1d5120, data=0xffbfe608 "PONG :irc.cat.pdx.edu\r\n", len=722316) at network.c:374
#3  0x000a19dc in net_sendbuffer_send (rec=0x2165d8, data=0xffbfe608, size=23) at net-sendbuffer.c:115
#4  0x0007d7c8 in irc_server_send_data (server=0x218808, data=0xffbfe608 "PONG :irc.cat.pdx.edu\r\n", len=23) at irc-servers.c:370
#5  0x00074f40 in irc_send_cmd_full (server=0x218808, cmd=0xffbfe608 "PONG :irc.cat.pdx.edu\r\n", send_now=1, immediate=1, raw=0) at irc.c:85
#6  0x0007e0d4 in event_ping (server=0x218808, data=0x2c3b20 "PONG :irc.cat.pdx.edu") at irc-servers.c:743
#7  0x000ac80c in signal_emit_real (rec=0x1c71c0, params=1789952, va=0x7e068, first_hook=0x1c4788) at signals.c:242
#8  0x000ac9fc in signal_emit (signal=0x2e0820 "event ping", params=4) at signals.c:286
#9  0x000756bc in irc_server_event (server=0x218808, line=0x2e1008 "PING :irc.cat.pdx.edu", nick=0x0, address=0x0) at irc.c:293
#10 0x000ac80c in signal_emit_real (rec=0x1c75c0, params=1789952, va=0x755d0, first_hook=0x1d0098) at signals.c:242
#11 0x000acab8 in signal_emit_id (signal_id=95, params=4) at signals.c:304
#12 0x0007578c in irc_parse_incoming_line (server=0x218808, line=0x2e1008 "PING :irc.cat.pdx.edu") at irc.c:369
#13 0x000ac80c in signal_emit_real (rec=0x1cce80, params=1789952, va=0x7573c, first_hook=0x1d00c8) at signals.c:242
#14 0x000acab8 in signal_emit_id (signal_id=207, params=2) at signals.c:304
#15 0x000759c0 in irc_parse_incoming (server=0x218808) at irc.c:388
#16 0x0009e538 in irssi_io_invoke (source=0x1d5120, condition=G_IO_IN, data=0x2bd6bc) at misc.c:56
#17 0xff127d84 in g_main_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xff1290ec in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xff1294fc in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#20 0xff1296f8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0x00044964 in main (argc=1, argv=0xffbff3b4) at irssi.c:388

SunOS 5.9 sun4u sparc SUNW,Ultra-5_10 irssi 0.8.10 (20051211 1015)

irssibot commented 16 years ago

Is it still reproducible with irssi-0.8.12 ?

irssibot commented 16 years ago

This bug can happen with <= glib-2.2.1, because g_io_error_get_from_g_error assume err != NULL in those versions and irssissl{read,write} do not set the 'gerr' argument.