feat(libkernel): implement pthread_attr_getscope, setscope, getinheritsched and getstackaddr #3494

Merged
babyhuey merged 2 commits from upstream-pr/3494 into main 2026-10-12 02:33:56 +00:00
babyhuey commented 2026-10-11 11:39:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-11T11:39:55Z.


What

Carries #3377 by @pushkarreddyy, which the intake check closed; both commits keep their author, rebased onto main 0f863c10 with no conflicts. pushkarreddyy agreed to the carry on #3377.

It adds pthread_attr_getscope (e2G+cdEkOmU), pthread_attr_setscope, pthread_attr_getinheritsched and pthread_attr_getstackaddr (DxmIMUQ-wXY) to libkernel, following FreeBSD 11 libthr: PTHREAD_SCOPE_PROCESS 0 and PTHREAD_SCOPE_SYSTEM 2 (the default), PTHREAD_INHERIT_SCHED 4 and PTHREAD_EXPLICIT_SCHED 0, EINVAL for an invalid attribute, a null output or an unknown scope, and ENOTSUP for an unknown inherit value. A null output of pthread_attr_getinheritsched throws, since libthr writes through it unchecked. A thread keeps the scope it was created with and pthread_attr_get_np reports it; TechnicalDebt records that every guest thread still runs as a host thread at system scope.

Seven catalog titles stop at pthread_attr_getscope on main 0f863c10 (catalog builds, eboot.bin and sce_module/libc.prx unwrapped as #2605 requires; tracked in #1578), each with app.elf: symbol lookup error: app.elf: undefined symbol: e2G+cdEkOmU on Linux. With this PR, on Linux:

Title With this PR, Linux With this PR, Windows
XashPS5 (PPSA19111) runs, exits asking for the Half-Life valve folder same
Quake3e (PPSA99303) runs, exits looking for baseq3 still running after 60 s, looking for baseq3
ccleste (PPSA59322) gets past its imports; stops at video output in the headless run Vulkan device ready, still running after 60 s
RommPS (PPSA76677) gets past its imports; stops at video output in the headless run Vulkan device ready, still running after 60 s
ProsperoLight (PPSA99002) gets past its imports; stops at video output in the headless run renders, then the shader recompiler throws on v_fma_mixlo/mixhi_f16 in an unsupported float mode
PSBox Cloud Gaming (PPSA99810) stops at window creation (no Vulkan surface in the headless run) sysctl_nid_postfix: unsupported MIB 1.37 (kern.arandom)
vkQuake (PPSA99010) gets past its imports, then crashes (SIGSEGV) without a log line; not looked into exits 0 right after entry with no log line; not looked into

ccleste, RommPS and Quake3e need pthread_attr_getstackaddr right after getscope, which is why it's included.

Tested

Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release: guest_pthread_attr passes 5/5 (--repeat until-fail:5) on both, with no warnings in the changed files, and check_conventions.py passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4818779557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-11T11:39:55Z. --- ### What Carries #3377 by @pushkarreddyy, which the intake check closed; both commits keep their author, rebased onto `main` 0f863c10 with no conflicts. pushkarreddyy agreed to the carry on #3377. It adds `pthread_attr_getscope` (`e2G+cdEkOmU`), `pthread_attr_setscope`, `pthread_attr_getinheritsched` and `pthread_attr_getstackaddr` (`DxmIMUQ-wXY`) to libkernel, following FreeBSD 11 `libthr`: `PTHREAD_SCOPE_PROCESS` 0 and `PTHREAD_SCOPE_SYSTEM` 2 (the default), `PTHREAD_INHERIT_SCHED` 4 and `PTHREAD_EXPLICIT_SCHED` 0, `EINVAL` for an invalid attribute, a null output or an unknown scope, and `ENOTSUP` for an unknown inherit value. A null output of `pthread_attr_getinheritsched` throws, since libthr writes through it unchecked. A thread keeps the scope it was created with and `pthread_attr_get_np` reports it; TechnicalDebt records that every guest thread still runs as a host thread at system scope. Seven catalog titles stop at `pthread_attr_getscope` on `main` 0f863c10 (catalog builds, `eboot.bin` and `sce_module/libc.prx` unwrapped as #2605 requires; tracked in #1578), each with `app.elf: symbol lookup error: app.elf: undefined symbol: e2G+cdEkOmU` on Linux. With this PR, on Linux: | Title | With this PR, Linux | With this PR, Windows | |---|---|---| | XashPS5 (PPSA19111) | runs, exits asking for the Half-Life `valve` folder | same | | Quake3e (PPSA99303) | runs, exits looking for `baseq3` | still running after 60 s, looking for `baseq3` | | ccleste (PPSA59322) | gets past its imports; stops at video output in the headless run | Vulkan device ready, still running after 60 s | | RommPS (PPSA76677) | gets past its imports; stops at video output in the headless run | Vulkan device ready, still running after 60 s | | ProsperoLight (PPSA99002) | gets past its imports; stops at video output in the headless run | renders, then the shader recompiler throws on `v_fma_mixlo/mixhi_f16` in an unsupported float mode | | PSBox Cloud Gaming (PPSA99810) | stops at window creation (no Vulkan surface in the headless run) | `sysctl_nid_postfix: unsupported MIB 1.37` (`kern.arandom`) | | vkQuake (PPSA99010) | gets past its imports, then crashes (SIGSEGV) without a log line; not looked into | exits 0 right after entry with no log line; not looked into | ccleste, RommPS and Quake3e need `pthread_attr_getstackaddr` right after `getscope`, which is why it's included. ### Tested Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release: `guest_pthread_attr` passes 5/5 (`--repeat until-fail:5`) on both, with no warnings in the changed files, and `check_conventions.py` passes. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 11:40:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T11:40:16Z.


Progress report (51e2c51 → 3246697)

📈 System libraries: 85.73% (+0.02%, +4 implemented functions)

✅ 4 implemented
Library Name
libkernel pthread_attr_getinheritsched_nid_postfix
libkernel pthread_attr_getscope_nid_postfix
libkernel pthread_attr_getstackaddr_nid_postfix
libkernel pthread_attr_setscope_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108635602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6108635602). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T11:40:16Z. --- <!-- progress-report --> ### Progress report (51e2c51 → 3246697) 📈 **System libraries**: 85.73% (+0.02%, +4 implemented functions) <details> <summary>✅ 4 implemented</summary> | Library | Name | | - | - | | libkernel | `pthread_attr_getinheritsched_nid_postfix` | | libkernel | `pthread_attr_getscope_nid_postfix` | | libkernel | `pthread_attr_getstackaddr_nid_postfix` | | libkernel | `pthread_attr_setscope_nid_postfix` | </details>
pushkarreddyy commented 2026-10-11 11:49:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T11:49:29Z.


Thank you so much @babyhuey for carrying #3377 into #3494 and preserving commit authorship!

It's fantastic to see all seven catalog titles (XashPS5, Quake3e, ccleste, RommPS, ProsperoLight, PSBox Cloud Gaming, and vkQuake) advance cleanly past their imports. Really appreciate your support and testing!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108708467 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6108708467). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T11:49:29Z. --- Thank you so much @babyhuey for carrying #3377 into #3494 and preserving commit authorship! It's fantastic to see all seven catalog titles (*XashPS5*, *Quake3e*, *ccleste*, *RommPS*, *ProsperoLight*, *PSBox Cloud Gaming*, and *vkQuake*) advance cleanly past their imports. Really appreciate your support and testing!
pushkarreddyy commented 2026-10-11 11:55:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T11:55:38Z.


Calling on @screamm and @blawesom to run title validation across non-headless Windows / Linux environments as well, to see where ccleste, RommPS, ProsperoLight, and vkQuake advance past these imports or if any subsequent stop is reached. Please feel free to provide any input or observations from runtime logs!

Also calling on reviewers @adriadam10, @oneandonlydean, and @MarcZX100 to take a look and review/merge when convenient. All conventions and intake checks are green!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108756702 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6108756702). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T11:55:38Z. --- Calling on @screamm and @blawesom to run title validation across non-headless Windows / Linux environments as well, to see where *ccleste*, *RommPS*, *ProsperoLight*, and *vkQuake* advance past these imports or if any subsequent stop is reached. Please feel free to provide any input or observations from runtime logs! Also calling on reviewers @adriadam10, @oneandonlydean, and @MarcZX100 to take a look and review/merge when convenient. All conventions and intake checks are green!
orishamir commented 2026-10-11 14:07:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T14:07:28Z.


Two more titles this PR moves, on Windows: PSXS5 and SwanStationPS5 reach pthread_attr_getscope once reallocf (#3522) is in. Catalog builds, main a11c8f7f + #3522's FileAndHeap.cpp, with and without this PR's five non-test files (33d67cc0); Windows 11, RTX 4080, Release, 45 s.

Title without this PR with this PR
PSXS5 (PPSA97510) 2.2.0 FAIL: unresolved ELF import e2G+cdEkOmU from libkernel.prx starts, probes Vulkan and audio, then after 31 s: poll: descriptor 6 is not a socket (#3521)
SwanStationPS5 (PPSA98510) 1.1.8 same starts, sets up its Vulkan swapchain (3840x2160 @ 59.94 Hz) and runs the 45 s without an error

AI-assisted: yes (Claude Code Opus 5.5 xhigh)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109868071 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6109868071). Originally posted by [orishamir](https://github.com/orishamir) on 2026-10-11T14:07:28Z. --- Two more titles this PR moves, on Windows: PSXS5 and SwanStationPS5 reach `pthread_attr_getscope` once `reallocf` (#3522) is in. Catalog builds, `main` a11c8f7f + #3522's `FileAndHeap.cpp`, with and without this PR's five non-test files (33d67cc0); Windows 11, RTX 4080, Release, 45 s. | Title | without this PR | with this PR | |---|---|---| | PSXS5 (PPSA97510) 2.2.0 | `FAIL: unresolved ELF import e2G+cdEkOmU from libkernel.prx` | starts, probes Vulkan and audio, then after 31 s: `poll: descriptor 6 is not a socket` (#3521) | | SwanStationPS5 (PPSA98510) 1.1.8 | same | starts, sets up its Vulkan swapchain (3840x2160 @ 59.94 Hz) and runs the 45 s without an error | AI-assisted: yes (Claude Code Opus 5.5 xhigh)
pushkarreddyy commented 2026-10-11 14:42:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T14:42:09Z.


Thank you @orishamir for testing and verifying on Windows 11 / RTX 4080!

It's huge to see both PSXS5 (PPSA97510) and SwanStationPS5 (PPSA98510) moving past start-up, with SwanStationPS5 running completely stable at 4K @ 59.94 Hz and PSXS5 cleanly advancing to descriptor polling (#3521) once reallocf (#3522) and pthread_attr_getscope (#3494) are in place.

Calling on reviewers and maintainers @babyhuey , @MarcZX100 , @adriadam10 , and @oneandonlydean :
Both PR #3494 and PR #3522 have all 14/14 CI checks green and have now been independently verified on real titles and Linux test suites (832/832 by @blawesom). Could you please take a look for final review and merge into main so these title unblocks land upstream? Thank you!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110176672 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6110176672). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T14:42:09Z. --- Thank you @orishamir for testing and verifying on Windows 11 / RTX 4080! It's huge to see both *PSXS5* (PPSA97510) and *SwanStationPS5* (PPSA98510) moving past start-up, with SwanStationPS5 running completely stable at 4K @ 59.94 Hz and PSXS5 cleanly advancing to descriptor polling (#3521) once `reallocf` (#3522) and `pthread_attr_getscope` (#3494) are in place. Calling on reviewers and maintainers @babyhuey , @MarcZX100 , @adriadam10 , and @oneandonlydean : Both PR #3494 and PR #3522 have all 14/14 CI checks green and have now been independently verified on real titles and Linux test suites (832/832 by @blawesom). Could you please take a look for final review and merge into `main` so these title unblocks land upstream? Thank you!
pushkarreddyy commented 2026-10-11 14:45:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T14:45:51Z.


Thank you @orishamir for the great testing and data points on Windows 11!

Regarding the 31-second abort on PSXS5 (what(): poll: descriptor 6 is not a socket (#3521)): I have carried @screamm's ready fix for #3521 into #3649 (feat(libkernel): poll on file descriptors and Windows pipe read ends) with their authorship preserved. Combined with #3522 and this PR (#3494), PSXS5 will get past that non-socket poll error as well!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110210092 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6110210092). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T14:45:51Z. --- Thank you @orishamir for the great testing and data points on Windows 11! Regarding the 31-second abort on *PSXS5* (`what(): poll: descriptor 6 is not a socket (#3521)`): I have carried @screamm's ready fix for #3521 into **#3649** (`feat(libkernel): poll on file descriptors and Windows pipe read ends`) with their authorship preserved. Combined with #3522 and this PR (#3494), *PSXS5* will get past that non-socket poll error as well!
overlordxrz-source commented 2026-10-11 15:17:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-11T15:17:14Z.


Linux results for this PR (Hetzner CPX42, Ubuntu, lavapipe under Xvfb, catalog builds). Base: main 3b620aa4 + this PR (498e8fad). Without it, all 14 titles below stop at e2G+cdEkOmU / xesmlSI-KCI / oLjPqUKhzes / DxmIMUQ-wXY.

Title With #3494
XashPS5 (PPSA19111) exits cleanly (rc 0)
Quake3e (PPSA99303) exits cleanly (rc 0)
ccleste (PPSA59322) runs for 20+ min (killed by us, no stop)
RommPS (PPSA76677) runs for 20+ min (killed by us, no stop)
Ruffle (PPSA68091) next stop 1t1-JoZ0sZQ (sinhf)
SwanStation (PPSA98510) next stop YMZO9ChZb0E (reallocf, #3522)
PSXS5 (PPSA97510) next stop YMZO9ChZb0E (reallocf, #3522)
RetroArch (PPSA99169) next stop Nx-F5v0-qU8 (asinl, #3598)
Porpoise (PPSA99764) next stop oc98+zOImus (pathconf, #3611)
VLC (PPSA85300) next stop 78FiHequa9U (getlogin_r, #3606)
XPSemu (PPSA97358) next stop KaK52lYTBIs (execv, #3544)
PSBox (PPSA99810) sysctl_nid_postfix: unsupported MIB 1.37 (kern.arandom)
vkQuake (PPSA99010) SIGSEGV in the title's own startup code (null virtual call), not an import
ProsperoLight (PPSA99002) abort in the VideoOut present thread

All 14 get past these four imports.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110494551 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6110494551). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-11T15:17:14Z. --- Linux results for this PR (Hetzner CPX42, Ubuntu, lavapipe under Xvfb, catalog builds). Base: main 3b620aa4 + this PR (498e8fad). Without it, all 14 titles below stop at `e2G+cdEkOmU` / `xesmlSI-KCI` / `oLjPqUKhzes` / `DxmIMUQ-wXY`. | Title | With #3494 | | - | - | | XashPS5 (PPSA19111) | exits cleanly (rc 0) | | Quake3e (PPSA99303) | exits cleanly (rc 0) | | ccleste (PPSA59322) | runs for 20+ min (killed by us, no stop) | | RommPS (PPSA76677) | runs for 20+ min (killed by us, no stop) | | Ruffle (PPSA68091) | next stop `1t1-JoZ0sZQ` (sinhf) | | SwanStation (PPSA98510) | next stop `YMZO9ChZb0E` (reallocf, #3522) | | PSXS5 (PPSA97510) | next stop `YMZO9ChZb0E` (reallocf, #3522) | | RetroArch (PPSA99169) | next stop `Nx-F5v0-qU8` (asinl, #3598) | | Porpoise (PPSA99764) | next stop `oc98+zOImus` (pathconf, #3611) | | VLC (PPSA85300) | next stop `78FiHequa9U` (getlogin_r, #3606) | | XPSemu (PPSA97358) | next stop `KaK52lYTBIs` (execv, #3544) | | PSBox (PPSA99810) | `sysctl_nid_postfix: unsupported MIB 1.37` (kern.arandom) | | vkQuake (PPSA99010) | SIGSEGV in the title's own startup code (null virtual call), not an import | | ProsperoLight (PPSA99002) | abort in the VideoOut present thread | All 14 get past these four imports. AI-assisted: yes
pushkarreddyy commented 2026-10-11 15:55:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T15:55:13Z.


Calling on @adriadam10 and @babyhuey for final review and merge when ready:

Both major platforms now have complete title-level verification confirming this PR unblocks titles across the board:

  • Linux (Hetzner CPX42, Ubuntu, lavapipe): @overlordxrz-source verified that all 14 catalog titles tested move past these 4 imports cleanly.
  • Windows 11 / RTX 4080: @orishamir verified that PSXS5 (PPSA97510) and SwanStationPS5 (PPSA98510) advance past startup without error.
  • CI: 100% green across all platforms.

Ready for merge into main!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110841611 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6110841611). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-11T15:55:13Z. --- Calling on @adriadam10 and @babyhuey for final review and merge when ready: Both major platforms now have complete title-level verification confirming this PR unblocks titles across the board: - **Linux (Hetzner CPX42, Ubuntu, lavapipe)**: @overlordxrz-source verified that all 14 catalog titles tested move past these 4 imports cleanly. - **Windows 11 / RTX 4080**: @orishamir verified that *PSXS5* (`PPSA97510`) and *SwanStationPS5* (`PPSA98510`) advance past startup without error. - **CI**: 100% green across all platforms. Ready for merge into main!
Mouad-Scriptz-0 commented 2026-10-11 16:13:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouad-Scriptz-0 on 2026-10-11T16:13:04Z.


Reviewed the pthread_attr_getstackaddr part, since my #3729 was closed in favour of this PR: Valid(attr) && stack_addr then (*attr)->stackAddress, EINVAL otherwise, is what FreeBSD libthr's _pthread_attr_getstackaddr (lib/libthr/thread/thr_attr.c) does, and the guest_pthread_attr additions cover the same cases mine did (null attribute, destroyed attribute, null output, null default, address set by pthread_attr_setstack), so nothing to add from my side.

Title evidence for the export, from #3488: an import audit of the homebrew catalog on main 0f863c10 lists DxmIMUQ-wXY as an absent import of 13 titles, always next to the three attribute functions this PR also implements. For XashPS5 1.3, ccleste 1.00, RommPS 1.1.1, ProsperoLight 01.000.090, vkQuake 1.0 and PSBox Cloud Gaming 0.9.5 the four pthread_attr_* functions are the only absent imports left, so with this PR they load with zero; PSXS5, SwanStationPS5, Ruffle, Porpoise, VLC, RetroArch and XPSemu each lose one of their remaining absent imports. The method and the full table are in #3488.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111008161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6111008161). Originally posted by [Mouad-Scriptz-0](https://github.com/Mouad-Scriptz-0) on 2026-10-11T16:13:04Z. --- Reviewed the `pthread_attr_getstackaddr` part, since my #3729 was closed in favour of this PR: `Valid(attr) && stack_addr` then `(*attr)->stackAddress`, `EINVAL` otherwise, is what FreeBSD libthr's `_pthread_attr_getstackaddr` (`lib/libthr/thread/thr_attr.c`) does, and the `guest_pthread_attr` additions cover the same cases mine did (null attribute, destroyed attribute, null output, null default, address set by `pthread_attr_setstack`), so nothing to add from my side. Title evidence for the export, from #3488: an import audit of the homebrew catalog on `main` 0f863c10 lists `DxmIMUQ-wXY` as an absent import of 13 titles, always next to the three attribute functions this PR also implements. For XashPS5 1.3, ccleste 1.00, RommPS 1.1.1, ProsperoLight 01.000.090, vkQuake 1.0 and PSBox Cloud Gaming 0.9.5 the four `pthread_attr_*` functions are the only absent imports left, so with this PR they load with zero; PSXS5, SwanStationPS5, Ruffle, Porpoise, VLC, RetroArch and XPSemu each lose one of their remaining absent imports. The method and the full table are in #3488. AI-assisted: yes (Claude Code).
github-actions[bot] commented 2026-10-11 22:10:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T22:10:34Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3725 docs/dev/TechnicalDebt.md L413
#4241 docs/dev/TechnicalDebt.md L413-414
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114410390 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6114410390). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T22:10:34Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3725 | `docs/dev/TechnicalDebt.md` [L413](https://github.com/boykopovar/AnyPS5/blob/c2fdb9c71cddc7648d744c9d75ae239383607c67/docs/dev/TechnicalDebt.md#L413) | | | | #4241 | `docs/dev/TechnicalDebt.md` [L413-414](https://github.com/boykopovar/AnyPS5/blob/c2fdb9c71cddc7648d744c9d75ae239383607c67/docs/dev/TechnicalDebt.md#L413-L414) | | |
screamm commented 2026-10-12 00:36:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-12T00:36:31Z.


Windows validation with title evidence (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including libs): PR head 32466972 merged cleanly onto main bab7b328 (plus #4021's guard, since merged). guest_pthread_attr 3/3; ctest -j8 -E "^agc_driver_|^video_out_flip" 582/584, identical to the main baseline in the same build directory: the two failures are the known agc_write_tracking (#4087) and guest_kernel_stack_protect (#4088); conventions and git diff --check pass.

PSXS5 (PPSA97510 2.2.0) relinked against this build (relinker and libs from the same commit): on this main it stops at FAIL: unresolved ELF import e2G+cdEkOmU from libkernel.prx (pthread_attr_getscope); with the PR it passes every pthread_attr_* import, writes 127 log lines including its own psxs5.log, and exits after 12.9 s with what(): poll: descriptor 6 is not a socket, the stop that #3649/#3644 cover. Six catalog titles sit on this import (third run, #1578), so this PR is the one most worth merging for the catalog.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115677086 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3494#issuecomment-6115677086). Originally posted by [screamm](https://github.com/screamm) on 2026-10-12T00:36:31Z. --- Windows validation with title evidence (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including `libs`): PR head `32466972` merged cleanly onto `main` `bab7b328` (plus #4021's guard, since merged). `guest_pthread_attr` 3/3; `ctest -j8 -E "^agc_driver_|^video_out_flip"` 582/584, identical to the `main` baseline in the same build directory: the two failures are the known `agc_write_tracking` (#4087) and `guest_kernel_stack_protect` (#4088); conventions and `git diff --check` pass. PSXS5 (PPSA97510 2.2.0) relinked against this build (relinker and libs from the same commit): on this `main` it stops at `FAIL: unresolved ELF import e2G+cdEkOmU from libkernel.prx` (pthread_attr_getscope); with the PR it passes every `pthread_attr_*` import, writes 127 log lines including its own `psxs5.log`, and exits after 12.9 s with `what(): poll: descriptor 6 is not a socket`, the stop that #3649/#3644 cover. Six catalog titles sit on this import (third run, #1578), so this PR is the one most worth merging for the catalog.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!3494
No description provided.