[MacPorts] #55411: Qt5-based app crashes upon exit
MacPorts
noreply at macports.org
Sun Nov 26 03:11:35 UTC 2017
#55411: Qt5-based app crashes upon exit
------------------------+------------------------
Reporter: mouse07410 | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: qt5-qtbase
------------------------+------------------------
MacOS High Sierra 10.13.1, Xcode-9.1, current Macports and Qt5 package (a
set of ports).
Frankly, I don't even know where to begin. I'll start with the problem:
{{{
Process: SleepyHead [89967]
Path:
/Users/USER/*/SleepyHead.app/Contents/MacOS/SleepyHead
Identifier: org.burrow.SleepyHead
Version: 0
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: SleepyHead [89967]
User ID: 501
Date/Time: 2017-11-25 21:46:01.523 -0500
OS Version: Mac OS X 10.13.1 (17B48)
Report Version: 12
Anonymous UUID: B3544DF6-AE65-3AD0-0E52-DD6C16797F5A
Sleep/Wake UUID: 967E776F-BB00-4AD9-8936-3073BD9F165B
Time Awake Since Boot: 160000 seconds
Time Since Wake: 2100 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 0x0000000400002d98
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x400002d98:
CG image 000000011f378000-000000011f39d000 [ 148K]
rw-/rwx SM=PRV
-->
JS JIT generated code 0000265478400000-0000265478401000 [ 4K]
---/rwx SM=NUL
Application Specific Information:
Performing @selector(terminate:) from sender NSMenuItem 0x6000000aeca0
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.burrow.SleepyHead 0x000000010e0c0f82 int
QAtomicOps<int>::load<int>(std::__1::atomic<int> const&) + 82 (atomic:893)
1 org.burrow.SleepyHead 0x000000010e0c0f05
QBasicAtomicInteger<int>::load() const + 21 (qbasicatomic.h:102)
2 org.burrow.SleepyHead 0x000000010e0e9775
QtPrivate::RefCount::isShared() const + 21 (qrefcount.h:101)
3 org.burrow.SleepyHead 0x000000010e0e94b3 QHash<QString,
QVariant>::detach() + 35 (qhash.h:275)
4 org.burrow.SleepyHead 0x000000010e0f36f0 QHash<QString,
QVariant>::find(QString const&) + 32 (qhash.h:890)
5 org.burrow.SleepyHead 0x000000010e2a4bdf
Preferences::Get(QString) + 143 (preferences.cpp:138)
6 org.burrow.SleepyHead 0x000000010e124990 saveChannels()
+ 80 (mainwindow.cpp:368)
7 org.burrow.SleepyHead 0x000000010e126340
MainWindow::closeEvent(QCloseEvent*) + 32 (mainwindow.cpp:511)
8 org.qt-project.QtWidgets 0x000000010ebec845
QWidget::event(QEvent*) + 1915
9 org.qt-project.QtWidgets 0x000000010ecd9542
QMainWindow::event(QEvent*) + 1610
10 org.qt-project.QtWidgets 0x000000010ebbf7ab
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 227
11 org.qt-project.QtWidgets 0x000000010ebc09ef
QApplication::notify(QObject*, QEvent*) + 379
12 org.qt-project.QtCore 0x000000010f5da8fe
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 156
13 org.qt-project.QtWidgets 0x000000010ebdf336
QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) + 184
14 org.qt-project.QtWidgets 0x000000010ec05892 0x10ebb0000 +
350354
15 org.qt-project.QtWidgets 0x000000010ebbf7ab
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 227
16 org.qt-project.QtWidgets 0x000000010ebc09ef
QApplication::notify(QObject*, QEvent*) + 379
17 org.qt-project.QtCore 0x000000010f5da8fe
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 156
18 org.qt-project.QtGui 0x000000010f0d8475
QGuiApplicationPrivate::processCloseEvent(QWindowSystemInterfacePrivate::CloseEvent*)
+ 99
19 org.qt-project.QtGui 0x000000010f0c4457
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
+ 149
20 org.qt-project.QtGui 0x000000010f0c106b
QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
+ 549
21 libqcocoa.dylib 0x0000000115a6b87b 0x115a40000 +
178299
22 com.apple.AppKit 0x00007fff413b23db -[NSApplication
_docController:shouldTerminate:] + 88
23 com.apple.AppKit 0x00007fff413b2295
__91-[NSDocumentController(NSInternal)
_closeAllDocumentsWithDelegate:shouldTerminateSelector:]_block_invoke +
534
24 com.apple.AppKit 0x00007fff413b1edf
-[NSDocumentController(NSInternal)
_closeAllDocumentsWithDelegate:shouldTerminateSelector:] + 1232
25 com.apple.AppKit 0x00007fff413b19e8
-[NSDocumentController(NSInternal)
__closeAllDocumentsWithDelegate:shouldTerminateSelector:] + 291
26 com.apple.AppKit 0x00007fff413b164d -[NSApplication
_shouldTerminate] + 929
27 com.apple.AppKit 0x00007fff413b0cf9 -[NSApplication
terminate:] + 818
28 com.apple.AppKit 0x00007fff41966a7a
-[NSApplication(NSResponder) sendAction:to:from:] + 312
29 com.apple.AppKit 0x00007fff413fc43f -[NSMenuItem
_corePerformAction] + 323
30 com.apple.AppKit 0x00007fff413fc1c7
-[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
31 com.apple.AppKit 0x00007fff41481d9a -[NSMenu
performActionForItemAtIndex:] + 133
32 com.apple.AppKit 0x00007fff41481d05 -[NSMenu
_internalPerformActionForItemAtIndex:] + 94
33 com.apple.AppKit 0x00007fff41481b35
-[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 106
34 com.apple.AppKit 0x00007fff413485a2
NSSLMMenuEventHandler + 882
35 com.apple.HIToolbox 0x00007fff42eab284
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
+ 1541
36 com.apple.HIToolbox 0x00007fff42eaa5cd
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*,
HandlerCallRec*) + 374
37 com.apple.HIToolbox 0x00007fff42ebf8d1
SendEventToEventTarget + 39
38 com.apple.HIToolbox 0x00007fff42f08e09
SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned
int, unsigned char, void const*, OpaqueEventTargetRef*,
OpaqueEventTargetRef*, OpaqueEventRef**) + 411
39 com.apple.HIToolbox 0x00007fff42f31d3e
SendMenuCommandWithContextAndModifiers + 49
40 com.apple.HIToolbox 0x00007fff42f31cfa
SendMenuItemSelectedEvent + 188
41 com.apple.HIToolbox 0x00007fff42f31bd4
FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96
42 com.apple.HIToolbox 0x00007fff42f32576
MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**,
unsigned short*) + 559
43 com.apple.HIToolbox 0x00007fff42f322b6
_HandleMenuSelection2 + 472
44 com.apple.AppKit 0x00007fff41339dc3
_NSHandleCarbonMenuEvent + 244
45 com.apple.AppKit 0x00007fff41593ea6
_DPSEventHandledByCarbon + 54
46 com.apple.AppKit 0x00007fff4196461a
-[NSApplication(NSEvent)
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 914
47 com.apple.AppKit 0x00007fff411c4831 -[NSApplication
run] + 764
48 libqcocoa.dylib 0x0000000115a69796 0x115a40000 +
169878
49 org.qt-project.QtCore 0x000000010f5d76f8
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 318
50 org.qt-project.QtCore 0x000000010f5dae0d
QCoreApplication::exec() + 265
51 org.burrow.SleepyHead 0x000000010e10f6db main + 13387
(main.cpp:513)
52 libdyld.dylib 0x00007fff6b195145 start + 1
Thread 1:: Thread (pooled)
0 libsystem_kernel.dylib 0x00007fff6b2e51d2
__semwait_signal + 10
1 libsystem_c.dylib 0x00007fff6b260754 nanosleep + 199
2 org.qt-project.QtCore 0x000000010f61b0da 0x10f455000 +
1859802
3 org.burrow.SleepyHead 0x000000010e3cfd0d
LogThread::run() + 349 (logger.cpp:143)
4 org.burrow.SleepyHead 0x000000010e3cfd49 non-virtual
thunk to LogThread::run() + 25
5 org.qt-project.QtCore 0x000000010f47743d 0x10f455000 +
140349
6 org.qt-project.QtCore 0x000000010f479f6d 0x10f455000 +
151405
7 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
8 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
9 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 2:: JavaScriptCore::BlockFree
0 libsystem_kernel.dylib 0x00007fff6b2e4e7e __psynch_cvwait
+ 10
1 libsystem_pthread.dylib 0x00007fff6b420662
_pthread_cond_wait + 732
2 org.qt-project.QtWebKit 0x00000001105cf41c 0x10f8ab000 +
13779996
3 org.qt-project.QtWebKit 0x000000011079b558 0x10f8ab000 +
15664472
4 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
5 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
6 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 3:: JavaScriptCore::Marking
0 libsystem_kernel.dylib 0x00007fff6b2e4e7e __psynch_cvwait
+ 10
1 libsystem_pthread.dylib 0x00007fff6b420662
_pthread_cond_wait + 732
2 org.qt-project.QtWebKit 0x00000001105d011a 0x10f8ab000 +
13783322
3 org.qt-project.QtWebKit 0x00000001105d01d9 0x10f8ab000 +
13783513
4 org.qt-project.QtWebKit 0x000000011079b558 0x10f8ab000 +
15664472
5 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
6 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
7 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 4:: JavaScriptCore::Marking
0 libsystem_kernel.dylib 0x00007fff6b2e4e7e __psynch_cvwait
+ 10
1 libsystem_pthread.dylib 0x00007fff6b420662
_pthread_cond_wait + 732
2 org.qt-project.QtWebKit 0x00000001105d011a 0x10f8ab000 +
13783322
3 org.qt-project.QtWebKit 0x00000001105d01d9 0x10f8ab000 +
13783513
4 org.qt-project.QtWebKit 0x000000011079b558 0x10f8ab000 +
15664472
5 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
6 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
7 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 5:: JavaScriptCore::Marking
0 libsystem_kernel.dylib 0x00007fff6b2e4e7e __psynch_cvwait
+ 10
1 libsystem_pthread.dylib 0x00007fff6b420662
_pthread_cond_wait + 732
2 org.qt-project.QtWebKit 0x00000001105d011a 0x10f8ab000 +
13783322
3 org.qt-project.QtWebKit 0x00000001105d01d9 0x10f8ab000 +
13783513
4 org.qt-project.QtWebKit 0x000000011079b558 0x10f8ab000 +
15664472
5 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
6 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
7 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 6:: Qt bearer thread
0 libsystem_kernel.dylib 0x00007fff6b2e64ea poll + 10
1 org.qt-project.QtCore 0x000000010f61b306
qt_safe_poll(pollfd*, unsigned int, timespec const*) + 101
2 org.qt-project.QtCore 0x000000010f61c2b3
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
+ 441
3 org.qt-project.QtCore 0x000000010f5d76f8
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 318
4 org.qt-project.QtCore 0x000000010f476bac QThread::exec()
+ 108
5 org.qt-project.QtCore 0x000000010f479f6d 0x10f455000 +
151405
6 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
7 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
8 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 7:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff6b2dbe76 mach_msg_trap +
10
1 libsystem_kernel.dylib 0x00007fff6b2db390 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff43bb45d5
__CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff43bb3927 __CFRunLoopRun
+ 1783
4 com.apple.CoreFoundation 0x00007fff43bb2fa3
CFRunLoopRunSpecific + 483
5 com.apple.AppKit 0x00007fff4130d2d1 _NSEventThread
+ 184
6 libsystem_pthread.dylib 0x00007fff6b41f6c1 _pthread_body +
340
7 libsystem_pthread.dylib 0x00007fff6b41f56d _pthread_start
+ 377
8 libsystem_pthread.dylib 0x00007fff6b41ec5d thread_start +
13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff6b2e56da
__workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6b41f26f
_pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff6b41ec4d start_wqthread
+ 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff6b2e56da
__workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6b41f06a
_pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff6b41ec4d start_wqthread
+ 13
Thread 10:
0 libsystem_pthread.dylib 0x00007fff6b41ec40 start_wqthread
+ 0
1 ??? 0x0000000100000038 0 + 4294967352
Thread 11:
0 libsystem_kernel.dylib 0x00007fff6b2e56da
__workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6b41f06a
_pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff6b41ec4d start_wqthread
+ 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000400002d98 rbx: 0x00007f9bb6c58a10 rcx:
0x00000000fffffffd rdx: 0x00007ffee1b41388
rdi: 0x0000000400002d98 rsi: 0x0000600000129568 rbp:
0x00007ffee1b40e90 rsp: 0x00007ffee1b40e90
r8: 0x0000000000000040 r9: 0x0000604000256c50 r10:
0x00007fff9e6c81e8 r11: 0x00006000000849f0
r12: 0x00007f9bb6c58a10 r13: 0x00007ffee1b436b8 r14:
0x00007ffee1b43601 r15: 0x00007ffee1b41718
rip: 0x000000010e0c0f82 rfl: 0x0000000000010293 cr2:
0x0000000400002d98
Logical CPU: 0
Error Code: 0x00000004
Trap Number: 14
}}}
It's an app SleepyHead whose source is at [https://gitlab.com/sleepyhead
/sleepyhead-code].
Its precompiled binary seems to run fine, but when I recompile it from the
source, it crashes upon "SleepyHead -> Quit".
The crash appears to be within the Qt5 code when it's trying to locate an
entry in a QHash structure.
I don't even know if qt5-qtbase is the right sub-package to complain about
- maybe it's one of the other qt5-* packages.
I'd be happy to provide any data that may help resolving this problem or
suggesting a workaround.
Thank you!
--
Ticket URL: <https://trac.macports.org/ticket/55411>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list