irssi-plugin-otr segfaults

Bug #1242358 reported by Jarkko Sakkinen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Irssi
New
Undecided
Unassigned

Bug Description

Steps:

1. luanch irssi
2. /load otr

Stacktrace after crash:

(gdb) bt
#0 __strlen_sse2_pminub () at ../sysdeps/x86_64/multiarch/strlen-sse2-pminub.S:38
#1 0x00007ffff73a80a3 in g_strdup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x0000000000494dcd in perl_signal_register (signal=0x7ffff4f65b09 "otr event", args=0x7ffff51693e0 <signal_args_otr_event>) at perl-signals.c:557
#3 0x00007ffff4f64f08 in otr_init () at module.c:338
#4 0x000000000047e0d3 in module_load_name (path=path@entry=0x7813a0 "otr", rootmodule=rootmodule@entry=0x7813e0 "otr", submodule=submodule@entry=0x781400 "otr", silent=silent@entry=1)
    at modules-load.c:199
#5 0x000000000047e2fd in module_load_full (path=0x7813a0 "otr", rootmodule=0x7813e0 "otr", submodule=0x781400 "otr", start=<optimized out>, end=<optimized out>, prefixes=0x7810d0)
    at modules-load.c:290
#6 0x000000000047e51e in module_load (path=<optimized out>, prefixes=prefixes@entry=0x7810d0) at modules-load.c:317
#7 0x0000000000442ea7 in cmd_load (data=<optimized out>) at fe-modules.c:180
#8 0x00000000004884d2 in signal_emit_real (rec=rec@entry=0x710590, params=params@entry=3, va=va@entry=0x7fffffffd6c8, first_hook=<optimized out>) at signals.c:242
#9 0x000000000048893d in signal_emit (signal=signal@entry=0x781260 "command load", params=params@entry=3) at signals.c:286
#10 0x0000000000475043 in parse_command (item=0x0, server=0x0, expand_aliases=<optimized out>, command=0x781241 "load otr") at commands.c:899
#11 event_command (line=0x781241 "load otr", server=0x0, item=0x0) at commands.c:945
#12 0x00000000004884d2 in signal_emit_real (rec=rec@entry=0x6e07a0, params=params@entry=3, va=va@entry=0x7fffffffd878, first_hook=<optimized out>) at signals.c:242
#13 0x000000000048893d in signal_emit (signal=signal@entry=0x49650d "send command", params=params@entry=3) at signals.c:286
#14 0x0000000000419cb3 in key_send_line () at gui-readline.c:439
#15 0x00000000004884d2 in signal_emit_real (rec=rec@entry=0x7423d0, params=params@entry=3, va=va@entry=0x7fffffffda08, first_hook=<optimized out>) at signals.c:242
#16 0x000000000048893d in signal_emit (signal=signal@entry=0x781200 "key send_line", params=params@entry=3) at signals.c:286
#17 0x000000000044ac73 in sig_multi (data=<optimized out>, gui_data=0x0) at keyboard.c:653
#18 0x00000000004884d2 in signal_emit_real (rec=rec@entry=0x70dfc0, params=params@entry=3, va=va@entry=0x7fffffffdba8, first_hook=<optimized out>) at signals.c:242
#19 0x000000000048893d in signal_emit (signal=signal@entry=0x7af3e0 "key multi", params=params@entry=3) at signals.c:286
#20 0x000000000044b5c3 in key_emit_signal (keyboard=0x737700, key=0x7247e0, key=0x7247e0) at keyboard.c:552
#21 key_pressed (keyboard=0x737700, key=key@entry=0x7fffffffdcd0 "^J") at keyboard.c:608
#22 0x0000000000419461 in sig_gui_key_pressed (keyp=0xa) at gui-readline.c:406
#23 0x00000000004884d2 in signal_emit_real (rec=rec@entry=0x7486f0, params=params@entry=1, va=va@entry=0x7fffffffdd88, first_hook=<optimized out>) at signals.c:242
#24 0x000000000048893d in signal_emit (signal=<optimized out>, params=1) at signals.c:286
#25 0x000000000041a727 in sig_input () at gui-readline.c:664
#26 0x000000000047bac0 in irssi_io_invoke (source=<optimized out>, condition=<optimized out>, data=<optimized out>) at misc.c:54
#27 0x00007ffff738b3a6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff738b6f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffff738b79c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x000000000041682c in main (argc=1, argv=0x7fffffffe148) at irssi.c:362

I installed irssi-plugin-otr-dbgsym and irssi-dbgsym by following instructions from https://wiki.ubuntu.com/DebuggingProgramCrash. I also added symbols for the plugin by using add-symbol-file and looking the load address from /proc/pid/maps.

Revision history for this message
Jarkko Sakkinen (jarkko-sakkinen) wrote :

Oops, wrong package, my apologies..

affects: openstack-manuals → irssi
Revision history for this message
Lasse Kärkkäinen (tronic+mb48) wrote :

Have you reported this upstream? Debian and https://github.com/cryptodotis/irssi-otr would be the relevant places, I guess. Unfortunately Canonical doesn't seem to care about bug reports and thus it is useless to report any bugs here. Once fixed in Debian, the fix will eventually float into Ubuntu as well.

Revision history for this message
Jarkko Sakkinen (jarkko-sakkinen) wrote :

Thanks. I bisected patch that fixes the issue from mainline repository:

cab3fc915c387e24e4228f019745a76ca592dbc4

And attached it to the bug. I looked up on patches after v1.0.0-alpha2 to which Ubuntu/Debian is based on.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

FWIW irssi-plugin-otr is a community supported package (universe), similar to Debian. Canonical (+community) supports the packages in main.

To get a patch sponsored on Ubuntu side see eg. http://developer.ubuntu.com/packaging/html/udd-sponsorship.html - bzr branch against ubuntu packaging branch lp:ubuntu/irssi-plugin-otr.

But since 14.04 is in Debian import phase I'd also suggest contributing to Debian directly to benefit both at the same time. There are no Ubuntu specific changes in the package so the sync will happen automatically (until February 6th).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.