Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irssi segfaults when using irssi-otr plugin #49

Open
lasseleegaard opened this issue Dec 27, 2014 · 8 comments
Open

irssi segfaults when using irssi-otr plugin #49

lasseleegaard opened this issue Dec 27, 2014 · 8 comments

Comments

@lasseleegaard
Copy link

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
Copy link
Member

dgoulet commented Jan 3, 2015

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
Copy link
Author

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
Copy link

@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
Copy link
Author

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
Copy link

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
Copy link
Member

DrWhax commented Jul 13, 2015

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

@kalikaneko
Copy link

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

@ysangkok
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants