Crash with latest irssi

Wesley Shields <[email protected]> Thu, 9 Apr 2009 19:27:33 -0400
Newsgroups gmane.network.silc.devel
Message-ID <[email protected]>
I'm experiencing a crash with the latest irssi (0.8.13).  The backtrace
looks like this:

Program received signal SIGBUS, Bus error.
0x000000000041cdfe in signal_window_changed (window=0x6967614d656e7552)
    at gui-windows.c:241
241     gui-windows.c: No such file or directory.
        in gui-windows.c
(gdb) bt
#0  0x000000000041cdfe in signal_window_changed (window=0x6967614d656e7552)
    at gui-windows.c:241
#1  0x00000000004a559f in signal_emit_real (rec=0x801b64840, params=2,
    va=0x7fffffffd8a0, first_hook=0x801ba3340) at signals.c:242
#2  0x00000000004a5812 in signal_emit (signal=0x4c6547 "window changed",
    params=2) at signals.c:286
#3  0x000000000046283e in window_set_active (window=0x6967614d656e7552)
    at fe-windows.c:159
#4  0x0000000000463f43 in cmd_join (data=0x801be1c7d "A",
server=0x801be8040)
    at fe-channels.c:142

[more but not very relevant]...

Here's a snippet from cmd_join:

       server = cmd_options_get_server("join", optlist, server);

        channel = channel_find(server, channelname);
        if (channel != NULL) {
                /* already joined to channel, set it active */
                window = window_item_window(channel);
                if (window != active_win)
                        window_set_active(window);

It looks like window becomes a bogus value with the call to
window_item_window.  I don't know if that is the problem or if it's
earlier up in channel_find.  I'm also not sure if it's a bug in irssi or
silc (I'm not very clear on the interaction between the two, but all the
code comes from silc).

I can provide more debugging information if necessary.  I'm a bit
pressed for time right now so I can't debug it any further.  Any help
with this problem would be appreciated and I can easily test patches if
necessary.  Please CC me on any responses as I'm not on this list.
Thanks!

-- WXS
_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/