Bug 364725

Summary: Crashes when quitting the application while online-banking update dialog is open
Product: [Applications] kmymoney Reporter: Marko Käning <mk-lists>
Component: onlinebankingAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: MacPorts   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marko Käning 2016-06-24 21:29:18 UTC
KMM crashes when I quit the application while the online-banking update-dialog is still open.

For some reason it is possible to bring the app's main window into foreground with the update-dialog in background and then the app reacts to an application close command. This tries to finish the application, but when doing that crashes it.

---

Application: KMyMoney (kmymoney), signal: Segmentation fault: 11
(lldb) process attach --pid 710
Process 710 stopped
Executable module set to "/Applications/MacPorts/KDE4/kmymoney.app/Contents/MacOS/kmymoney".
Architecture set to: x86_64-apple-macosx.
(lldb) set set term-width 200
(lldb) thread info
thread #1: tid = 0x39be, 0x00007fff8aeb8e20 libsystem_kernel.dylib`__wait4 + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

(lldb) bt all
* thread #1: tid = 0x39be, 0x00007fff8aeb8e20 libsystem_kernel.dylib`__wait4 + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8aeb8e20 libsystem_kernel.dylib`__wait4 + 8
    frame #1: 0x0000000106fac9be libkdeui.5.dylib`KCrash::startProcess(int, char const**, bool) + 286
    frame #2: 0x0000000106fabae9 libkdeui.5.dylib`KCrash::defaultCrashHandler(int) + 1209
    frame #3: 0x00007fff89fed5aa libsystem_platform.dylib`_sigtramp + 26
    frame #4: 0x00000001135d4f42 libgwenhywfar.60.dylib`GWEN_List1_GetFirst + 16
    frame #5: 0x00000001135d315f libgwenhywfar.60.dylib`GWEN_Inherit_FindData + 52
    frame #6: 0x0000000108f1e06a dir.so`GWEN_ConfigMgrDir_LockGroup + 76
    frame #7: 0x00000001136d0754 libaqbanking.35.dylib`AB_Banking_LockSharedConfig + 70
    frame #8: 0x00000001136fc7a5 libaqbanking.35.dylib`AB_Gui_WriteDialogPrefs + 207
    frame #9: 0x000000011364df85 libgwenhywfar.60.dylib`GWEN_Dialog_free + 89
    frame #10: 0x0000000113652144 libgwenhywfar.60.dylib`GWEN_Gui_Internal_ProgressEnd + 999
    frame #11: 0x00000001136cbb3e libaqbanking.35.dylib`AB_Banking_ExecuteJobs + 2257
    frame #12: 0x000000011311dad2 kmm_kbanking.so`KMyMoneyBanking::executeQueue(AB_IMEXPORTER_CONTEXT*) + 82
    frame #13: 0x000000011311d9e5 kmm_kbanking.so`KBankingPlugin::executeQueue() + 165
    frame #14: 0x000000011311d589 kmm_kbanking.so`KBankingPlugin::updateAccount(MyMoneyAccount const&, bool) + 2089
    frame #15: 0x0000000104854ae4 kmymoney`KMyMoneyApp::slotAccountUpdateOnline() + 468
    frame #16: 0x0000000104864bcb kmymoney`KMyMoneyApp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 2107
    frame #17: 0x000000010845506b QtCore`QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2363
    frame #18: 0x00000001073df6a9 QtGui`QAction::activate(QAction::ActionEvent) + 233
    frame #19: 0x0000000107769004 QtGui`QAbstractButtonPrivate::click() + 84
    frame #20: 0x0000000107769de8 QtGui`QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 88
    frame #21: 0x00000001078357cf QtGui`QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
    frame #22: 0x000000010743ca1c QtGui`QWidget::event(QEvent*) + 716
    frame #23: 0x0000000107769cf3 QtGui`QAbstractButton::event(QEvent*) + 179
    frame #24: 0x0000000107835c7b QtGui`QToolButton::event(QEvent*) + 171
    frame #25: 0x00000001073e87eb QtGui`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
    frame #26: 0x00000001073ea775 QtGui`QApplication::notify(QObject*, QEvent*) + 2949
    frame #27: 0x000000010843c186 QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
    frame #28: 0x00000001073e91fb QtGui`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 475
    frame #29: 0x0000000107395902 QtGui`qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) + 1298
    frame #30: 0x00007fff8c9ed145 AppKit`-[NSWindow sendEvent:] + 781
    frame #31: 0x000000010738cde1 QtGui`-[QCocoaWindow sendEvent:] + 113
    frame #32: 0x00007fff8c98e5d4 AppKit`-[NSApplication sendEvent:] + 2021
    frame #33: 0x0000000107391d21 QtGui`-[QNSApplication sendEvent:] + 97
    frame #34: 0x00007fff8c7de9f9 AppKit`-[NSApplication run] + 646
    frame #35: 0x000000010739b16b QtGui`QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2027
    frame #36: 0x00000001084394ff QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 495
    frame #37: 0x000000010843c737 QtCore`QCoreApplication::exec() + 199
    frame #38: 0x0000000104801f01 kmymoney`runKMyMoney(KApplication*, KStartupLogo*) + 2753
    frame #39: 0x000000010480105e kmymoney`main + 9374
    frame #40: 0x00007fff8b0075fd libdyld.dylib`start + 1
    frame #41: 0x00007fff8b0075fd libdyld.dylib`start + 1

  thread #2: tid = 0x39d5, 0x00007fff8aeb9662 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x00007fff8aeb9662 libsystem_kernel.dylib`kevent64 + 10
    frame #1: 0x00007fff9000a421 libdispatch.dylib`_dispatch_mgr_invoke + 239
    frame #2: 0x00007fff9000a136 libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #3: tid = 0x39f2, 0x00007fff8aeb89aa libsystem_kernel.dylib`__select + 10, name = 'com.apple.CFSocket.private'
    frame #0: 0x00007fff8aeb89aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x00007fff8a0eca03 CoreFoundation`__CFSocketManager + 867
    frame #2: 0x00007fff89061899 libsystem_pthread.dylib`_pthread_body + 138
    frame #3: 0x00007fff8906172a libsystem_pthread.dylib`_pthread_start + 137
    frame #4: 0x00007fff89065fc9 libsystem_pthread.dylib`thread_start + 13

  thread #4: tid = 0x39fb, 0x00007fff8aeb4a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #0: 0x00007fff8aeb4a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff8aeb3d18 libsystem_kernel.dylib`mach_msg + 64
    frame #2: 0x00007fff8a0a0f15 CoreFoundation`__CFRunLoopServiceMachPort + 181
    frame #3: 0x00007fff8a0a0539 CoreFoundation`__CFRunLoopRun + 1161
    frame #4: 0x00007fff8a09fe75 CoreFoundation`CFRunLoopRunSpecific + 309
    frame #5: 0x00007fff8c98b05e AppKit`_NSEventThread + 144
    frame #6: 0x00007fff89061899 libsystem_pthread.dylib`_pthread_body + 138
    frame #7: 0x00007fff8906172a libsystem_pthread.dylib`_pthread_start + 137
    frame #8: 0x00007fff89065fc9 libsystem_pthread.dylib`thread_start + 13
(lldb) detach
Process 710 detached
(lldb) (lldb) quit
Comment 1 Marko Käning 2016-11-16 07:53:15 UTC

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