I found the segfault. It is caused by accessing the FIFO when it is NULL. 

In SoundManager setupDevices, the devices are opened one by one. So the reference device can be opened before a non-reference is opened -- so a master callback can call writeProcess() and readProcess() while the non-reference device is not open yet. This should be as easy as checking if the device is open at the beginning of readProcess and writeProcess. 

```
Thread 34 (process 74037):
#0  0x0000000100668710 in PaUtil_GetRingBufferWriteAvailable (rbuf=0x10) at src/util/pa_ringbuffer.c:89
#1  0x0000000100417bcc in FIFO<float>::writeAvailable (this=0x0) at fifo.h:30
#2  0x000000010061ede8 in SoundDevicePortAudio::writeProcess (this=0x103666430) at src/sounddeviceportaudio.cpp:458
#3  0x00000001006242bb in SoundManager::writeProcess (this=0x109000220) at src/soundmanager.cpp:504
#4  0x0000000100620223 in SoundDevicePortAudio::callbackProcessClkRef (this=0x103666430, framesPerBuffer=64, out=0x13c56ac10, in=0x0, timeInfo=0x130701a90, statusFlags=0) at src/sounddeviceportaudio.cpp:809
#5  0x000000010061e3bc in paV19CallbackClkRef (inputBuffer=0x0, outputBuffer=0x13c56ac10, framesPerBuffer=64, timeInfo=0x130701a90, statusFlags=0, soundDevice=0x103666430) at src/sounddeviceportaudio.cpp:837
#6  0x0000000102d0c8ba in AdaptingOutputOnlyProcess (bp=0x0, streamCallbackResult=0x130701980, hostOutputChannels=0x14a9a5da0, framesToProcess=5107620496) at pa_process.c:1115
#7  0x0000000102d0d762 in PaUtil_EndBufferProcessing (bp=0x0, streamCallbackResult=0x130701a00) at pa_process.c:1638
#8  0x0000000102d12863 in AudioIOProc (inRefCon=0x130701ad0, ioActionFlags=0x130701ad0, inTimeStamp=0x12ef6b2e8, inBusNumber=812653264, inNumberFrames=151392944, ioData=0x130701ad0) at pa_mac_core.c:2438
#9  0x0000000133008790 in AUConverterBase::RenderBus ()
#10 0x00000001330061c1 in AUBase::DoRenderBus ()
#11 0x0000000133004a75 in AUBase::DoRender ()
#12 0x000000013300bdd8 in AUHAL::AUIOProc ()
#13 0x00007fff8a12dacb in HALC_ProxyIOContext::IOWorkLoop ()
#14 0x00007fff8a12cbcd in HALC_ProxyIOContext::IOThreadEntry ()
#15 0x00007fff8a12ca8d in HALB_IOThread::Entry ()
#16 0x00007fff84fe5899 in _pthread_body ()
#17 0x00007fff84fe572a in _pthread_start ()
#18 0x00007fff84fe9fc9 in thread_start ()

Thread 33 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 32 (process 74037):
#0  0x00007fff84909a1a in mach_msg_trap ()
#1  0x00007fff84908d18 in mach_msg ()
#2  0x00007fff86a5b155 in __CFRunLoopServiceMachPort ()
#3  0x00007fff86a5a779 in __CFRunLoopRun ()
#4  0x00007fff86a5a0b5 in CFRunLoopRunSpecific ()
#5  0x00007fff855da16e in _NSEventThread ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 31 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 30 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 29 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 28 (process 74037):
#0  0x00007fff84909a1a in mach_msg_trap ()
#1  0x00007fff84908d18 in mach_msg ()
#2  0x00000001033015a7 in XServerMachPort::ReceiveMessage ()
#3  0x000000010331c1c1 in MIDIProcess::RunMIDIInThread ()
#4  0x000000010330263c in XThread::RunHelper ()
#5  0x00000001033022a1 in CAPThread::Entry ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 27 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x000000010242cff7 in QTWTF::TCMalloc_PageHeap::scavengerThread ()
#3  0x000000010242d09b in QTWTF::TCMalloc_PageHeap::runScavengerThread ()
#4  0x00007fff84fe5899 in _pthread_body ()
#5  0x00007fff84fe572a in _pthread_start ()
#6  0x00007fff84fe9fc9 in thread_start ()

Thread 26 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x12ef6c810) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 25 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x1090fb130) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 22 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001006a83ea in VSyncThread::run (this=0x12ed6f120) at src/waveform/vsyncthread.cpp:104
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 21 (process 74037):
#0  0x00007fff84909a1a in mach_msg_trap ()
#1  0x00007fff84908d18 in mach_msg ()
#2  0x00007fff87249359 in glcDebugListener ()
#3  0x00007fff84fe5899 in _pthread_body ()
#4  0x00007fff84fe572a in _pthread_start ()
#5  0x00007fff84fe9fc9 in thread_start ()

Thread 20 (process 74037):
#0  0x00007fff8490d9aa in select$DARWIN_EXTSN ()
#1  0x00000001012db236 in qt_safe_select ()
#2  0x00000001012df844 in QEventDispatcherUNIXPrivate::doSelect ()
#3  0x00000001012dfc20 in QEventDispatcherUNIX::processEvents ()
#4  0x00000001012aec58 in QEventLoop::exec ()
#5  0x00000001011b96c6 in QThread::exec ()
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 19 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x000000010006f51e in AnalyserQueue::dequeueNextBlocking (this=0x120bf5ca0) at src/analyserqueue.cpp:121
#5  0x00000001000703c0 in AnalyserQueue::run (this=0x120bf5ca0) at src/analyserqueue.cpp:283
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 18 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x000000010047e27f in BrowseThread::run (this=0x1090cdff0) at src/library/browse/browsethread.cpp:83
#5  0x00000001011bc46a in QThreadPrivate::start ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 17 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x120b82260) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 16 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x126486d40) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 15 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x1159ad400) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 14 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x115964240) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 13 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x106508310) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 12 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x1159468b0) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 11 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001011b8db3 in QSemaphore::acquire ()
#5  0x00000001000901eb in CachingReaderWorker::run (this=0x106201780) at src/cachingreaderworker.cpp:128
#6  0x00000001011bc46a in QThreadPrivate::start ()
#7  0x00007fff84fe5899 in _pthread_body ()
#8  0x00007fff84fe572a in _pthread_start ()
#9  0x00007fff84fe9fc9 in thread_start ()

Thread 10 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x0000000100680369 in VinylControlProcessor::run (this=0x115909c50) at src/vinylcontrol/vinylcontrolprocessor.cpp:133
#5  0x00000001011bc46a in QThreadPrivate::start ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 9 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x0000000100417526 in EngineSideChain::run (this=0x10354d4e0) at src/engine/sidechain/enginesidechain.cpp:104
#5  0x00000001011bc46a in QThreadPrivate::start ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 8 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001003f2090 in EngineWorkerScheduler::run (this=0x10377d510) at src/engine/engineworkerscheduler.cpp:54
#5  0x00000001011bc46a in QThreadPrivate::start ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 7 (process 74037):
#0  0x00007fff8490d716 in __psynch_cvwait ()
#1  0x00007fff84fe7c3b in _pthread_cond_wait ()
#2  0x00000001011bd19c in QWaitConditionPrivate::wait ()
#3  0x00000001011bcea5 in QWaitCondition::wait ()
#4  0x00000001006700f3 in StatsManager::run (this=0x103667f90) at src/util/statsmanager.cpp:199
#5  0x00000001011bc46a in QThreadPrivate::start ()
#6  0x00007fff84fe5899 in _pthread_body ()
#7  0x00007fff84fe572a in _pthread_start ()
#8  0x00007fff84fe9fc9 in thread_start ()

Thread 6 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 5 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 4 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 3 (process 74037):
#0  0x00007fff8490de6a in __workq_kernreturn ()
#1  0x00007fff84fe6f08 in _pthread_wqthread ()
#2  0x00007fff84fe9fb9 in start_wqthread ()

Thread 2 (process 74037):
#0  0x00007fff8490e662 in kevent64 ()
#1  0x00007fff874ea43d in _dispatch_mgr_invoke ()
#2  0x00007fff874ea152 in _dispatch_mgr_thread ()

Thread 1 (process 74037):
#0  0x00007fff8490d746 in __psynch_mutexwait ()
#1  0x00007fff84fe8779 in _pthread_mutex_lock ()
#2  0x00007fff8a107c19 in HALB_Mutex::Lock ()
#3  0x00007fff8a129ff9 in HALC_ProxyIOContext::SetPropertyData ()
#4  0x00007fff8a13bf5d in HALC_ShellObject::SetPropertyData ()
#5  0x00007fff8a11f113 in HAL_HardwarePlugIn_ObjectSetPropertyData ()
#6  0x00007fff8a11efef in HALPlugIn::ObjectSetPropertyData ()
#7  0x00007fff8a12057a in HALObject::SetPropertyData ()
#8  0x00007fff8a129985 in HALDevice::SetPropertyData ()
#9  0x00007fff8a12959c in AudioDeviceSetProperty ()
#10 0x000000013300d050 in AUHAL::SetStreamUsage ()
#11 0x000000013300db49 in AUHAL::SetProperty ()
#12 0x0000000133003ec6 in AUBase::DispatchSetProperty ()
#13 0x000000013302dd58 in AUBase::ComponentEntryDispatch ()
#14 0x000000013300e63c in ComponentEntryPoint<AUHAL>::Dispatch ()
#15 0x00007fff8985955f in _AT_AudioUnitSetProperty ()
#16 0x0000000102d1195e in OpenAndSetupOneAudioUnit (stream=0x7fff5fbfccc0, inStreamParams=0x0, outStreamParams=0x0, requestedFramesPerBuffer=1606405312, actualInputFramesPerBuffer=0x7fff5fbfccc0, actualOutputFramesPerBuffer=0x7fff5fbfccc0, auhalHostApi=0x10364ed70, audioUnit=0x12c37d560, srConverter=0x12c37d648, audioDevice=0x12c37d570, sampleRate=6.9532229752237034e-310, refCon=0x12c37d3c0) at pa_mac_core.c:1268
#17 0x0000000102d103a4 in OpenStream (hostApi=0x12c37d560, s=0x7fff5fbfce30, inputParameters=0x0, outputParameters=0x7fff5fbfce30, sampleRate=6.953222975241885e-310, requestedFramesPerBuffer=140734799793712, streamFlags=140734799793712, streamCallback=0x10061e430 <paV19Callback(void const*, void*, unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)>, userData=0x103610df0) at pa_mac_core.c:1867
#18 0x0000000102d0ae5c in Pa_OpenStream (stream=0x7fff5fbfd218, inputParameters=0x103610e80, outputParameters=0x0, sampleRate=6.9532229752505806e-310, framesPerBuffer=64, streamFlags=140734799793888, streamCallback=0x10061e430 <paV19Callback(void const*, void*, unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)>, userData=0x103610df0) at pa_front.c:1215
#19 0x000000010061dc35 in SoundDevicePortAudio::open (this=0x103610df0, isClkRefDevice=false, syncBuffers=1) at src/sounddeviceportaudio.cpp:220
#20 0x00000001006239c2 in SoundManager::setupDevices (this=0x109000220) at src/soundmanager.cpp:395
#21 0x0000000100623f53 in SoundManager::setConfig (this=0x109000220, config=<value temporarily unavailable, due to optimizations>) at src/soundmanager.cpp:460
#22 0x00000001001abc17 in DlgPrefSound::slotApply (this=0x12ed86a50) at src/dlgprefsound.cpp:167
#23 0x00000001005b18ef in DlgPrefSound::qt_static_metacall (_o=0x12ed86a50, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff5fbfdb70) at osx64_build/moc_dlgprefsound.cc:99
#24 0x00000001012c7221 in QMetaObject::activate ()
#25 0x00000001018e23dc in QDialogButtonBoxPrivate::_q_handleButtonClicked ()
#26 0x00000001018e2084 in QDialogButtonBox::qt_static_metacall ()
#27 0x00000001012c7221 in QMetaObject::activate ()
#28 0x0000000101b4a7b5 in QAbstractButton::clicked ()
#29 0x00000001018b657e in QAbstractButtonPrivate::emitClicked ()
#30 0x00000001018b66bd in QAbstractButton::click ()
#31 0x00000001019a7034 in QDialog::keyPressEvent ()
#32 0x00000001015a5129 in QWidget::event ()
#33 0x00000001015566d8 in QApplicationPrivate::notify_helper ()
#34 0x0000000101556d4c in QApplication::notify ()
#35 0x000000010059ea3c in MixxxApplication::notify (this=0x7fff5fbff1e8, target=0x12cb07230, event=0x7fff5fbfe708) at src/mixxxapplication.cpp:136
#36 0x00000001012b18d2 in QCoreApplication::notifyInternal ()
#37 0x0000000101555e6a in qt_sendSpontaneousEvent ()
#38 0x00000001015c8b52 in QKeyMapper::sendKeyEvent ()
#39 0x00000001015c9f9e in QKeyMapperPrivate::translateKeyEvent ()
#40 0x000000010150c79d in qt_dispatchKeyEvent ()
#41 0x00000001014ff244 in -[QCocoaView keyDown:] ()
#42 0x00007fff8563c65b in -[NSWindow sendEvent:] ()
#43 0x00000001014fd7d2 in -[QCocoaPanel sendEvent:] ()
#44 0x00007fff855ddc42 in -[NSApplication sendEvent:] ()
#45 0x0000000101508702 in -[QNSApplication sendEvent:] ()
#46 0x00007fff8542db89 in -[NSApplication run] ()
#47 0x0000000101511970 in QEventDispatcherMac::processEvents ()
#48 0x00000001012aec58 in QEventLoop::exec ()
#49 0x00000001012b2023 in QCoreApplication::exec ()
#50 0x00000001005864e4 in main (argc=6, argv=0x7fff5fbff2b8) at src/main.cpp:301
(gdb)
```