Bug 391499 - KGPG crashes on setting trust level for self keypair
Summary: KGPG crashes on setting trust level for self keypair
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: 17.12.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-03-07 04:43 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2018-05-07 19:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (12.26 KB, text/plain)
2018-04-06 13:45 UTC, yves.caniou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim A. Misbakh-Soloviov (mva) 2018-03-07 04:43:44 UTC
Application: kgpg (17.12.2)
 (Compiled from sources)
Qt Version: 5.9.4
Frameworks Version: 5.43.0
Operating System: Linux 4.15.4 x86_64
Distribution: "Gentoo GNU/Linux"

-- Information about the crash:
- What I was doing when the application crashed:
Set trust level fo own keys to "Absolute". Then it freezed, and then I pressed "Cancel", that, in turn, caused crash.

The crash can be reproduced every time.

-- Backtrace:
Application: KGpg (kgpg), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0b1acf8880 (LWP 44436))]

Thread 3 (Thread 0x7f0af1727700 (LWP 44525)):
#0  0x00007f0b0d77d003 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f0b0d77da3b in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f0b0d77dc1c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0b15448a7b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f0b153f6baa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f0b152517fa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f0b15255c75 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f0b106d292b in start_thread () from /lib64/libpthread.so.0
#8  0x00007f0b1495165f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f0afbfff700 (LWP 44488)):
#0  0x00007f0b14945c95 in poll () from /lib64/libc.so.6
#1  0x00007f0b0d77db09 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f0b0d77dc1c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0b15448a7b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f0b153f6baa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f0b152517fa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f0b15ab8ce5 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f0b15255c75 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f0b106d292b in start_thread () from /lib64/libpthread.so.0
#9  0x00007f0b1495165f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f0b1acf8880 (LWP 44436)):
[KCrash Handler]
#6  0x00007f0b14884fa0 in raise () from /lib64/libc.so.6
#7  0x00007f0b14886af7 in abort () from /lib64/libc.so.6
#8  0x00007f0b14ebc035 in __gnu_cxx::__verbose_terminate_handler () at /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007f0b14eb9c26 in __cxxabiv1::__terminate (handler=<optimized out>) at /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/eh_terminate.cc:47
#10 0x00007f0b14eb9c71 in std::terminate () at /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
#11 0x00007f0b14ebaa5f in __cxxabiv1::__cxa_pure_virtual () at /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/pure.cc:50
#12 0x0000559be77eeeb7 in KGpgTransactionPrivate::slotReadReady() ()
#13 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#14 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#15 0x0000559be7843c79 in KLineBufferedProcessPrivate::_k_receivedStdout() ()
#16 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#17 0x00007f0b153845fa in QProcess::readyReadStandardOutput(QProcess::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f0b153890b1 in QProcessPrivate::tryReadFromChannel(QProcessPrivate::Channel*) () from /usr/lib64/libQt5Core.so.5
#19 0x00007f0b1538e9f8 in QProcessPrivate::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#20 0x00007f0b15384eeb in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#21 0x00007f0b153855ea in QProcess::~QProcess() () from /usr/lib64/libQt5Core.so.5
#22 0x0000559be7840adf in GPGProc::~GPGProc() ()
#23 0x0000559be77eda45 in KGpgTransactionPrivate::~KGpgTransactionPrivate() ()
#24 0x0000559be77edad9 in KGpgTransactionPrivate::~KGpgTransactionPrivate() ()
#25 0x0000559be77e9f71 in KGpgTransaction::~KGpgTransaction() ()
#26 0x0000559be77f1237 in KGpgChangeTrust::~KGpgChangeTrust() ()
#27 0x00007f0b15426ba8 in QObjectPrivate::deleteChildren() () from /usr/lib64/libQt5Core.so.5
#28 0x00007f0b16579b4c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#29 0x0000559be784bad2 in KgpgKeyInfo::~KgpgKeyInfo() ()
#30 0x0000559be784bb09 in KgpgKeyInfo::~KgpgKeyInfo() ()
#31 0x0000559be7822a68 in KeysManager::keyproperties() ()
#32 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#33 0x00007f0b16539022 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5
#34 0x00007f0b1653b70c in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5
#35 0x00007f0b166b7a4c in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
#36 0x00007f0b166beefb in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
#37 0x00007f0b166bfd23 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#38 0x00007f0b1657de38 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#39 0x00007f0b166c204b in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#40 0x00007f0b1653f72c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#41 0x00007f0b1654754f in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#43 0x00007f0b16546522 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5
#44 0x00007f0b16598c85 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#45 0x00007f0b1659b5ba in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#46 0x00007f0b1653f72c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#47 0x00007f0b16546ff4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#48 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#49 0x00007f0b15e2b723 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#50 0x00007f0b15e2d345 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#51 0x00007f0b15e0668b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#52 0x00007f0b04d82070 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#53 0x00007f0b0d77d7e7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#54 0x00007f0b0d77db88 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#55 0x00007f0b0d77dc1c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#56 0x00007f0b15448a5f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#57 0x00007f0b153f6baa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#58 0x00007f0b166bcc40 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib64/libQt5Widgets.so.5
#59 0x0000559be78234bf in KeysManager::slotMenu(QPoint const&) ()
#60 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#61 0x00007f0b16564355 in QWidget::customContextMenuRequested(QPoint const&) () from /usr/lib64/libQt5Widgets.so.5
#62 0x00007f0b1657ec8b in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007f0b1661f1ae in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#64 0x00007f0b1679244b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#65 0x00007f0b167fa5cc in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#66 0x00007f0b153f7bac in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#67 0x00007f0b1653f705 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#68 0x00007f0b16547d5e in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#69 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#70 0x00007f0b16599089 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#71 0x00007f0b1659b5ba in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#72 0x00007f0b1653f72c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#73 0x00007f0b16546ff4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#74 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#75 0x00007f0b15e2b723 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#76 0x00007f0b15e2d345 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#77 0x00007f0b15e0668b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#78 0x00007f0b04d82070 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#79 0x00007f0b0d77d7e7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#80 0x00007f0b0d77db88 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#81 0x00007f0b0d77dc1c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#82 0x00007f0b15448a5f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#83 0x00007f0b153f6baa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#84 0x00007f0b153ff244 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#85 0x0000559be77c32a4 in main ()

Possible duplicates by query: bug 389500, bug 382439, bug 377656.

Reported using DrKonqi
Comment 1 yves.caniou 2018-04-06 13:45:24 UTC
Created attachment 111872 [details]
New crash information added by DrKonqi

kgpg (17.12.3) using Qt 5.9.4

- What I was doing when the application crashed:

Same as reported in the original reportbug, I was setting the trust on a already generated key.
Kgpg was showing some graphical thing to show it was processing.
It was lasted much too long, I canceled and the application crashed.

-- Backtrace (Reduced):
#8  0x00007f32b46e90fd in __gnu_cxx::__verbose_terminate_handler () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007f32b46e6ec6 in __cxxabiv1::__terminate (handler=<optimized out>) at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/eh_terminate.cc:47
#10 0x00007f32b46e6f11 in std::terminate () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
#11 0x00007f32b46e7a7f in __cxxabiv1::__cxa_pure_virtual () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/pure.cc:50
#12 0x0000562596e50286 in KGpgTransactionPrivate::slotReadReady() ()
Comment 2 Rolf Eike Beer 2018-04-06 15:07:41 UTC
> #12 0x0000562596e50286 in KGpgTransactionPrivate::slotReadReady() ()

Sadly this is missing line information. Please install the debug symbols 
and try again.

Please make sure to start kgpg from a terminal, and that no other 
instance of KGpg is running before. There should be some debug output 
that could be helpful.
Comment 3 yves.caniou 2018-05-02 06:54:12 UTC
(In reply to Rolf Eike Beer from comment #2)
> > #12 0x0000562596e50286 in KGpgTransactionPrivate::slotReadReady() ()
> 
> Sadly this is missing line information. Please install the debug symbols 
> and try again.
> 
> Please make sure to start kgpg from a terminal, and that no other 
> instance of KGpg is running before. There should be some debug output 
> that could be helpful.

I recompiled kgpg.
I killed the running kgpg and ran it from Konsole. Got the following:
$ kgpg 
log_kgpg: checking version of GnuPG executable "gpg"
gpg: keyserver option 'include-disabled' is unknown
gpg: enabled debug flags: memstat
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg:        build=0 update=0 insert=0 delete=0
gpg:        reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x0000000000000000 calls=0 bytes=0
gpg: secmem usage: 0/65536 bytes in 0 blocks
log_kgpg: version is "2.2.4" 131588
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
gpg: keyserver option 'include-disabled' is unknown
QProcess: Destroyed while process ("gpg") is still running.
gpg: keyserver option 'include-disabled' is unknown
QProcess: Destroyed while process ("gpg") is still running.
pure virtual method called
terminate called without an active exception
KCrash: Application 'kgpg' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 12 and type 'Read', disabling...

[1]+  Stoppé                 kgpg

And here is log:
Application: KGpg (kgpg), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7efdab2970c0 (LWP 20981))]

Thread 6 (Thread 0x7efd80273700 (LWP 20993)):
#0  0x00007efda4e5794d in poll () from /lib64/libc.so.6
#1  0x00007efd9e49a966 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007efd9e49aa7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007efda59c100b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007efda597001a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007efda57ce583 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007efda57d2a41 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007efda0eeb907 in start_thread () from /lib64/libpthread.so.0
#8  0x00007efda4e62ccf in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7efd82960700 (LWP 20991)):
#0  0x00007efda0ef2876 in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007efd8dc72ef3 in thread_function () from /usr/lib64/dri/swrast_dri.so
#2  0x00007efd8dc72d57 in impl_thrd_routine () from /usr/lib64/dri/swrast_dri.so
#3  0x00007efda0eeb907 in start_thread () from /lib64/libpthread.so.0
#4  0x00007efda4e62ccf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7efd83161700 (LWP 20990)):
#0  0x00007efda0ef2876 in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007efd8dc72ef3 in thread_function () from /usr/lib64/dri/swrast_dri.so
#2  0x00007efd8dc72d57 in impl_thrd_routine () from /usr/lib64/dri/swrast_dri.so
#3  0x00007efda0eeb907 in start_thread () from /lib64/libpthread.so.0
#4  0x00007efda4e62ccf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7efd8f9cb700 (LWP 20983)):
#0  0x00007efda4e5794d in poll () from /lib64/libc.so.6
#1  0x00007efd9e49a966 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007efd9e49aa7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007efda59c100b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007efda597001a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007efda57ce583 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007efda6032ec5 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#7  0x00007efda57d2a41 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007efda0eeb907 in start_thread () from /lib64/libpthread.so.0
#9  0x00007efda4e62ccf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7efd9668c700 (LWP 20982)):
#0  0x00007efda4e5794d in poll () from /lib64/libc.so.6
#1  0x00007efda01ea860 in _xcb_conn_wait () from /usr/lib64/libxcb.so.1
#2  0x00007efda01ec5f9 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007efd989e91b9 in QXcbEventReader::run() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007efda57d2a41 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007efda0eeb907 in start_thread () from /lib64/libpthread.so.0
#6  0x00007efda4e62ccf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7efdab2970c0 (LWP 20981)):
[KCrash Handler]
#6  0x00007efda4d9ef80 in raise () from /lib64/libc.so.6
#7  0x00007efda4da0c4a in abort () from /lib64/libc.so.6
#8  0x00007efda53e40fd in __gnu_cxx::__verbose_terminate_handler () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007efda53e1ec6 in __cxxabiv1::__terminate (handler=<optimized out>) at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/eh_terminate.cc:47
#10 0x00007efda53e1f11 in std::terminate () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
#11 0x00007efda53e2a7f in __cxxabiv1::__cxa_pure_virtual () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/pure.cc:50
#12 0x0000555635a0c286 in KGpgTransactionPrivate::slotReadReady() ()
#13 0x00007efda5999a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#14 0x00007efda5999a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#15 0x0000555635a61659 in KLineBufferedProcessPrivate::_k_receivedStdout() ()
#16 0x00007efda5999a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#17 0x00007efda59001ca in QProcess::readyReadStandardOutput(QProcess::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#18 0x00007efda59058b0 in QProcessPrivate::tryReadFromChannel(QProcessPrivate::Channel*) () from /usr/lib64/libQt5Core.so.5
#19 0x00007efda590bb80 in QProcessPrivate::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#20 0x00007efda5900a6b in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#21 0x00007efda5901108 in QProcess::~QProcess() () from /usr/lib64/libQt5Core.so.5
#22 0x0000555635a5e4ef in GPGProc::~GPGProc() ()
#23 0x0000555635a0ae21 in KGpgTransactionPrivate::~KGpgTransactionPrivate() ()
#24 0x0000555635a0aea9 in KGpgTransactionPrivate::~KGpgTransactionPrivate() ()
#25 0x0000555635a07411 in KGpgTransaction::~KGpgTransaction() ()
#26 0x0000555635a0e4d7 in KGpgChangeTrust::~KGpgChangeTrust() ()
#27 0x00007efda59a019c in QObjectPrivate::deleteChildren() () from /usr/lib64/libQt5Core.so.5
#28 0x00007efda6ae0b4b in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#29 0x0000555635a69592 in KgpgKeyInfo::~KgpgKeyInfo() ()
#30 0x0000555635a695c9 in KgpgKeyInfo::~KgpgKeyInfo() ()
#31 0x0000555635a3f140 in KeysManager::keyproperties() ()
#32 0x00007efda5999a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#33 0x00007efda6a9f7c2 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5
#34 0x00007efda6aa1e60 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5
#35 0x00007efda6c20a7a in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
#36 0x00007efda6c27f94 in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
#37 0x00007efda6c29076 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#38 0x00007efda6ae4fe0 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#39 0x00007efda6c2b503 in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#40 0x00007efda6aa5d7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#41 0x00007efda6aae458 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007efda59712da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#43 0x00007efda6aacb7d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5
#44 0x00007efda6aff416 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#45 0x00007efda6b019f3 in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#46 0x00007efda6aa5d7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#47 0x00007efda6aad611 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#48 0x00007efda59712da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#49 0x00007efda63a31d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#50 0x00007efda63a4d85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#51 0x00007efda6380f1b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#52 0x00007efd98a476f0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#53 0x00007efd9e49a767 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#54 0x00007efd9e49a9d0 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#55 0x00007efd9e49aa7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#56 0x00007efda59c0fef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#57 0x00007efda597001a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#58 0x00007efda6c25c1d in QMenu::exec(QPoint const&, QAction*) () from /usr/lib64/libQt5Widgets.so.5
#59 0x0000555635a3fbc7 in KeysManager::slotMenu(QPoint const&) ()
#60 0x00007efda5999a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#61 0x00007efda6acaf45 in QWidget::customContextMenuRequested(QPoint const&) () from /usr/lib64/libQt5Widgets.so.5
#62 0x00007efda6ae5dcd in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007efda6b8ae3e in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#64 0x00007efda6cf9fb3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#65 0x00007efda6d623dc in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#66 0x00007efda59710c2 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#67 0x00007efda6aa5d55 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#68 0x00007efda6aae730 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#69 0x00007efda59712da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#70 0x00007efda6aff162 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#71 0x00007efda6b019f3 in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#72 0x00007efda6aa5d7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#73 0x00007efda6aad611 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#74 0x00007efda59712da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#75 0x00007efda63a31d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#76 0x00007efda63a4d85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#77 0x00007efda6380f1b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#78 0x00007efd98a476f0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#79 0x00007efd9e49a767 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#80 0x00007efd9e49a9d0 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#81 0x00007efd9e49aa7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#82 0x00007efda59c0fef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#83 0x00007efda597001a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#84 0x00007efda5978484 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#85 0x00005556359e03da in main ()
Comment 4 Rolf Eike Beer 2018-05-02 08:37:34 UTC
> I recompiled kgpg.
> I killed the running kgpg and ran it from Konsole. Got the following:
> $ kgpg

This could very likely run the kgpg binary in your path, which probably 
is the distro one. Try "./kgpg" in your build directory.

Please also make sure to have debug symbols and messages enabled, see 
https://utils.kde.org/projects/kgpg/building.php
Please use "-D CMAKE_BUILD_TYPE=Debug" instead of DebugFull, this is 
obsolete and does not work anymore (will fix it later).
Comment 5 yves.caniou 2018-05-03 13:51:06 UTC
(In reply to Rolf Eike Beer from comment #4)
> > I recompiled kgpg.
> > I killed the running kgpg and ran it from Konsole. Got the following:
> > $ kgpg
> 
> This could very likely run the kgpg binary in your path, which probably 
> is the distro one. Try "./kgpg" in your build directory.
> 
> Please also make sure to have debug symbols and messages enabled, see 
> https://utils.kde.org/projects/kgpg/building.php
> Please use "-D CMAKE_BUILD_TYPE=Debug" instead of DebugFull, this is 
> obsolete and does not work anymore (will fix it later).

I use Gentoo, so kgpg was the distro but also the correct binary.
Here I used git and everything as explained here: https://utils.kde.org/projects/kgpg/building.php

When clicking on a key, opening the dialog via a right click and trying to set the new trust level, then apply, and then cancel.

In terminal, a lot of line like these (until it ends)
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GOT_IT"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GET_LINE edit_ownertrust.value"
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "5\n"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GOT_IT"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GET_BOOL edit_ownertrust.set_ultimate.okay"
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "YES\n"
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GOT_IT"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GET_LINE edit_ownertrust.value"
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "5\n"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GOT_IT"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GET_LINE edit_ownertrust.value"
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "5\n"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GOT_IT"
log_kgpg: old 0 new 0
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "[GNUPG:] GET_BOOL edit_ownertrust.set_ultimate.okay"
log_kgpg: KGpgChangeTrust(0x55ae25fdb4e0) "YES\n"
QProcess: Destroyed while process ("gpg") is still running.

gpg: signal Terminated caught ... exiting
log_kgpg: KGpgTransaction(0x55ae25fdb4e0) "[GNUPG:] GOT_IT"
pure virtual method called
terminate called without an active exception
KCrash: Application 'kgpg' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...

[1]+  Stoppé                 ./kgpg

And the log:
Application: KGpg (kgpg), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f20bceaf780 (LWP 28160))]

Thread 6 (Thread 0x7f2092032700 (LWP 28172)):
#0  0x00007f20b523a920 in poll () from /lib64/libc.so.6
#1  0x00007f20afc4c966 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f20afc4ca7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f20b60bb00b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f20b606a01a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f20b5ec8583 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f20b5ecca41 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f20b26a6907 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f20b5245ccf in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f209471f700 (LWP 28170)):
#0  0x00007f20b26ad876 in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007f209f1b1ef3 in thread_function () from /usr/lib64/dri/swrast_dri.so
#2  0x00007f209f1b1d57 in impl_thrd_routine () from /usr/lib64/dri/swrast_dri.so
#3  0x00007f20b26a6907 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f20b5245ccf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f2094f20700 (LWP 28169)):
#0  0x00007f20b26ad876 in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007f209f1b1ef3 in thread_function () from /usr/lib64/dri/swrast_dri.so
#2  0x00007f209f1b1d57 in impl_thrd_routine () from /usr/lib64/dri/swrast_dri.so
#3  0x00007f20b26a6907 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f20b5245ccf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f20a57d1700 (LWP 28162)):
#0  0x00007f20afc921a9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f20afc4c922 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f20afc4ca7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f20b60bb00b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f20b606a01a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f20b5ec8583 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f20b672cec5 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f20b5ecca41 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f20b26a6907 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f20b5245ccf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f20a82a8700 (LWP 28161)):
#0  0x00007f20b523a94d in poll () from /lib64/libc.so.6
#1  0x00007f20b199c860 in _xcb_conn_wait () from /usr/lib64/libxcb.so.1
#2  0x00007f20b199e5f9 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f20aa6051b9 in QXcbEventReader::run() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f20b5ecca41 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f20b26a6907 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f20b5245ccf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f20bceaf780 (LWP 28160)):
[KCrash Handler]
#6  0x00007f20b5181f80 in raise () from /lib64/libc.so.6
#7  0x00007f20b5183c4a in abort () from /lib64/libc.so.6
#8  0x00007f20b5ade0fd in __gnu_cxx::__verbose_terminate_handler () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007f20b5adbec6 in __cxxabiv1::__terminate (handler=<optimized out>) at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/eh_terminate.cc:47
#10 0x00007f20b5adbf11 in std::terminate () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
#11 0x00007f20b5adca7f in __cxxabiv1::__cxa_pure_virtual () at /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++/pure.cc:50
#12 0x000055ae24e881f2 in KGpgTransactionPrivate::slotReadReady() ()
#13 0x000055ae24e86057 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KGpgTransactionPrivate::*)()>::call(void (KGpgTransactionPrivate::*)(), KGpgTransactionPrivate*, void**) ()
#14 0x000055ae24e85ee0 in void QtPrivate::FunctionPointer<void (KGpgTransactionPrivate::*)()>::call<QtPrivate::List<>, void>(void (KGpgTransactionPrivate::*)(), KGpgTransactionPrivate*, void**) ()
#15 0x000055ae24e85bb7 in QtPrivate::QSlotObject<void (KGpgTransactionPrivate::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#16 0x00007f20b6093a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#17 0x000055ae24f3a311 in GPGProc::readReady() ()
#18 0x000055ae24ef8b57 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (GPGProc::*)()>::call(void (GPGProc::*)(), GPGProc*, void**) ()
#19 0x000055ae24ef898b in void QtPrivate::FunctionPointer<void (GPGProc::*)()>::call<QtPrivate::List<>, void>(void (GPGProc::*)(), GPGProc*, void**) ()
#20 0x000055ae24ef8791 in QtPrivate::QSlotObject<void (GPGProc::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#21 0x00007f20b6093a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#22 0x000055ae24f3dec1 in KLineBufferedProcess::lineReadyStandardOutput() ()
#23 0x000055ae24ef9694 in KLineBufferedProcessPrivate::_k_receivedStdout() ()
#24 0x000055ae24ef94d4 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KLineBufferedProcessPrivate::*)()>::call(void (KLineBufferedProcessPrivate::*)(), KLineBufferedProcessPrivate*, void**) ()
#25 0x000055ae24ef9457 in void QtPrivate::FunctionPointer<void (KLineBufferedProcessPrivate::*)()>::call<QtPrivate::List<>, void>(void (KLineBufferedProcessPrivate::*)(), KLineBufferedProcessPrivate*, void**) ()
#26 0x000055ae24ef93c1 in QtPrivate::QSlotObject<void (KLineBufferedProcessPrivate::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#27 0x00007f20b6093a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#28 0x00007f20b5ffa1ca in QProcess::readyReadStandardOutput(QProcess::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#29 0x00007f20b5fff8b0 in QProcessPrivate::tryReadFromChannel(QProcessPrivate::Channel*) () from /usr/lib64/libQt5Core.so.5
#30 0x00007f20b6005b80 in QProcessPrivate::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#31 0x00007f20b5ffaa6b in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#32 0x00007f20b5ffb108 in QProcess::~QProcess() () from /usr/lib64/libQt5Core.so.5
#33 0x000055ae24ef8ee6 in KLineBufferedProcess::~KLineBufferedProcess() ()
#34 0x000055ae24ef69d0 in GPGProc::~GPGProc() ()
#35 0x000055ae24ef69ec in GPGProc::~GPGProc() ()
#36 0x000055ae24e8734d in KGpgTransactionPrivate::~KGpgTransactionPrivate() ()
#37 0x000055ae24e873c4 in KGpgTransactionPrivate::~KGpgTransactionPrivate() ()
#38 0x000055ae24e82ccc in KGpgTransaction::~KGpgTransaction() ()
#39 0x000055ae24e89e46 in KGpgEditKeyTransaction::~KGpgEditKeyTransaction() ()
#40 0x000055ae24e8b59a in KGpgChangeTrust::~KGpgChangeTrust() ()
#41 0x000055ae24e8b5b6 in KGpgChangeTrust::~KGpgChangeTrust() ()
#42 0x00007f20b609a19c in QObjectPrivate::deleteChildren() () from /usr/lib64/libQt5Core.so.5
#43 0x00007f20b71dab4b in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#44 0x000055ae24f045a3 in KgpgKeyInfo::~KgpgKeyInfo() ()
#45 0x000055ae24f045cc in KgpgKeyInfo::~KgpgKeyInfo() ()
#46 0x000055ae24ed06b1 in KeysManager::keyproperties() ()
#47 0x000055ae24ee51a3 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KeysManager::*)()>::call(void (KeysManager::*)(), KeysManager*, void**) ()
#48 0x000055ae24ee40a3 in void QtPrivate::FunctionPointer<void (KeysManager::*)()>::call<QtPrivate::List<>, void>(void (KeysManager::*)(), KeysManager*, void**) ()
#49 0x000055ae24ee2a8f in QtPrivate::QSlotObject<void (KeysManager::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#50 0x00007f20b6093a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#51 0x00007f20b71997c2 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5
#52 0x00007f20b719be60 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5
#53 0x00007f20b731aa7a in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
#54 0x00007f20b7321f94 in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
#55 0x00007f20b7323076 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#56 0x00007f20b71defe0 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#57 0x00007f20b7325503 in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#58 0x00007f20b719fd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#59 0x00007f20b71a8458 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#60 0x00007f20b606b2da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#61 0x00007f20b71a6b7d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5
#62 0x00007f20b71f9416 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007f20b71fb9f3 in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#64 0x00007f20b719fd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#65 0x00007f20b71a7611 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#66 0x00007f20b606b2da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#67 0x00007f20b6a9d1d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#68 0x00007f20b6a9ed85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#69 0x00007f20b6a7af1b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#70 0x00007f20aa6636f0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#71 0x00007f20afc4c767 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#72 0x00007f20afc4c9d0 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#73 0x00007f20afc4ca7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#74 0x00007f20b60bafef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#75 0x00007f20b606a01a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#76 0x00007f20b731fc1d in QMenu::exec(QPoint const&, QAction*) () from /usr/lib64/libQt5Widgets.so.5
#77 0x000055ae24ecce14 in KeysManager::slotMenu(QPoint const&) ()
#78 0x000055ae24ee50fc in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QPoint const&>, void, void (KeysManager::*)(QPoint const&)>::call(void (KeysManager::*)(QPoint const&), KeysManager*, void**) ()
#79 0x000055ae24ee405e in void QtPrivate::FunctionPointer<void (KeysManager::*)(QPoint const&)>::call<QtPrivate::List<QPoint const&>, void>(void (KeysManager::*)(QPoint const&), KeysManager*, void**) ()
#80 0x000055ae24ee29b3 in QtPrivate::QSlotObject<void (KeysManager::*)(QPoint const&), QtPrivate::List<QPoint const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#81 0x00007f20b6093a0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#82 0x00007f20b71c4f45 in QWidget::customContextMenuRequested(QPoint const&) () from /usr/lib64/libQt5Widgets.so.5
#83 0x00007f20b71dfdcd in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#84 0x00007f20b7284e3e in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#85 0x00007f20b73f3fb3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#86 0x00007f20b745c3dc in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#87 0x00007f20b606b0c2 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#88 0x00007f20b719fd55 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#89 0x00007f20b71a8730 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#90 0x00007f20b606b2da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#91 0x00007f20b71f9162 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#92 0x00007f20b71fb9f3 in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#93 0x00007f20b719fd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#94 0x00007f20b71a7611 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#95 0x00007f20b606b2da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#96 0x00007f20b6a9d1d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#97 0x00007f20b6a9ed85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#98 0x00007f20b6a7af1b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#99 0x00007f20aa6636f0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#100 0x00007f20afc4c767 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#101 0x00007f20afc4c9d0 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#102 0x00007f20afc4ca7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#103 0x00007f20b60bafef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#104 0x00007f20b606a01a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#105 0x00007f20b6072484 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#106 0x000055ae24eeaf5c in main ()

Hope this helps.
Comment 6 Rolf Eike Beer 2018-05-03 19:33:18 UTC
Yes, this is some sort of sequence problem with the GnuPG communication.
Comment 7 Kavinda 2018-05-07 16:13:13 UTC
(In reply to Vadim A. Misbakh-Soloviov (mva) from comment #0)
> Application: kgpg (17.12.2)
>  (Compiled from sources)
> Qt Version: 5.9.4
> Frameworks Version: 5.43.0
> Operating System: Linux 4.15.4 x86_64
> Distribution: "Gentoo GNU/Linux"
> 
> -- Information about the crash:
> - What I was doing when the application crashed:
> Set trust level fo own keys to "Absolute". Then it freezed, and then I
> pressed "Cancel", that, in turn, caused crash.
> 
> The crash can be reproduced every time.
> 
> -- Backtrace:
> Application: KGpg (kgpg), signal: Aborted
> Using host libthread_db library "/lib64/libthread_db.so.1".
> [Current thread is 1 (Thread 0x7f0b1acf8880 (LWP 44436))]
> 
> Thread 3 (Thread 0x7f0af1727700 (LWP 44525)):
> #0  0x00007f0b0d77d003 in g_main_context_prepare () from
> /usr/lib64/libglib-2.0.so.0
> #1  0x00007f0b0d77da3b in g_main_context_iterate.isra () from
> /usr/lib64/libglib-2.0.so.0
> #2  0x00007f0b0d77dc1c in g_main_context_iteration () from
> /usr/lib64/libglib-2.0.so.0
> #3  0x00007f0b15448a7b in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> () from /usr/lib64/libQt5Core.so.5
> #4  0x00007f0b153f6baa in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib64/libQt5Core.so.5
> #5  0x00007f0b152517fa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
> #6  0x00007f0b15255c75 in QThreadPrivate::start(void*) () from
> /usr/lib64/libQt5Core.so.5
> #7  0x00007f0b106d292b in start_thread () from /lib64/libpthread.so.0
> #8  0x00007f0b1495165f in clone () from /lib64/libc.so.6
> 
> Thread 2 (Thread 0x7f0afbfff700 (LWP 44488)):
> #0  0x00007f0b14945c95 in poll () from /lib64/libc.so.6
> #1  0x00007f0b0d77db09 in g_main_context_iterate.isra () from
> /usr/lib64/libglib-2.0.so.0
> #2  0x00007f0b0d77dc1c in g_main_context_iteration () from
> /usr/lib64/libglib-2.0.so.0
> #3  0x00007f0b15448a7b in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> () from /usr/lib64/libQt5Core.so.5
> #4  0x00007f0b153f6baa in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib64/libQt5Core.so.5
> #5  0x00007f0b152517fa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
> #6  0x00007f0b15ab8ce5 in QDBusConnectionManager::run() () from
> /usr/lib64/libQt5DBus.so.5
> #7  0x00007f0b15255c75 in QThreadPrivate::start(void*) () from
> /usr/lib64/libQt5Core.so.5
> #8  0x00007f0b106d292b in start_thread () from /lib64/libpthread.so.0
> #9  0x00007f0b1495165f in clone () from /lib64/libc.so.6
> 
> Thread 1 (Thread 0x7f0b1acf8880 (LWP 44436)):
> [KCrash Handler]
> #6  0x00007f0b14884fa0 in raise () from /lib64/libc.so.6
> #7  0x00007f0b14886af7 in abort () from /lib64/libc.so.6
> #8  0x00007f0b14ebc035 in __gnu_cxx::__verbose_terminate_handler () at
> /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/
> vterminate.cc:95
> #9  0x00007f0b14eb9c26 in __cxxabiv1::__terminate (handler=<optimized out>)
> at
> /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/
> eh_terminate.cc:47
> #10 0x00007f0b14eb9c71 in std::terminate () at
> /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/
> eh_terminate.cc:57
> #11 0x00007f0b14ebaa5f in __cxxabiv1::__cxa_pure_virtual () at
> /var/tmp/portage/sys-devel/gcc-7.3.0/work/gcc-7.3.0/libstdc++-v3/libsupc++/
> pure.cc:50
> #12 0x0000559be77eeeb7 in KGpgTransactionPrivate::slotReadReady() ()
> #13 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib64/libQt5Core.so.5
> #14 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib64/libQt5Core.so.5
> #15 0x0000559be7843c79 in KLineBufferedProcessPrivate::_k_receivedStdout() ()
> #16 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib64/libQt5Core.so.5
> #17 0x00007f0b153845fa in
> QProcess::readyReadStandardOutput(QProcess::QPrivateSignal) () from
> /usr/lib64/libQt5Core.so.5
> #18 0x00007f0b153890b1 in
> QProcessPrivate::tryReadFromChannel(QProcessPrivate::Channel*) () from
> /usr/lib64/libQt5Core.so.5
> #19 0x00007f0b1538e9f8 in QProcessPrivate::waitForFinished(int) () from
> /usr/lib64/libQt5Core.so.5
> #20 0x00007f0b15384eeb in QProcess::waitForFinished(int) () from
> /usr/lib64/libQt5Core.so.5
> #21 0x00007f0b153855ea in QProcess::~QProcess() () from
> /usr/lib64/libQt5Core.so.5
> #22 0x0000559be7840adf in GPGProc::~GPGProc() ()
> #23 0x0000559be77eda45 in KGpgTransactionPrivate::~KGpgTransactionPrivate()
> ()
> #24 0x0000559be77edad9 in KGpgTransactionPrivate::~KGpgTransactionPrivate()
> ()
> #25 0x0000559be77e9f71 in KGpgTransaction::~KGpgTransaction() ()
> #26 0x0000559be77f1237 in KGpgChangeTrust::~KGpgChangeTrust() ()
> #27 0x00007f0b15426ba8 in QObjectPrivate::deleteChildren() () from
> /usr/lib64/libQt5Core.so.5
> #28 0x00007f0b16579b4c in QWidget::~QWidget() () from
> /usr/lib64/libQt5Widgets.so.5
> #29 0x0000559be784bad2 in KgpgKeyInfo::~KgpgKeyInfo() ()
> #30 0x0000559be784bb09 in KgpgKeyInfo::~KgpgKeyInfo() ()
> #31 0x0000559be7822a68 in KeysManager::keyproperties() ()
> #32 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib64/libQt5Core.so.5
> #33 0x00007f0b16539022 in QAction::triggered(bool) () from
> /usr/lib64/libQt5Widgets.so.5
> #34 0x00007f0b1653b70c in QAction::activate(QAction::ActionEvent) () from
> /usr/lib64/libQt5Widgets.so.5
> #35 0x00007f0b166b7a4c in
> QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&,
> QAction*, QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
> #36 0x00007f0b166beefb in QMenuPrivate::activateAction(QAction*,
> QAction::ActionEvent, bool) () from /usr/lib64/libQt5Widgets.so.5
> #37 0x00007f0b166bfd23 in QMenu::mouseReleaseEvent(QMouseEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #38 0x00007f0b1657de38 in QWidget::event(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #39 0x00007f0b166c204b in QMenu::event(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #40 0x00007f0b1653f72c in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () from /usr/lib64/libQt5Widgets.so.5
> #41 0x00007f0b1654754f in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #42 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () from /usr/lib64/libQt5Core.so.5
> #43 0x00007f0b16546522 in QApplicationPrivate::sendMouseEvent(QWidget*,
> QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
> from /usr/lib64/libQt5Widgets.so.5
> #44 0x00007f0b16598c85 in QWidgetWindow::handleMouseEvent(QMouseEvent*) ()
> from /usr/lib64/libQt5Widgets.so.5
> #45 0x00007f0b1659b5ba in QWidgetWindow::event(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #46 0x00007f0b1653f72c in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () from /usr/lib64/libQt5Widgets.so.5
> #47 0x00007f0b16546ff4 in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #48 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () from /usr/lib64/libQt5Core.so.5
> #49 0x00007f0b15e2b723 in
> QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::
> MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
> #50 0x00007f0b15e2d345 in
> QGuiApplicationPrivate::
> processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
> () from /usr/lib64/libQt5Gui.so.5
> #51 0x00007f0b15e0668b in
> QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::
> ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
> #52 0x00007f0b04d82070 in userEventSourceDispatch(_GSource*, int (*)(void*),
> void*) () from /usr/lib64/libQt5XcbQpa.so.5
> #53 0x00007f0b0d77d7e7 in g_main_context_dispatch () from
> /usr/lib64/libglib-2.0.so.0
> #54 0x00007f0b0d77db88 in g_main_context_iterate.isra () from
> /usr/lib64/libglib-2.0.so.0
> #55 0x00007f0b0d77dc1c in g_main_context_iteration () from
> /usr/lib64/libglib-2.0.so.0
> #56 0x00007f0b15448a5f in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> () from /usr/lib64/libQt5Core.so.5
> #57 0x00007f0b153f6baa in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib64/libQt5Core.so.5
> #58 0x00007f0b166bcc40 in QMenu::exec(QPoint const&, QAction*) () from
> /usr/lib64/libQt5Widgets.so.5
> #59 0x0000559be78234bf in KeysManager::slotMenu(QPoint const&) ()
> #60 0x00007f0b15420507 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib64/libQt5Core.so.5
> #61 0x00007f0b16564355 in QWidget::customContextMenuRequested(QPoint const&)
> () from /usr/lib64/libQt5Widgets.so.5
> #62 0x00007f0b1657ec8b in QWidget::event(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #63 0x00007f0b1661f1ae in QFrame::event(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #64 0x00007f0b1679244b in QAbstractItemView::viewportEvent(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #65 0x00007f0b167fa5cc in QTreeView::viewportEvent(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #66 0x00007f0b153f7bac in
> QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
> from /usr/lib64/libQt5Core.so.5
> #67 0x00007f0b1653f705 in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () from /usr/lib64/libQt5Widgets.so.5
> #68 0x00007f0b16547d5e in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #69 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () from /usr/lib64/libQt5Core.so.5
> #70 0x00007f0b16599089 in QWidgetWindow::handleMouseEvent(QMouseEvent*) ()
> from /usr/lib64/libQt5Widgets.so.5
> #71 0x00007f0b1659b5ba in QWidgetWindow::event(QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #72 0x00007f0b1653f72c in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () from /usr/lib64/libQt5Widgets.so.5
> #73 0x00007f0b16546ff4 in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib64/libQt5Widgets.so.5
> #74 0x00007f0b153f7e17 in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () from /usr/lib64/libQt5Core.so.5
> #75 0x00007f0b15e2b723 in
> QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::
> MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
> #76 0x00007f0b15e2d345 in
> QGuiApplicationPrivate::
> processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
> () from /usr/lib64/libQt5Gui.so.5
> #77 0x00007f0b15e0668b in
> QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::
> ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
> #78 0x00007f0b04d82070 in userEventSourceDispatch(_GSource*, int (*)(void*),
> void*) () from /usr/lib64/libQt5XcbQpa.so.5
> #79 0x00007f0b0d77d7e7 in g_main_context_dispatch () from
> /usr/lib64/libglib-2.0.so.0
> #80 0x00007f0b0d77db88 in g_main_context_iterate.isra () from
> /usr/lib64/libglib-2.0.so.0
> #81 0x00007f0b0d77dc1c in g_main_context_iteration () from
> /usr/lib64/libglib-2.0.so.0
> #82 0x00007f0b15448a5f in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> () from /usr/lib64/libQt5Core.so.5
> #83 0x00007f0b153f6baa in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib64/libQt5Core.so.5
> #84 0x00007f0b153ff244 in QCoreApplication::exec() () from
> /usr/lib64/libQt5Core.so.5
> #85 0x0000559be77c32a4 in main ()
> 
> Possible duplicates by query: bug 389500, bug 382439, bug 377656.
> 
> Reported using DrKonqi

I have submitted a patch for this. https://phabricator.kde.org/D12624 
Can you verify if this works or not?
Comment 8 Rolf Eike Beer 2018-05-07 19:54:23 UTC
Git commit 68fc9165947c054423ac600b11462294d56fa06e by Rolf Eike Beer, on behalf of Harindu Dilshan.
Committed on 07/05/2018 at 19:45.
Pushed by dakon into branch 'Applications/18.04'.

Resolve KGpg crashing when setting trust level to ultimate

KGpg with GnuPG 2.2 crashes when setting trust level of a imported key to ultimate.
Related: bug 373909
Differential Revision: https://phabricator.kde.org/D12624

M  +0    -9    transactions/kgpgchangedisable.cpp
M  +0    -1    transactions/kgpgchangedisable.h
M  +1    -3    transactions/kgpgdelkey.cpp
M  +0    -4    transactions/kgpgsignkey.cpp
M  +3    -2    transactions/kgpgtransactionprivate.cpp

https://commits.kde.org/kgpg/68fc9165947c054423ac600b11462294d56fa06e