[PR #1868] [MERGED] exception: Fix raising exceptions on POSIX systems #2357

Closed
opened 2026-02-27 21:16:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1868
Author: @squidbus
Created: 12/24/2024
Status: Merged
Merged: 12/24/2024
Merged by: @raphaelthegreat

Base: mainHead: fix-exc


📝 Commits (1)

  • ff14658 exception: Fix raising exceptions on POSIX systems

📊 Changes

2 files changed (+9 additions, -4 deletions)

View changed files

📝 src/core/libraries/kernel/threads/exception.cpp (+8 -4)
📝 src/core/thread.cpp (+1 -0)

📄 Description

Native thread handle was being interpreted wrong, it's a pthread_t not pthread_t*. Fixing this allows signals to properly fire on POSIX systems (Linux/Mac), and should fix at least some Unity games.

Also added a missing include I spotted in core/thread.cpp from debugging and added an error log for if pthread_kill fails firing a signal.


🔄 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/1868 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 12/24/2024 **Status:** ✅ Merged **Merged:** 12/24/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `fix-exc` --- ### 📝 Commits (1) - [`ff14658`](https://github.com/shadps4-emu/shadPS4/commit/ff146589c9678ec1470d55d7acdfb5c44097426d) exception: Fix raising exceptions on POSIX systems ### 📊 Changes **2 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/threads/exception.cpp` (+8 -4) 📝 `src/core/thread.cpp` (+1 -0) </details> ### 📄 Description Native thread handle was being interpreted wrong, it's a `pthread_t` not `pthread_t*`. Fixing this allows signals to properly fire on POSIX systems (Linux/Mac), and should fix at least some Unity games. Also added a missing include I spotted in `core/thread.cpp` from debugging and added an error log for if `pthread_kill` fails firing a signal. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:12 +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#2357
No description provided.