Summary: | kgpg hangs when trying to decrypt a signature | ||
---|---|---|---|
Product: | [Applications] kgpg | Reporter: | Richard Weinberger <richard-bugs> |
Component: | general | Assignee: | Rolf Eike Beer <kde> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 2.6.x | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.7.4 | |
Sentry Crash Report: | |||
Attachments: | the funky signature |
Description
Richard Weinberger
2011-11-19 12:55:14 UTC
This looks very much like some assertion is hit. Please start KGpg from a terminal session and paste the output that happens shortly before the crash here. Will do, but the crash happens only very rarely... There you go! --->8--- Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc KCrash: Application 'kgpg' crashing. ---8<--- Ok, there is some sort of memleak happening. Could you try running valgrind --leak-check=full kgpg --nofork This will likely be rather slow but hopefully gives me a clue what's going on. Created attachment 65870 [details]
the funky signature
This is not going to work. I had some time to look a bit closer at the problem. Kgpg seems to get stuck in an infinite loop by opening the attached pgp-signature. Within this loop it allocates from time to time some memory, after a few hours it crashes... You can reproduce the issue as follows: 1. kgpg --nofork on a second shell: 2. kgpg signature.asc Now the first kgpg process consumes 100% cpu until it crashes due to std:bad_alloc. Thanks for the info, now I know what is happening. KGpg tries to decrypt the signature and gots stuck in it's communication with the underlying gpg process. Git commit de841cf6a13d5c2ff5bb3cdb9002acc3afae05c9 by Rolf Eike Beer. Committed on 20/11/2011 at 16:36. Pushed by dakon into branch 'KDE/4.7'. prevent KGpg to endlessly loop while trying to decrypt a detached signature This can't work, so there is no value in trying it. BUG:286991 M +3 -0 kgpgtextinterface.cpp http://commits.kde.org/kgpg/de841cf6a13d5c2ff5bb3cdb9002acc3afae05c9 |