Bug 372886 - kopete crashes when OTR session is initiated without key
Summary: kopete crashes when OTR session is initiated without key
Status: RESOLVED DUPLICATE of bug 349596
Alias: None
Product: kopete
Classification: Unmaintained
Component: OTR Plugin (show other bugs)
Version: Git
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 14:13 UTC by OlafLostViking
Modified: 2016-11-27 15:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
backtrace of kopete crashing when receiving an OTR message while not having a key on our own (3.58 KB, text/plain)
2016-11-27 13:46 UTC, OlafLostViking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OlafLostViking 2016-11-24 14:13:17 UTC
While testing out the newest master (installed in neon dev) I encountered a crash which was already valid in the current stable release.

When the account does not yet have a generated OTR key but the other side starts an OTR session, the "receiving" kopete (the one without key) crashes.
Comment 1 Pali Rohár 2016-11-26 19:56:03 UTC
Please attach stack trace with debug symbols.
Comment 2 OlafLostViking 2016-11-26 22:16:10 UTC
I used your PPA as suggested in bug #362535 and there it happens, too. Just add a new account without a key and initiate an OTR session from a peer. Unfortunately, even though I installed kopete-dbg, neither on the console nor in the KDE Crash Handler there are any details.

So I started kopete in gdb, but "bt" just said "No stack.". How can I get you a useable backtrace from your PPA in Ubuntu? Thanks!
Comment 3 Pali Rohár 2016-11-26 22:30:31 UTC
In KDE crash window is button to install missing debug symbols. And yes kopete-dbg package is needed too.

When you are going to debug kopete in gdb, start kopete with --nofork, so gdb will have access to kopete process:

$ gdb -ex r -ex bt --args kopete --nofork
Comment 4 OlafLostViking 2016-11-27 13:46:59 UTC
Created attachment 102470 [details]
backtrace of kopete crashing when receiving an OTR message while not having a key on our own

The crash handling dialog didn't offer any more symbols to install. But --nofork did the trick :D
Comment 5 Pali Rohár 2016-11-27 15:51:33 UTC
Thank you, now I found where is a problem! For now marking as duplicate of bug #349596.

*** This bug has been marked as a duplicate of bug 349596 ***