[Scummvm-tracker] [ScummVM :: Bugs] #16347: SWORD1: FORTIFY: pthread_mutex_lock called on a destroyed mutex
ScummVM :: Bugs
trac at scummvm.org
Wed Nov 12 12:28:43 UTC 2025
#16347: SWORD1: FORTIFY: pthread_mutex_lock called on a destroyed mutex
---------------------------+----------------------------
Reporter: lephilousophe | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: Sword1
Version: | Keywords:
Game: Broken Sword 1 |
---------------------------+----------------------------
From the Android Developer console, there is this backtrace:
{{{
#00 pc 0x005c918 /apex/com.android.runtime/lib64/bionic/libc.so
(abort+172)
#01 pc 0x006033c /apex/com.android.runtime/lib64/bionic/libc.so
(__fortify_fatal(char const*, ...)+132)
#02 pc 0x006eda4 /apex/com.android.runtime/lib64/bionic/libc.so
(HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+68)
#03 pc 0x006ec1c /apex/com.android.runtime/lib64/bionic/libc.so
(pthread_mutex_lock+240)
#04 pc 0x5443990
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(PthreadMutexInternal::lock()+8)
#05 pc 0x59aff04
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(Audio::QueuingAudioStreamImpl::finish()+24)
#06 pc 0x4b8f9b8
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(Sword1::Sound::updateMusicStreaming()+1056)
#07 pc 0x4b9342c
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(Sword1::SwordEngine::pollInput(unsigned int)+292)
#08 pc 0x4b93e38
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(Sword1::SwordEngine::mainLoop()+364)
#09 pc 0x4b93b38
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(Sword1::SwordEngine::go()+320)
#10 pc 0x4b94b14
/org.scummvm.scummvm-Z-F8Xj1-XH8UnOAOJVm1PQ==/split_config.arm64_v8a.apk
(Sword1::SwordEngine::run()+128)
...
}}}
When `_mixer->playStream` is called, it has the argument autofreeStream
set to YES by default. This means that as soon as the stream is finished,
it gets discarded.
In the same time, SWORD1 keeps track of all of its streams and calls
finish on them when the stream ends.
--
Ticket URL: <https://bugs.scummvm.org/ticket/16347>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list