Bug 456581 - Crash when cancelling in split editor
Summary: Crash when cancelling in split editor
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-11 09:19 UTC by Dawid Wróbel
Modified: 2022-07-11 14:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Wróbel 2022-07-11 09:19:05 UTC
SUMMARY
I had the app crash twice when editing splits and cancelling/hitting the ESC. I tried reproducing it but don't know yet exact steps needed to make it crash consistently.

Process:               kmymoney [21342]
Path:                  /Applications/kmymoney.app/Contents/MacOS/kmymoney
Identifier:            org.kde.KMyMoney
Version:               5.1.80 (5.1.80)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-07-10 23:36:04.0277 +0200
OS Version:            macOS 12.4 (21F79)
Report Version:        12
Anonymous UUID:        1C1B3C7C-EC55-7F60-EA12-EFB6063DEA97

Sleep/Wake UUID:       2C2501B6-ABE7-495A-A9BD-8180005F1DCC

Time Awake Since Boot: 23000 seconds
Time Since Wake:       7915 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0010040000000c20 -> 0x0000040000000c20 (possible pointer authentication failure)
Exception Codes:       0x0000000000000001, 0x0010040000000c20
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [21342]

VM Region Info: 0x40000000c20 is not in any region.  Bytes after previous region: 3917010177057  Bytes before following region: 101155069752288
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      commpage (reserved)        1000000000-7000000000   [384.0G] ---/--- SM=NUL  ...(unallocated)
--->  GAP OF 0x5f9000000000 BYTES
      MALLOC_NANO              600000000000-600008000000 [128.0M] rw-/rwx SM=PRV  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   QtWidgets                     	       0x10ed84a51 QWidget::style() const + 17
1   QtWidgets                     	       0x10ee59a4a QComboBox::hidePopup() + 490
2   QtWidgets                     	       0x10ee53754 QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) + 404
3   QtCore                        	       0x1168b79f9 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 249
4   QtWidgets                     	       0x10ed57c91 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 241
5   QtWidgets                     	       0x10ed59213 QApplication::notify(QObject*, QEvent*) + 915
6   QtCore                        	       0x1168b7727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
7   QtWidgets                     	       0x10edae8fd QWidgetWindow::event(QEvent*) + 301
8   QtWidgets                     	       0x10ed57ca6 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
9   QtWidgets                     	       0x10ed59060 QApplication::notify(QObject*, QEvent*) + 480
10  QtCore                        	       0x1168b7727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
11  QtGui                         	       0x11586f067 QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) + 167
12  QtGui                         	       0x1158502a7 QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) + 503
13  libqcocoa.dylib               	       0x11cb28fd9 -[QNSView(Keys) handleKeyEvent:eventType:] + 1321
14  libqcocoa.dylib               	       0x11cb290f8 -[QNSView(Keys) keyDown:] + 88
15  AppKit                        	    0x7ff81246e1a6 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 7150
16  AppKit                        	    0x7ff81246c39e -[NSWindow(NSEventRouting) sendEvent:] + 352
17  libqcocoa.dylib               	       0x11cb2d3c7 -[QNSPanel sendEvent:] + 551
18  AppKit                        	    0x7ff81246b1c8 -[NSApplication(NSEvent) sendEvent:] + 2996
19  libqcocoa.dylib               	       0x11cb331ba -[QNSApplication sendEvent:] + 74
20  AppKit                        	    0x7ff8125ac8c7 -[NSApplication _doModalLoop:peek:] + 364
21  AppKit                        	    0x7ff812723fa2 __33-[NSApplication runModalSession:]_block_invoke_2 + 69
22  AppKit                        	    0x7ff812723f4a __33-[NSApplication runModalSession:]_block_invoke + 78
23  AppKit                        	    0x7ff8125aabfe _NSTryRunModal + 100
24  AppKit                        	    0x7ff812723e47 -[NSApplication runModalSession:] + 128
25  libqcocoa.dylib               	       0x11cb2f487 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 663
26  QtCore                        	       0x1168b3d17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 471
27  QtWidgets                     	       0x10ef55b08 QDialog::exec() + 504
28  kmymoney                      	       0x10216de2a 0x10206f000 + 1044010
29  QtCore                        	       0x1168e7fd4 void doActivate<false>(QObject*, int, void**) + 1124
30  QtCore                        	       0x1168e7fd4 void doActivate<false>(QObject*, int, void**) + 1124
31  QtWidgets                     	       0x10ed4e6d6 QAction::activate(QAction::ActionEvent) + 310
32  QtWidgets                     	       0x10ee3f0a0 QAbstractButtonPrivate::click() + 144
33  QtWidgets                     	       0x10ee4029e QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 270
34  QtWidgets                     	       0x10ef3a8af QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
35  QtWidgets                     	       0x10ed912db QWidget::event(QEvent*) + 443
36  QtWidgets                     	       0x10ef3b06f QToolButton::event(QEvent*) + 303
37  QtWidgets                     	       0x10ed57ca6 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
38  QtWidgets                     	       0x10ed5a997 QApplication::notify(QObject*, QEvent*) + 6935
39  QtCore                        	       0x1168b7727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
40  QtWidgets                     	       0x10ed585ac QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 892
41  QtWidgets                     	       0x10edafc64 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 1908
42  QtWidgets                     	       0x10edae8bf QWidgetWindow::event(QEvent*) + 239
43  QtWidgets                     	       0x10ed57ca6 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
44  QtWidgets                     	       0x10ed59060 QApplication::notify(QObject*, QEvent*) + 480
45  QtCore                        	       0x1168b7727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
46  QtGui                         	       0x11586e3a7 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3559
47  QtGui                         	       0x115853e8c QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 204
48  libqcocoa.dylib               	       0x11cb30d68 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
49  CoreFoundation                	    0x7ff80f98735a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
50  CoreFoundation                	    0x7ff80f9872c2 __CFRunLoopDoSource0 + 180
51  CoreFoundation                	    0x7ff80f987040 __CFRunLoopDoSources0 + 242
52  CoreFoundation                	    0x7ff80f985a50 __CFRunLoopRun + 892
53  CoreFoundation                	    0x7ff80f985014 CFRunLoopRunSpecific + 562
54  HIToolbox                     	    0x7ff818a995e6 RunCurrentEventLoopInMode + 292
55  HIToolbox                     	    0x7ff818a99213 ReceiveNextEventCommon + 283
56  HIToolbox                     	    0x7ff818a990e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
57  AppKit                        	    0x7ff8122fb1fd _DPSNextEvent + 927
58  AppKit                        	    0x7ff8122f98ba -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
59  AppKit                        	    0x7ff8122ebf69 -[NSApplication run] + 586
60  libqcocoa.dylib               	       0x11cb2fa1a QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2090
61  QtCore                        	       0x1168b3d17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 471
62  QtCore                        	       0x1168b7cc2 QCoreApplication::exec() + 130
63  kmymoney                      	       0x102085e87 0x10206f000 + 93831
64  kmymoney                      	       0x1020848d0 0x10206f000 + 88272
65  dyld                          	       0x20271551e start + 462

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7ffe259c4 0x7ff7ffe21000 + 18884
1   runtime                       	    0x7ff7ffe33460 0x7ff7ffe21000 + 74848
2   runtime                       	    0x7ff7ffe34ed8 0x7ff7ffe21000 + 81624

Thread 2:: com.apple.CFSocket.private
0   ???                           	    0x7ff89fe3a940 ???
1   libsystem_kernel.dylib        	    0x7ff80f88cd5a __select + 10
2   CoreFoundation                	    0x7ff80f9ae2bb __CFSocketManager + 643
3   libsystem_pthread.dylib       	    0x7ff80f8c14e1 _pthread_start + 125
4   libsystem_pthread.dylib       	    0x7ff80f8bcf6b thread_start + 15

Thread 3:: QDBusConnectionManager
0   ???                           	    0x7ff89fe3a940 ???
1   libsystem_kernel.dylib        	    0x7ff80f88b0aa poll + 10
2   QtCore                        	       0x11691500e qt_safe_poll(pollfd*, unsigned int, timespec const*) + 94
3   QtCore                        	       0x11691685c QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 812
4   QtCore                        	       0x1168b3d17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 471
5   QtCore                        	       0x1166f22fc QThread::exec() + 140
6   QtDBus                        	       0x10e706f93 QDBusConnectionManager::run() + 19
7   QtCore                        	       0x1166f320a QThreadPrivate::start(void*) + 330
8   libsystem_pthread.dylib       	    0x7ff80f8c14e1 _pthread_start + 125
9   libsystem_pthread.dylib       	    0x7ff80f8bcf6b thread_start + 15

Thread 4:: com.apple.NSEventThread
0   ???                           	    0x7ff89fe3a940 ???
1   libsystem_kernel.dylib        	    0x7ff80f88497a mach_msg_trap + 10
2   libsystem_kernel.dylib        	    0x7ff80f884ce8 mach_msg + 56
3   CoreFoundation                	    0x7ff80f987540 __CFRunLoopServiceMachPort + 319
4   CoreFoundation                	    0x7ff80f985bd0 __CFRunLoopRun + 1276
5   CoreFoundation                	    0x7ff80f985014 CFRunLoopRunSpecific + 562
6   AppKit                        	    0x7ff812468c1e _NSEventThread + 132
7   libsystem_pthread.dylib       	    0x7ff80f8c14e1 _pthread_start + 125
8   libsystem_pthread.dylib       	    0x7ff80f8bcf6b thread_start + 15

Thread 5:
0   runtime                       	    0x7ff7ffe43814 0x7ff7ffe21000 + 141332

Thread 6::  Dispatch queue: NSCGSDisableUpdates
0   ???                           	    0x7ff89fe3a940 ???
1   libsystem_kernel.dylib        	    0x7ff80f8849ce semaphore_timedwait_trap + 10
2   libdispatch.dylib             	    0x7ff80f70a848 _dispatch_sema4_timedwait + 72
3   libdispatch.dylib             	    0x7ff80f70ac75 _dispatch_semaphore_wait_slow + 58
4   SkyLight                      	    0x7ff81482307e CGSUpdateManager::enable_updates_common() + 1038
5   SkyLight                      	    0x7ff814823ace SLSReenableUpdateTokenWithSeed + 130
6   libdispatch.dylib             	    0x7ff80f7090cc _dispatch_call_block_and_release + 12
7   libdispatch.dylib             	    0x7ff80f70a317 _dispatch_client_callout + 8
8   libdispatch.dylib             	    0x7ff80f710317 _dispatch_lane_serial_drain + 672
9   libdispatch.dylib             	    0x7ff80f710dfd _dispatch_lane_invoke + 366
10  libdispatch.dylib             	    0x7ff80f71aeee _dispatch_workloop_worker_thread + 753
11  libsystem_pthread.dylib       	    0x7ff80f8bdfd0 _pthread_wqthread + 326
12  libsystem_pthread.dylib       	    0x7ff80f8bcf57 start_wqthread + 15

Thread 7::  Dispatch queue: com.apple.SkyLight.UpdateManager.SerialSema
0   ???                           	    0x7ff89fe3a940 ???
1   libsystem_kernel.dylib        	    0x7ff80f8849b6 semaphore_wait_trap + 10
2   SkyLight                      	    0x7ff81482328f invocation function for block in (anonymous namespace)::InterprocessSerialSemaphore::asyncWait(void (int) block_pointer) + 35
3   libdispatch.dylib             	    0x7ff80f7090cc _dispatch_call_block_and_release + 12
4   libdispatch.dylib             	    0x7ff80f70a317 _dispatch_client_callout + 8
5   libdispatch.dylib             	    0x7ff80f710317 _dispatch_lane_serial_drain + 672
6   libdispatch.dylib             	    0x7ff80f710dfd _dispatch_lane_invoke + 366
7   libdispatch.dylib             	    0x7ff80f71aeee _dispatch_workloop_worker_thread + 753
8   libsystem_pthread.dylib       	    0x7ff80f8bdfd0 _pthread_wqthread + 326
9   libsystem_pthread.dylib       	    0x7ff80f8bcf57 start_wqthread + 15


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0010040000000c00  rbx: 0x0000600005d075a0  rcx: 0x0000000000000006  rdx: 0x0000000070640016
  rdi: 0x000060000be82d00  rsi: 0x000060000f22c930  rbp: 0x0000000308832fa0  rsp: 0x0000000308832fa0
   r8: 0x0000000000000930   r9: 0x0000000000000070  r10: 0x00000000000007fb  r11: 0x0000000000000091
  r12: 0x00007f7eb472d9c0  r13: 0x00006000028ccb40  r14: 0x0000000000000000  r15: 0x000060000be82d00
  rip: <unavailable>       rfl: 0x0000000000000203
 tmp0: 0x000000010ee59a3e tmp1: 0x000000010ee59a3e tmp2: 0x000000010ee59a4a


Binary Images:
       0x10ed45000 -        0x10f188fff org.qt-project.QtWidgets (5.15) <5ddd64ab-f7c0-386f-abf4-195c862ce208> /Applications/kmymoney.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
       0x1166d1000 -        0x116b74fff org.qt-project.QtCore (5.15) <c022575b-d6d4-319a-b599-4c0d7beb726a> /Applications/kmymoney.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
       0x115834000 -        0x115c9bfff org.qt-project.QtGui (5.15) <48bd8885-4cf6-385a-837a-81b9b8c44329> /Applications/kmymoney.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
       0x11caf5000 -        0x11cba0fff libqcocoa.dylib (*) <c6f2c655-d204-3dbd-8118-d55ef2e94ba6> /Applications/kmymoney.app/Contents/PlugIns/platforms/libqcocoa.dylib
    0x7ff8122bc000 -     0x7ff81314afff com.apple.AppKit (6.9) <832ad371-d3b8-3061-b4e2-1c4e0cffce0b> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x10206f000 -        0x10229efff org.kde.KMyMoney (5.1.80) <de90ac97-7905-3aa2-8b16-ca9a8bb30bb1> /Applications/kmymoney.app/Contents/MacOS/kmymoney
    0x7ff80f908000 -     0x7ff80fe08fff com.apple.CoreFoundation (6.9) <9c8908f2-e5e0-35b7-9f41-fdf8d7476d8b> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff818a6b000 -     0x7ff818d5efff com.apple.HIToolbox (2.1.1) <04544f53-a387-3ac3-a85d-f8adfc0bc69e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x202710000 -        0x20277bfff dyld (*) <b70ce1ec-b902-3852-8268-05de00bfa8d5> /usr/lib/dyld
    0x7ff7ffe21000 -     0x7ff7ffe50fff runtime (*) <0ee8ce32-639c-316a-9551-dab9a2e0c8a5> /usr/libexec/rosetta/runtime
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    0x7ff80f883000 -     0x7ff80f8bafff libsystem_kernel.dylib (*) <61711d11-e776-3bc3-b9a2-6f9f37cb8499> /usr/lib/system/libsystem_kernel.dylib
    0x7ff80f8bb000 -     0x7ff80f8c6fff libsystem_pthread.dylib (*) <bc574849-1aae-31e7-b350-916dda999d97> /usr/lib/system/libsystem_pthread.dylib
       0x10e703000 -        0x10e762fff org.qt-project.QtDBus (5.15) <a911a764-31d6-3db7-b382-3cd055361733> /Applications/kmymoney.app/Contents/Frameworks/QtDBus.framework/Versions/5/QtDBus
    0x7ff80f707000 -     0x7ff80f74dfff libdispatch.dylib (*) <534511b9-b3b0-33a7-b1ea-402595d28bda> /usr/lib/system/libdispatch.dylib
    0x7ff8147c4000 -     0x7ff814b61fff com.apple.SkyLight (1.600.0) <72b24980-a519-3050-beef-538776aaeaa1> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
Comment 1 Thomas Baumgart 2022-07-11 14:37:44 UTC
The only virgin QComboBox widgets in the split editor are those for payee and costcenter. The account combo box is a derived widget and hidePopup is overridden (see KMyMoneyAccountCombo::hidePopup()). But we don't see any of that in your backtrace, so I expect the problem is caused by one of the other ones. Just wonder what that could be.