https://bugs.kde.org/show_bug.cgi?id=509767

            Bug ID: 509767
           Summary: KGpg crashes when editing a key in terminal the second
                    time
    Classification: Applications
           Product: kgpg
      Version First 25.04.0
       Reported In:
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
KGpg crashes when editing a key in terminal the second time.

STEPS TO REPRODUCE
1. Select a key.
2. Click the `Keys` menu, `Edit Key in Terminal`.
3. Close the terminal window.
4. Click the `Keys` menu, `Edit Key in Terminal` again.

OBSERVED RESULT
Crash in `KeysManager::slotedit`.

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
The stack is similar to https://bugs.kde.org/show_bug.cgi?id=330290

```
pwndbg> bt
#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=11, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007fee70c9e9ff in __pthread_kill_internal (threadid=<optimized out>,
signo=11) at ./nptl/pthread_kill.c:89
#2  0x00007fee70c49cc2 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007fee73e3d6e2 in KCrash::defaultCrashHandler(int) () at
/lib/x86_64-linux-gnu/libKF6Crash.so.6
#4  0x00007fee70c49df0 in <signal handler called> () at
/lib/x86_64-linux-gnu/libc.so.6
#5  KeysManager::slotedit (this=0x555d7a49e3e0) at ./keysmanager.cpp:2234
#6  0x00007fee713e4443 in QtPrivate::QSlotObjectBase::call
    (this=<optimized out>, r=0x555d7a49e3e0, a=0x7ffd8f484d10, this=<optimized
out>, r=<optimized out>, a=<optimized out>)
    at ./src/corelib/kernel/qobjectdefs_impl.h:486
#7  doActivate<false> (sender=0x555d7a9e1560, signal_index=7,
argv=0x7ffd8f484d10) at ./src/corelib/kernel/qobject.cpp:4115
#8  0x00007fee71cf12a6 in QAction::triggered(bool) () at
/lib/x86_64-linux-gnu/libQt6Gui.so.6
#9  0x00007fee71cf67b9 in QAction::activate(QAction::ActionEvent) () at
/lib/x86_64-linux-gnu/libQt6Gui.so.6
#10 0x00007fee7257e5dd in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#11 0x00007fee72584781 in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#12 0x00007fee72404453 in QWidget::event(QEvent*) () at
/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#13 0x00007fee723b49b5 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#14 0x00007fee723b8c96 in QApplication::notify(QObject*, QEvent*) () at
/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#15 0x00007fee713965b0 in QCoreApplication::notifyInternal2
(receiver=0x555d7aa01af0, event=0x7ffd8f4853c0)
    at ./src/corelib/kernel/qcoreapplication.cpp:1172
#16 0x00007fee723aeb9e in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#17 0x00007fee7241b2a8 in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#18 0x00007fee7241e148 in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#19 0x00007fee723b49b5 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#20 0x00007fee713965b0 in QCoreApplication::notifyInternal2
(receiver=0x7fee58010750, event=0x7ffd8f4857e0)
    at ./src/corelib/kernel/qcoreapplication.cpp:1172
#21 0x00007fee719dfbc5 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
()
    at /lib/x86_64-linux-gnu/libQt6Gui.so.6
#22 0x00007fee71a3945c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
()
    at /lib/x86_64-linux-gnu/libQt6Gui.so.6
#23 0x00007fee691ca3be in ??? () at /lib/x86_64-linux-gnu/libQt6XcbQpa.so.6
#24 0x00007fee6fb59385 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fee6fb5b5b7 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fee6fb5bd20 in g_main_context_iteration () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fee715a6323 in QEventDispatcherGlib::processEvents
(this=0x555d7a2dc960, flags=...)
    at ./src/corelib/kernel/qeventdispatcher_glib.cpp:399
#28 0x00007fee71398893 in QEventLoop::exec (this=this@entry=0x7ffd8f485c10,
flags=..., flags@entry=...)
    at ./src/corelib/global/qflags.h:34
#29 0x00007fee7139a18a in QCoreApplication::exec () at
./src/corelib/global/qflags.h:74
#30 0x0000555d5592857d in main (argc=<optimized out>, argc@entry=1,
argv=argv@entry=0x7ffd8f485f58) at ./main.cpp:64
#31 0x00007fee70c33ca8 in __libc_start_call_main
    (main=main@entry=0x555d55927d70 <main(int, char**)>, argc=argc@entry=1,
argv=argv@entry=0x7ffd8f485f58)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#32 0x00007fee70c33d65 in __libc_start_main_impl
    (main=0x555d55927d70 <main(int, char**)>, argc=1, argv=0x7ffd8f485f58,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7ffd8f485f48) at ../csu/libc-start.c:360
#33 0x0000555d55928801 in _start ()
pwndbg> f 5
#5  KeysManager::slotedit (this=0x555d7a49e3e0) at ./keysmanager.cpp:2234
warning: Source file is more recent than executable.
2234            if (!(nd->getType() & ITYPE_PAIR))
pwndbg> p nd
$1 = (KGpgNode *) 0x0
pwndbg> p iview
$2 = (KeyTreeView *) 0x555d7a6cb7d0
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to