User picked target 'touche-demo' (engine ID 'touche', game ID 'touche')... Running Touché: The Adventures of the Fifth Musketeer (Demo/DOS/English) touche.dat: ddaed436445b2e77294ed19e8ae4aa2c, 8720683 bytes. ================== WARNING: ThreadSanitizer: data race (pid=74374) Read of size 8 at 0x000106e2e040 by thread T14 (mutexes: write M0, write M1): #0 MidiDriver_ADLIB::onTimer() adlib.cpp:1634 (scummvm:arm64+0x100617e24) #1 Common::Functor0Mem::operator()() const func.h:397 (scummvm:arm64+0x10061d9d0) #2 Audio::EmulatedChip::readBuffer(short*, int) chip.cpp:127 (scummvm:arm64+0x1006268e4) #3 Audio::RateConverter_Impl::copyConvert(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) rate.cpp:109 (scummvm:arm64+0x10063d7f0) #4 Audio::RateConverter_Impl::convert(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) rate.cpp:290 (scummvm:arm64+0x10063d3d8) #5 Audio::Channel::mix(short*, unsigned int) mixer.cpp:719 (scummvm:arm64+0x100633f20) #6 Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) mixer.cpp:331 (scummvm:arm64+0x100633b50) #7 SdlMixerManager::callbackHandler(unsigned char*, int) sdl-mixer.cpp:203 (scummvm:arm64+0x100234b3c) #8 SdlMixerManager::sdlCallback(void*, unsigned char*, int) sdl-mixer.cpp:210 (scummvm:arm64+0x100234a40) #9 outputCallback :71305024 (libSDL2-2.0.0.dylib:arm64+0xce0a0) Previous write of size 8 at 0x000106e2e040 by main thread: #0 MidiDriver_ADLIB::setTimerCallback(void*, void (*)(void*)) adlib.cpp:1669 (scummvm:arm64+0x1006191e0) #1 Touche::MidiPlayer::MidiPlayer() midi.cpp:50 (scummvm:arm64+0x10005910c) #2 Touche::MidiPlayer::MidiPlayer() midi.cpp:43 (scummvm:arm64+0x1000591dc) #3 Touche::ToucheEngine::initMusic() touche.cpp:3433 (scummvm:arm64+0x10006ef74) #4 Touche::ToucheEngine::run() touche.cpp:197 (scummvm:arm64+0x10006eca4) #5 runGame(Plugin const*, OSystem&, DetectedGame const&, void const*) main.cpp:311 (scummvm:arm64+0x1000216e8) #6 scummvm_main main.cpp:796 (scummvm:arm64+0x10001ec30) #7 scummvm_main main.cpp:399 (scummvm:arm64+0x10001d30c) #8 start :65012592 (dyld:arm64e+0xfffffffffff4d150) Location is heap block of size 7512 at 0x000106e2e000 allocated by main thread: #0 operator new(unsigned long) :74456384 (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x84210) #1 AdLibEmuMusicPlugin::createInstance(MidiDriver**, unsigned int) const adlib.cpp:2319 (scummvm:arm64+0x10061c8bc) #2 MidiDriver::createMidi(unsigned int) mididrv.cpp:408 (scummvm:arm64+0x10062ab2c) #3 Touche::MidiPlayer::MidiPlayer() midi.cpp:47 (scummvm:arm64+0x100059078) #4 Touche::MidiPlayer::MidiPlayer() midi.cpp:43 (scummvm:arm64+0x1000591dc) #5 Touche::ToucheEngine::initMusic() touche.cpp:3433 (scummvm:arm64+0x10006ef74) #6 Touche::ToucheEngine::run() touche.cpp:197 (scummvm:arm64+0x10006eca4) #7 runGame(Plugin const*, OSystem&, DetectedGame const&, void const*) main.cpp:311 (scummvm:arm64+0x1000216e8) #8 scummvm_main main.cpp:796 (scummvm:arm64+0x10001ec30) #9 scummvm_main main.cpp:399 (scummvm:arm64+0x10001d30c) #10 start :65012592 (dyld:arm64e+0xfffffffffff4d150) Mutex M0 (0x00010550d640) created at: #0 pthread_mutex_init :74456384 (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x3181c) #1 SDL_CreateMutex_REAL :71305024 (libSDL2-2.0.0.dylib:arm64+0xb98cc) #2 OSystem_SDL::initBackend() sdl.cpp:331 (scummvm:arm64+0x1000077a0) #3 OSystem_POSIX::initBackend() posix.cpp:92 (scummvm:arm64+0x1000126cc) #4 OSystem_MacOSX::initBackend() macosx.cpp:121 (scummvm:arm64+0x100015834) #5 virtual thunk to OSystem_MacOSX::initBackend() macosx.cpp (scummvm:arm64+0x10001588c) #6 scummvm_main main.cpp:554 (scummvm:arm64+0x10001e498) #7 scummvm_main main.cpp:399 (scummvm:arm64+0x10001d30c) #8 start :65012592 (dyld:arm64e+0xfffffffffff4d150) Mutex M1 (0x000105529200) created at: #0 pthread_mutex_init :74456384 (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x3181c) #1 SDL_CreateMutex_REAL :71305024 (libSDL2-2.0.0.dylib:arm64+0xb98cc) #2 SdlMutexInternal::SdlMutexInternal() sdl-mutex.cpp:34 (scummvm:arm64+0x1002353a8) #3 createSdlMutexInternal() sdl-mutex.cpp:45 (scummvm:arm64+0x100235360) #4 OSystem_SDL::createMutex() sdl.cpp:749 (scummvm:arm64+0x10000a708) #5 virtual thunk to OSystem_SDL::createMutex() sdl.cpp (scummvm:arm64+0x10000a76c) #6 Common::Mutex::Mutex() mutex.cpp:30 (scummvm:arm64+0x1006d1ba4) #7 Common::Mutex::Mutex() mutex.cpp:28 (scummvm:arm64+0x1006d1c10) #8 Audio::MixerImpl::MixerImpl(unsigned int, bool, unsigned int) mixer.cpp:200 (scummvm:arm64+0x100632b5c) #9 Audio::MixerImpl::MixerImpl(unsigned int, bool, unsigned int) mixer.cpp:200 (scummvm:arm64+0x100632ddc) #10 SdlMixerManager::init() sdl-mixer.cpp:122 (scummvm:arm64+0x100234430) #11 OSystem_SDL::initBackend() sdl.cpp:331 (scummvm:arm64+0x1000077a0) #12 OSystem_POSIX::initBackend() posix.cpp:92 (scummvm:arm64+0x1000126cc) #13 OSystem_MacOSX::initBackend() macosx.cpp:121 (scummvm:arm64+0x100015834) #14 virtual thunk to OSystem_MacOSX::initBackend() macosx.cpp (scummvm:arm64+0x10001588c) #15 scummvm_main main.cpp:554 (scummvm:arm64+0x10001e498) #16 scummvm_main main.cpp:399 (scummvm:arm64+0x10001d30c) #17 start :65012592 (dyld:arm64e+0xfffffffffff4d150) Thread T14 (tid=3441230, running) created by main thread at: #0 pthread_create :74456384 (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x309d8) #1 SDL_SYS_CreateThread :71305024 (libSDL2-2.0.0.dylib:arm64+0xb9314) #2 OSystem_SDL::initBackend() sdl.cpp:331 (scummvm:arm64+0x1000077a0) #3 OSystem_POSIX::initBackend() posix.cpp:92 (scummvm:arm64+0x1000126cc) #4 OSystem_MacOSX::initBackend() macosx.cpp:121 (scummvm:arm64+0x100015834) #5 virtual thunk to OSystem_MacOSX::initBackend() macosx.cpp (scummvm:arm64+0x10001588c) #6 scummvm_main main.cpp:554 (scummvm:arm64+0x10001e498) #7 scummvm_main main.cpp:399 (scummvm:arm64+0x10001d30c) #8 start :65012592 (dyld:arm64e+0xfffffffffff4d150) SUMMARY: ThreadSanitizer: data race adlib.cpp:1634 in MidiDriver_ADLIB::onTimer() ================== (lldb) ThreadSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report. Process 74374 stopped * thread #10, name = 'AudioQueue thread', stop reason = Data race detected frame #0: 0x0000000101d2e3a0 libclang_rt.tsan_osx_dynamic.dylib`__tsan_on_report libclang_rt.tsan_osx_dynamic.dylib`__tsan_on_report: -> 0x101d2e3a0 <+0>: ret libclang_rt.tsan_osx_dynamic.dylib`__tsan::SymbolizeStackId: 0x101d2e3a4 <+0>: cbz w0, 0x101d2e3d4 ; <+48> 0x101d2e3a8 <+4>: pacibsp 0x101d2e3ac <+8>: stp x29, x30, [sp, #-0x10]! Target 0: (scummvm) stopped. (lldb) bt * thread #10, name = 'AudioQueue thread', stop reason = Data race detected * frame #0: 0x0000000101d2e3a0 libclang_rt.tsan_osx_dynamic.dylib`__tsan_on_report frame #1: 0x0000000101d307b8 libclang_rt.tsan_osx_dynamic.dylib`__tsan::OutputReport(__tsan::ThreadState*, __tsan::ScopedReport const&) + 792 frame #2: 0x0000000101d31654 libclang_rt.tsan_osx_dynamic.dylib`__tsan::ReportRace(__tsan::ThreadState*, __tsan::RawShadow*, __tsan::Shadow, __tsan::Shadow, unsigned long) + 2892 frame #3: 0x0000000100617e28 scummvm`MidiDriver_ADLIB::onTimer(this=0x0000000106e2e000) at adlib.cpp:1634:6 frame #4: 0x000000010061d9d4 scummvm`Common::Functor0Mem::operator()(this=0x0000000105727520) const at func.h:397:10 frame #5: 0x00000001006268e8 scummvm`Audio::EmulatedChip::readBuffer(this=0x000000010682c380, buffer=0x0000000106c44210, numSamples=512) at chip.cpp:127:5 frame #6: 0x000000010063d7f4 scummvm`Audio::RateConverter_Impl::copyConvert(this=0x0000000106c44200, input=0x000000010682c380, outBuffer=0x0000000106d27000, numSamples=1024, volL=256, volR=256) at rate.cpp:109:24 frame #7: 0x000000010063d3dc scummvm`Audio::RateConverter_Impl::convert(this=0x0000000106c44200, input=0x000000010682c380, outBuffer=0x0000000106d27000, numSamples=1024, volL=256, volR=256) at rate.cpp:290:10 frame #8: 0x0000000100633f24 scummvm`Audio::Channel::mix(this=0x0000000106441920, data=0x0000000106d27000, len=1024) at mixer.cpp:719:21 frame #9: 0x0000000100633b54 scummvm`Audio::MixerImpl::mixCallback(this=0x0000000107018000, samples="", len=1024) at mixer.cpp:331:25 frame #10: 0x0000000100234b40 scummvm`SdlMixerManager::callbackHandler(this=0x0000000105529600, samples="", len=4096) at sdl-mixer.cpp:203:10 frame #11: 0x0000000100234a44 scummvm`SdlMixerManager::sdlCallback(this_=0x0000000105529600, samples="", len=4096) at sdl-mixer.cpp:210:11 frame #12: 0x00000001014520a4 libSDL2-2.0.0.dylib`outputCallback + 396 frame #13: 0x00000001932a5c7c AudioToolbox`AQ::API::Queue::CallOutputCallback(AudioQueueBuffer*) + 344 frame #14: 0x0000000193229850 AudioToolbox`AQClientCallbackMessageReader::DispatchCallbacks(void const*, unsigned long) + 288 frame #15: 0x00000001932a53a4 AudioToolbox`AQ::API::Queue::FetchAndDeliverPendingCallbacks() + 436 frame #16: 0x00000001932a51b0 AudioToolbox`(anonymous namespace)::RunLoopSourcePerform(void*) + 52 frame #17: 0x0000000182fb54b8 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 frame #18: 0x0000000182fb544c CoreFoundation`__CFRunLoopDoSource0 + 176 frame #19: 0x0000000182fb51bc CoreFoundation`__CFRunLoopDoSources0 + 244 frame #20: 0x0000000182fb3da8 CoreFoundation`__CFRunLoopRun + 828 frame #21: 0x0000000182fb3414 CoreFoundation`CFRunLoopRunSpecific + 608 frame #22: 0x0000000101451c40 libSDL2-2.0.0.dylib`audioqueue_thread + 1136 frame #23: 0x00000001013e9884 libSDL2-2.0.0.dylib`SDL_RunThread + 48 frame #24: 0x000000010143d360 libSDL2-2.0.0.dylib`RunThread + 12 frame #25: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #26: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 (lldb) thread backtrace all thread #1, queue = 'com.apple.main-thread' frame #0: 0x0000000101ccbcf4 libclang_rt.tsan_osx_dynamic.dylib`__sanitizer::Semaphore::Wait() + 40 frame #1: 0x0000000101d1a62c libclang_rt.tsan_osx_dynamic.dylib`__tsan::SlotLock(__tsan::ThreadState*) + 148 frame #2: 0x0000000101d2e0e4 libclang_rt.tsan_osx_dynamic.dylib`__tsan::AfterSleep(__tsan::ThreadState*, unsigned long) + 68 frame #3: 0x0000000101cebaf4 libclang_rt.tsan_osx_dynamic.dylib`wrap_nanosleep + 276 frame #4: 0x000000010145a35c libSDL2-2.0.0.dylib`SDL_Delay_REAL + 80 frame #5: 0x000000010000a8a0 scummvm`OSystem_SDL::delayMillis(this=0x0000000106303d40, msecs=100) at sdl.cpp:766:3 frame #6: 0x000000010000a90c scummvm`virtual thunk to OSystem_SDL::delayMillis(unsigned int) at sdl.cpp:0 frame #7: 0x000000010062acc0 scummvm`MidiDriver::sendGMReset(this=0x0000000106e2e000) at mididrv.cpp:455:12 frame #8: 0x0000000100059160 scummvm`Touche::MidiPlayer::MidiPlayer(this=0x0000000106f1d5e0) at midi.cpp:55:13 frame #9: 0x00000001000591e0 scummvm`Touche::MidiPlayer::MidiPlayer(this=0x0000000106f1d5e0) at midi.cpp:43:26 frame #10: 0x000000010006ef78 scummvm`Touche::ToucheEngine::initMusic(this=0x000000011802a000) at touche.cpp:3433:21 frame #11: 0x000000010006eca8 scummvm`Touche::ToucheEngine::run(this=0x000000011802a000) at touche.cpp:197:2 frame #12: 0x00000001000216ec scummvm`runGame(enginePlugin=0x00000001057241e0, system=0x0000000106303d40, game=0x000000016fdfd588, meDescriptor=0x0000000105b0b200) at main.cpp:311:33 frame #13: 0x000000010001ec34 scummvm`scummvm_main(argc=1, argv=0x000000016fdff620) at main.cpp:796:13 frame #14: 0x0000000100015080 scummvm`main(argc=1, argv=0x000000016fdff620) at macosx-main.cpp:44:12 frame #15: 0x0000000182b4b154 dyld`start + 2476 thread #2 frame #0: 0x0000000182e96a84 libsystem_kernel.dylib`__workq_kernreturn + 8 thread #3 frame #0: 0x0000000182e96a84 libsystem_kernel.dylib`__workq_kernreturn + 8 thread #4 frame #0: 0x0000000182e983c8 libsystem_kernel.dylib`__semwait_signal + 8 frame #1: 0x0000000182d79568 libsystem_c.dylib`nanosleep + 220 frame #2: 0x0000000182d79480 libsystem_c.dylib`usleep + 68 frame #3: 0x0000000101d1d084 libclang_rt.tsan_osx_dynamic.dylib`__tsan::BackgroundThread(void*) + 200 frame #4: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #6 frame #0: 0x0000000182e94dd4 libsystem_kernel.dylib`mach_msg2_trap + 8 frame #1: 0x0000000182ea75c4 libsystem_kernel.dylib`mach_msg2_internal + 80 frame #2: 0x0000000182e9d9a4 libsystem_kernel.dylib`mach_msg_overwrite + 476 frame #3: 0x0000000182e95158 libsystem_kernel.dylib`mach_msg + 24 frame #4: 0x000000019d0ff094 CoreMIDI`XServerMachPort::ReceiveMessage(int&, void*, int&) + 104 frame #5: 0x000000019d11057c CoreMIDI`MIDIProcess::MIDIInPortThread::Run() + 156 frame #6: 0x000000019d10d908 CoreMIDI`CADeprecated::XThread::RunHelper(void*) + 48 frame #7: 0x000000019d10f5cc CoreMIDI`CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 frame #8: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #9: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #7 frame #0: 0x0000000182e96a84 libsystem_kernel.dylib`__workq_kernreturn + 8 thread #8, name = 'caulk.messenger.shared:17' frame #0: 0x0000000182e94d50 libsystem_kernel.dylib`semaphore_wait_trap + 8 frame #1: 0x000000018d455624 caulk`caulk::semaphore::timed_wait(double) + 212 frame #2: 0x000000018d4554d8 caulk`caulk::concurrent::details::worker_thread::run() + 36 frame #3: 0x000000018d4551d8 caulk`void* caulk::thread_proxy>>(void*) + 96 frame #4: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #5: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #9, name = 'caulk.messenger.shared:high' frame #0: 0x0000000182e94d50 libsystem_kernel.dylib`semaphore_wait_trap + 8 frame #1: 0x000000018d455624 caulk`caulk::semaphore::timed_wait(double) + 212 frame #2: 0x000000018d4554d8 caulk`caulk::concurrent::details::worker_thread::run() + 36 frame #3: 0x000000018d4551d8 caulk`void* caulk::thread_proxy>>(void*) + 96 frame #4: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #5: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 * thread #10, name = 'AudioQueue thread', stop reason = Data race detected * frame #0: 0x0000000101d2e3a0 libclang_rt.tsan_osx_dynamic.dylib`__tsan_on_report frame #1: 0x0000000101d307b8 libclang_rt.tsan_osx_dynamic.dylib`__tsan::OutputReport(__tsan::ThreadState*, __tsan::ScopedReport const&) + 792 frame #2: 0x0000000101d31654 libclang_rt.tsan_osx_dynamic.dylib`__tsan::ReportRace(__tsan::ThreadState*, __tsan::RawShadow*, __tsan::Shadow, __tsan::Shadow, unsigned long) + 2892 frame #3: 0x0000000100617e28 scummvm`MidiDriver_ADLIB::onTimer(this=0x0000000106e2e000) at adlib.cpp:1634:6 frame #4: 0x000000010061d9d4 scummvm`Common::Functor0Mem::operator()(this=0x0000000105727520) const at func.h:397:10 frame #5: 0x00000001006268e8 scummvm`Audio::EmulatedChip::readBuffer(this=0x000000010682c380, buffer=0x0000000106c44210, numSamples=512) at chip.cpp:127:5 frame #6: 0x000000010063d7f4 scummvm`Audio::RateConverter_Impl::copyConvert(this=0x0000000106c44200, input=0x000000010682c380, outBuffer=0x0000000106d27000, numSamples=1024, volL=256, volR=256) at rate.cpp:109:24 frame #7: 0x000000010063d3dc scummvm`Audio::RateConverter_Impl::convert(this=0x0000000106c44200, input=0x000000010682c380, outBuffer=0x0000000106d27000, numSamples=1024, volL=256, volR=256) at rate.cpp:290:10 frame #8: 0x0000000100633f24 scummvm`Audio::Channel::mix(this=0x0000000106441920, data=0x0000000106d27000, len=1024) at mixer.cpp:719:21 frame #9: 0x0000000100633b54 scummvm`Audio::MixerImpl::mixCallback(this=0x0000000107018000, samples="", len=1024) at mixer.cpp:331:25 frame #10: 0x0000000100234b40 scummvm`SdlMixerManager::callbackHandler(this=0x0000000105529600, samples="", len=4096) at sdl-mixer.cpp:203:10 frame #11: 0x0000000100234a44 scummvm`SdlMixerManager::sdlCallback(this_=0x0000000105529600, samples="", len=4096) at sdl-mixer.cpp:210:11 frame #12: 0x00000001014520a4 libSDL2-2.0.0.dylib`outputCallback + 396 frame #13: 0x00000001932a5c7c AudioToolbox`AQ::API::Queue::CallOutputCallback(AudioQueueBuffer*) + 344 frame #14: 0x0000000193229850 AudioToolbox`AQClientCallbackMessageReader::DispatchCallbacks(void const*, unsigned long) + 288 frame #15: 0x00000001932a53a4 AudioToolbox`AQ::API::Queue::FetchAndDeliverPendingCallbacks() + 436 frame #16: 0x00000001932a51b0 AudioToolbox`(anonymous namespace)::RunLoopSourcePerform(void*) + 52 frame #17: 0x0000000182fb54b8 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 frame #18: 0x0000000182fb544c CoreFoundation`__CFRunLoopDoSource0 + 176 frame #19: 0x0000000182fb51bc CoreFoundation`__CFRunLoopDoSources0 + 244 frame #20: 0x0000000182fb3da8 CoreFoundation`__CFRunLoopRun + 828 frame #21: 0x0000000182fb3414 CoreFoundation`CFRunLoopRunSpecific + 608 frame #22: 0x0000000101451c40 libSDL2-2.0.0.dylib`audioqueue_thread + 1136 frame #23: 0x00000001013e9884 libSDL2-2.0.0.dylib`SDL_RunThread + 48 frame #24: 0x000000010143d360 libSDL2-2.0.0.dylib`RunThread + 12 frame #25: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #26: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #11, name = 'caulk::deferred_logger' frame #0: 0x0000000182e94d50 libsystem_kernel.dylib`semaphore_wait_trap + 8 frame #1: 0x000000018d455624 caulk`caulk::semaphore::timed_wait(double) + 212 frame #2: 0x000000018d4554d8 caulk`caulk::concurrent::details::worker_thread::run() + 36 frame #3: 0x000000018d4551d8 caulk`void* caulk::thread_proxy>>(void*) + 96 frame #4: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #5: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #12, name = 'AQConverterThread' frame #0: 0x0000000182e985cc libsystem_kernel.dylib`__psynch_cvwait + 8 frame #1: 0x0000000182ed655c libsystem_pthread.dylib`_pthread_cond_wait + 1228 frame #2: 0x0000000101d3b714 libclang_rt.tsan_osx_dynamic.dylib`__tsan::call_pthread_cancel_with_cleanup(int (*)(void*), void (*)(void*), void*) + 72 frame #3: 0x0000000101ced04c libclang_rt.tsan_osx_dynamic.dylib`wrap_pthread_cond_wait + 440 frame #4: 0x0000000191f46ce4 libAudioToolboxUtility.dylib`CADeprecated::CAGuard::Wait() + 76 frame #5: 0x000000019321ec04 AudioToolbox`AQConverterManager::AQConverterThread::ConverterThreadEntry(void*) + 572 frame #6: 0x0000000191f23254 libAudioToolboxUtility.dylib`CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 frame #7: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #8: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #13, name = 'com.apple.audio.IOThread.client' frame #0: 0x0000000182e94dd4 libsystem_kernel.dylib`mach_msg2_trap + 8 frame #1: 0x0000000182ea75c4 libsystem_kernel.dylib`mach_msg2_internal + 80 frame #2: 0x0000000182e9d9a4 libsystem_kernel.dylib`mach_msg_overwrite + 476 frame #3: 0x0000000182e95158 libsystem_kernel.dylib`mach_msg + 24 frame #4: 0x0000000185872c84 CoreAudio`HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 96 frame #5: 0x0000000185747274 CoreAudio`HALC_ProxyIOContext::IOWorkLoop() + 4272 frame #6: 0x0000000185745a8c CoreAudio`invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 108 frame #7: 0x00000001858cb850 CoreAudio`HALC_IOThread::Entry(void*) + 88 frame #8: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #9: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #14, name = 'SDLTimer' frame #0: 0x0000000182e985cc libsystem_kernel.dylib`__psynch_cvwait + 8 frame #1: 0x0000000182ed655c libsystem_pthread.dylib`_pthread_cond_wait + 1228 frame #2: 0x0000000101d3b714 libclang_rt.tsan_osx_dynamic.dylib`__tsan::call_pthread_cancel_with_cleanup(int (*)(void*), void (*)(void*), void*) + 72 frame #3: 0x0000000101ced264 libclang_rt.tsan_osx_dynamic.dylib`wrap_pthread_cond_timedwait + 452 frame #4: 0x000000010143db90 libSDL2-2.0.0.dylib`SDL_CondWaitTimeout_REAL + 148 frame #5: 0x000000010143d73c libSDL2-2.0.0.dylib`SDL_SemWaitTimeout_REAL + 80 frame #6: 0x00000001013e9d74 libSDL2-2.0.0.dylib`SDL_TimerThread + 436 frame #7: 0x00000001013e9884 libSDL2-2.0.0.dylib`SDL_RunThread + 48 frame #8: 0x000000010143d360 libSDL2-2.0.0.dylib`RunThread + 12 frame #9: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #10: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #16 frame #0: 0x0000000182ed0d20 libsystem_pthread.dylib`start_wqthread thread #17, name = 'com.apple.NSEventThread' frame #0: 0x0000000182e94dd4 libsystem_kernel.dylib`mach_msg2_trap + 8 frame #1: 0x0000000182ea75c4 libsystem_kernel.dylib`mach_msg2_internal + 80 frame #2: 0x0000000182e9d9a4 libsystem_kernel.dylib`mach_msg_overwrite + 476 frame #3: 0x0000000182e95158 libsystem_kernel.dylib`mach_msg + 24 frame #4: 0x0000000182fb5660 CoreFoundation`__CFRunLoopServiceMachPort + 160 frame #5: 0x0000000182fb3f24 CoreFoundation`__CFRunLoopRun + 1208 frame #6: 0x0000000182fb3414 CoreFoundation`CFRunLoopRunSpecific + 608 frame #7: 0x000000018693d280 AppKit`_NSEventThread + 144 frame #8: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #9: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136 thread #18 frame #0: 0x0000000000000000 thread #19, name = 'CVDisplayLink' frame #0: 0x0000000182e985cc libsystem_kernel.dylib`__psynch_cvwait + 8 frame #1: 0x0000000182ed6588 libsystem_pthread.dylib`_pthread_cond_wait + 1272 frame #2: 0x0000000101d3b714 libclang_rt.tsan_osx_dynamic.dylib`__tsan::call_pthread_cancel_with_cleanup(int (*)(void*), void (*)(void*), void*) + 72 frame #3: 0x0000000101ced47c libclang_rt.tsan_osx_dynamic.dylib`wrap_pthread_cond_timedwait_relative_np + 452 frame #4: 0x000000018b9baee4 CoreVideo`CVDisplayLink::waitUntil(unsigned long long) + 328 frame #5: 0x000000018b9b9fb0 CoreVideo`CVDisplayLink::runIOThread() + 504 frame #6: 0x0000000101cec95c libclang_rt.tsan_osx_dynamic.dylib`__tsan_thread_start_func + 144 frame #7: 0x0000000182ed5f94 libsystem_pthread.dylib`_pthread_start + 136