cryptodotis / irssi-otr

LibOTR functionality in Irssi.
GNU General Public License v2.0
183 stars 24 forks source link

irssi segfaults when using irssi-otr plugin #49

Open lasseleegaard opened 9 years ago

lasseleegaard commented 9 years ago

When I try to add the OTR status message to IRSSI it segfaults /statusbar window add otr

I am running debian wheezy and have used the backport of irssi-otr from jessie: -!- OTR: OTR module version: 1.0.0 -!- Irssi: Client: irssi 0.8.15 (20100403 1617)

When I try to trust a chat partner after initiating secure chat it also segfaults: [graffen] /otr trustSegmentation fault lle@defiant:~$

Generally it segfaults whenever I use any /otr commands ("/otr version" works as one of the few) Loading the plugin and initiating otr with ?OTR? works just fine. Please let me know if there is anything I can do to give more and better info

dgoulet commented 9 years ago

Hrm, that's weird, we had report with irssi 0.8.16+ issues but a segfault on every otr commands is worrying.

Can you set your coredump to unlimited like so on your system: "ulimit -c unlimited"

Once you get a segfault, a core file should be generated. Read it with gdb: "gdb irssi ". After that, if you can pastebin the gdb command "bt full" when you opened it with gdb, that would help me a great deal!

lasseleegaard commented 9 years ago

So the anoying thing here is that it does not generate any core dump. It just segfaults. Today I used the "/otr init" command to crash my irssi

ysangkok commented 9 years ago

@lasseleegaard You can run irssi in gdb, then you won't need the core dump. You may need to tell gdb to not pause for every signal.

lasseleegaard commented 9 years ago

So that gave a little more: [lle-] /otr init Program received signal SIGSEGV, Segmentation fault. 0x00007ffff5ccf18a in ?? () from /lib/x86_64-linux-gnu/libc.so.6 (gdb)

ysangkok commented 9 years ago

The backtrace is only useful if you build with debugging flags. You can do that by specifying CFLAGS="-ggdb3 -O0 -pg" when calling configure. You need to do this for irssi and irssi-otr.

DrWhax commented 9 years ago

Could you tell me which OS you were using at the time and which package installs?

kalikaneko commented 8 years ago

getting a segfault with debian wheezy, 1.0.0-1~bpo70+1+b2

ysangkok commented 8 years ago

@kalikaneko Can you build Irssi and Irssi-otr with debugging symbols and run it in GDB like described?