mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #3991] [MERGED] Prevent posix_pthread_mutexattr_settype from setting invalid mutex types #3851
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3851
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3991
Author: @Spirtix
Created: 2/3/2026
Status: ✅ Merged
Merged: 2/3/2026
Merged by: @georgemoralis
Base:
main← Head:fix-mutex-settype📝 Commits (1)
735ff6ePrevent posix_pthread_mutexattr_settype from setting invalid mutex types📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
src/core/libraries/kernel/threads/mutex.cpp(+2 -1)📄 Description
Some games like NHL17 (CUSA04326) pass
0as the mutex type toposix_pthread_mutexattr_settype, which resets its recursive mutexes and causes them to behave incorrectly. The real ps4 kernel rejects this value.I tested this on NHL17 and managed to get past the initial loading screen without any more race conditions caused by broken mutexes. It now crashes later in some video code...
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.