Closed Sean-Der closed 7 months ago
I am able to get it in lldb
(lldb) bt
* thread #9, name = 'output:mpd', stop reason = EXC_BAD_ACCESS (code=1, address=0x10c114a64)
* frame #0: 0x000000018d2e323c libsystem_trace.dylib`_os_log_preferences_refresh + 68
frame #1: 0x000000018d2e3c9c libsystem_trace.dylib`os_log_type_enabled + 712
frame #2: 0x000000018d646728 CoreFoundation`_CFBundleDlfcnCheckLoaded + 172
frame #3: 0x000000018d6f1d0c CoreFoundation`_CFBundleLoadExecutableAndReturnError + 136
frame #4: 0x000000018f75ff8c AudioToolboxCore`APComponent_FromBundle_Loadable::ResolveFactoryFunction() + 68
frame #5: 0x000000018f75ef6c AudioToolboxCore`APComponent::newInstance(unsigned int, bool, void (OpaqueAudioComponentInstance*, int) block_pointer) + 324
frame #6: 0x000000018f8942fc AudioToolboxCore`instantiate(OpaqueAudioComponent*, unsigned int, bool, void (OpaqueAudioComponentInstance*, int) block_pointer) + 428
frame #7: 0x000000018f89481c AudioToolboxCore`__AudioComponentInstanceNew_block_invoke + 120
frame #8: 0x000000018f6d1058 AudioToolboxCore`Synchronously + 132
frame #9: 0x000000018f8945a0 AudioToolboxCore`AudioComponentInstanceNew + 248
frame #10: 0x0000000104f1feb8 mpd`OSXOutput::Enable() + 112
frame #11: 0x0000000104f12ae8 mpd`FilteredAudioOutput::Enable() + 36
frame #12: 0x0000000104f15508 mpd`AudioOutputControl::InternalEnable() + 88
frame #13: 0x0000000104f1517c mpd`AudioOutputControl::Task() + 228
frame #14: 0x0000000104ef19dc mpd`Thread::ThreadProc(void*) + 32
frame #15: 0x000000018d57f034 libsystem_pthread.dylib`_pthread_start + 136
Crashes with ao
output as well. Seems unlikely to be output specific!
Thread 5 Crashed:: output:mpd
0 libsystem_trace.dylib 0x18d2e323c _os_log_preferences_refresh + 68
1 libsystem_trace.dylib 0x18d2e3c9c os_log_type_enabled + 712
2 CoreFoundation 0x18d646728 _CFBundleDlfcnCheckLoaded + 172
3 CoreFoundation 0x18d6f1d0c _CFBundleLoadExecutableAndReturnError + 136
4 AudioToolboxCore 0x18f75ff8c APComponent_FromBundle_Loadable::ResolveFactoryFunction() + 68
5 AudioToolboxCore 0x18f75ef6c APComponent::newInstance(unsigned int, bool, void (OpaqueAudioComponentInstance*, int) block_pointer) + 324
6 AudioToolboxCore 0x18f8942fc instantiate(OpaqueAudioComponent*, unsigned int, bool, void (OpaqueAudioComponentInstance*, int) block_pointer) + 428
7 AudioToolboxCore 0x18f89481c __AudioComponentInstanceNew_block_invoke + 120
8 AudioToolboxCore 0x18f6d1058 Synchronously + 132
9 AudioToolboxCore 0x18f8945a0 AudioComponentInstanceNew + 248
10 libmacosx.so 0x100d922b0 ao_plugin_open + 84
11 libao.4.dylib 0x10122c854 _open_device + 1556
12 mpd 0x100c40190 AoOutput::Open(AudioFormat&) + 140
13 mpd 0x100c36cac FilteredAudioOutput::OpenOutputAndConvert(AudioFormat) + 80
14 mpd 0x100c3a1c4 AudioOutputControl::InternalOpen2(AudioFormat) + 268
15 mpd 0x100c396a8 AudioOutputControl::InternalOpen(AudioFormat, MusicPipe const&) + 144
16 mpd 0x100c39198 AudioOutputControl::Task() + 256
17 mpd 0x100c159dc Thread::ThreadProc(void*) + 32
18 libsystem_pthread.dylib 0x18d57f034 _pthread_start + 136
19 libsystem_pthread.dylib 0x18d579e3c thread_start + 8
Unfortunately, I cannot help with this bug because I don't have a Mac. Let's hope somebody else drops by who happens to have one and wants to help.
What you can do meanwhile is try to bisect the bug - to see which commit introduces it.
Apparently, nobody is interested in providing macOS support for MPD; and since @Sean-Der is not interested in doing a bisect, I have no chance but to close this (and eventually remove all macOS specific code from MPD).
Bug report
Describe the bug
When launching as a daemon MPD crashes.
If I launch with
mpd --no-daemon
it works.I am running macOS Sonoma. I can't think of anything else unique about my setup yet. This didn't happen before.
Expected Behavior
Playback
Actual Behavior
SEGV
Version
Configuration
Log
None