[PR #2133] [MERGED] Check thread param on posix_pthread_rename_np #2507

Closed
opened 2026-02-27 22:00:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2133
Author: @StevenMiller123
Created: 1/12/2025
Status: Merged
Merged: 1/12/2025
Merged by: @georgemoralis

Base: mainHead: pthread-rename-fix


📝 Commits (1)

  • a01c912 Check thread param on posix_pthread_rename_np

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 src/core/libraries/kernel/threads/pthread.cpp (+3 -0)

📄 Description

Monster Hunter: World throws several exceptions on startup because we don't properly check for this. Based on decompiling libkernel, a PS4 would return POSIX_EINVAL in this case.

Handling this properly fixes the current crash in Monster Hunter: World (CUSA07713)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2133 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 1/12/2025 **Status:** ✅ Merged **Merged:** 1/12/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `pthread-rename-fix` --- ### 📝 Commits (1) - [`a01c912`](https://github.com/shadps4-emu/shadPS4/commit/a01c912d8c0b9d51e2d81e9c0074503e00b75bbf) Check thread param on posix_pthread_rename_np ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/threads/pthread.cpp` (+3 -0) </details> ### 📄 Description Monster Hunter: World throws several exceptions on startup because we don't properly check for this. Based on decompiling libkernel, a PS4 would return POSIX_EINVAL in this case. Handling this properly fixes the current crash in Monster Hunter: World (CUSA07713) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:00:11 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2507
No description provided.