Hades (PPSA03355) on Windows: start-up faults in the title's own libc.prx before any file is opened #2724

Closed
opened 2026-10-10 12:17:16 +00:00 by xXPBSXx · 11 comments
xXPBSXx commented 2026-10-10 12:17:16 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T12:17:16Z.


Hades (PPSA03355 v01.003.000) on Windows: start-up faults in the title's own libc.prx right after "Transferring control to ELF entry point", before any file is opened

On Windows the title does not get as far as the Linux runs in #2276, which reach its texture upload pool after #1798 and #861.

Transferring control to ELF entry point

FATAL: unhandled exception 0xc0000005 on thread 26632 ''
  rip 0x00007fff6bd341b0 libc.prx.guest.prx+0x141b0
  read of 0xffffffffffffffff
  rax 0000000080020002 ... rbx 0000000000c271a0 rdi 0000000000a0faa0

What the code does at that address (disassembly of the title's own libc.prx, vaddr 0x14150 to 0x141b2): a call to an internal function at 0x3850 (it adds two arguments and compares the result with rbp, it is not an import stub), then a loop of vmovups [rax+rdi*8-0x60..], ymm0 stores that zero-fills the buffer the call returned. At the fault rax is 0x80020002, which looks like an SCE error code (ENOENT) rather than a pointer, so something that returns a buffer failed and the result is used unchecked. I did not identify which call returned it.

What is established

  • Import audit across the executable and all 8 bundled modules: 733 unique imports, 468 implemented, 13 stubs, 0 absent, so the loader finds everything.
  • Two other titles rebuilt the same way (ELF files rebuilt from decrypted fake-SELF containers) run through their own libc.prx normally on the same setup: New Joe & Mac (PPSA02801) and Dredge (PPSA09076) reach the PSNCore parameter check of #918/#846 instead. So the rebuild itself looks sound, but I cannot exclude it for Hades because no original ELF is available to compare.
  • Whether the failure is Windows-specific is not established; I have no Linux run.

Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 4080 SUPER. Libraries built on main at b5f5362d plus two unrelated stub exports and #1091. Relinked with --windows --registry; libfmod.prx and libfmodstudio.prx (which sit next to eboot.bin in the dump) were relinked as prx/ modules. Dump from my own digital copy; no game files shared. AI-assisted.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5791128396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-10T12:17:16Z. --- **Hades (PPSA03355 v01.003.000) on Windows: start-up faults in the title's own `libc.prx` right after "Transferring control to ELF entry point", before any file is opened** On Windows the title does not get as far as the Linux runs in #2276, which reach its texture upload pool after #1798 and #861. ``` Transferring control to ELF entry point FATAL: unhandled exception 0xc0000005 on thread 26632 '' rip 0x00007fff6bd341b0 libc.prx.guest.prx+0x141b0 read of 0xffffffffffffffff rax 0000000080020002 ... rbx 0000000000c271a0 rdi 0000000000a0faa0 ``` **What the code does at that address** (disassembly of the title's own `libc.prx`, vaddr `0x14150` to `0x141b2`): a call to an internal function at `0x3850` (it adds two arguments and compares the result with `rbp`, it is not an import stub), then a loop of `vmovups [rax+rdi*8-0x60..], ymm0` stores that zero-fills the buffer the call returned. At the fault `rax` is `0x80020002`, which looks like an SCE error code (ENOENT) rather than a pointer, so something that returns a buffer failed and the result is used unchecked. I did not identify which call returned it. **What is established** - Import audit across the executable and all 8 bundled modules: 733 unique imports, 468 implemented, 13 stubs, **0 absent**, so the loader finds everything. - Two other titles rebuilt the same way (ELF files rebuilt from decrypted fake-SELF containers) run through their own `libc.prx` normally on the same setup: New Joe & Mac (PPSA02801) and Dredge (PPSA09076) reach the PSNCore parameter check of #918/#846 instead. So the rebuild itself looks sound, but I cannot exclude it for Hades because no original ELF is available to compare. - Whether the failure is Windows-specific is not established; I have no Linux run. **Setup:** Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 4080 SUPER. Libraries built on `main` at `b5f5362d` plus two unrelated stub exports and #1091. Relinked with `--windows --registry`; `libfmod.prx` and `libfmodstudio.prx` (which sit next to `eboot.bin` in the dump) were relinked as `prx/` modules. Dump from my own digital copy; no game files shared. AI-assisted.
xXPBSXx commented 2026-10-10 13:15:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T13:15:22Z.


Correction to the analysis above: the fault is not in a zero-fill loop. I disassembled the original ELF at an address that belongs to the converted PE image. In the converted module the bytes at libc.prx.guest.prx+0x141b0 are cd 45 90 0f 0b (int 0x45; nop; ud2), reached from a small function at +0x141a0 that stores 0xA002000B into a per-thread slot (through a relinker-generated thunk in .gtcode) and then executes int 0x45. So the title's own libc enters a fatal path, and Windows reports int 0x45 as an access violation. The caller (+0x15bda) is a wrapper that calls through a function pointer at +0x120ef0.

What made it take that path is not identified. rax = 0x80020002 at the fault looks like an error code ("not found"). Hades imports sceLibcInternalBacktraceForGame and sceLibcInternalHeapErrorReportForGame (the audit lists both as stubs here); I have not checked whether they are involved. The audit numbers and setup above stand.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097884434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6097884434). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-10T13:15:22Z. --- Correction to the analysis above: the fault is not in a zero-fill loop. I disassembled the original ELF at an address that belongs to the converted PE image. In the converted module the bytes at `libc.prx.guest.prx+0x141b0` are `cd 45 90 0f 0b` (`int 0x45; nop; ud2`), reached from a small function at `+0x141a0` that stores `0xA002000B` into a per-thread slot (through a relinker-generated thunk in `.gtcode`) and then executes `int 0x45`. So the title's own libc enters a fatal path, and Windows reports `int 0x45` as an access violation. The caller (`+0x15bda`) is a wrapper that calls through a function pointer at `+0x120ef0`. What made it take that path is not identified. `rax = 0x80020002` at the fault looks like an error code ("not found"). Hades imports `sceLibcInternalBacktraceForGame` and `sceLibcInternalHeapErrorReportForGame` (the audit lists both as stubs here); I have not checked whether they are involved. The audit numbers and setup above stand.
xXPBSXx commented 2026-10-11 01:27:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T01:27:24Z.


Cause found, and it was not a fault in the title's libc: the title is trying to dlopen("/app0/libfmod.prx", RTLD_NOW), our dlopen fails ("Windows loader error", see DynamicLoader.cpp), and the title's libc treats that as fatal (the int 0x45 I described above, with the loader message string sitting in the memory rdi points to). I traced it with a gdb breakpoint on dlopen_nid_postfix: libfmod.prx is the only path requested before the fault.

Why it fails: the relinker writes modules found in a prx input directory to app0/prx/<name>.guest.prx, but dlopen looks for <requested path>.guest.prx next to the requested file, i.e. app0/libfmod.prx.guest.prx. This title keeps libfmod.prx and libfmodstudio.prx at the root of the game directory, so the relinked modules were never found. This is the situation #846 (--module-dir) is about.

Check: I copied app0/prx/libfmod.prx.guest.prx and app0/prx/libfmodstudio.prx.guest.prx to app0/ and ran again on current main plus my other branches. The fault is gone: the title ran the full 90 s I allowed, mounted its save directory, compiled shaders (245 in the first 10 s of rendering) and created textures, with no error in the log. I did not look at the window.

So: Hades needs no code change beyond what #846 describes; this issue can be read as another case for it.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104189063 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6104189063). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T01:27:24Z. --- Cause found, and it was not a fault in the title's libc: the title is trying to `dlopen("/app0/libfmod.prx", RTLD_NOW)`, our `dlopen` fails ("Windows loader error", see `DynamicLoader.cpp`), and the title's libc treats that as fatal (the `int 0x45` I described above, with the loader message string sitting in the memory `rdi` points to). I traced it with a gdb breakpoint on `dlopen_nid_postfix`: `libfmod.prx` is the only path requested before the fault. Why it fails: the relinker writes modules found in a `prx` input directory to `app0/prx/<name>.guest.prx`, but `dlopen` looks for `<requested path>.guest.prx` next to the requested file, i.e. `app0/libfmod.prx.guest.prx`. This title keeps `libfmod.prx` and `libfmodstudio.prx` at the root of the game directory, so the relinked modules were never found. This is the situation #846 (`--module-dir`) is about. Check: I copied `app0/prx/libfmod.prx.guest.prx` and `app0/prx/libfmodstudio.prx.guest.prx` to `app0/` and ran again on current `main` plus my other branches. The fault is gone: the title ran the full 90 s I allowed, mounted its save directory, compiled shaders (245 in the first 10 s of rendering) and created textures, with no error in the log. I did not look at the window. So: Hades needs no code change beyond what #846 describes; this issue can be read as another case for it. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-11 13:07:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T13:07:41Z.


Follow-up now that --module-dir (#846) is on main: it does not cover this title's layout. Hades keeps libfmod.prx and libfmodstudio.prx in the root of the game directory, next to eboot.bin. The option takes a directory relative to the parent of the input ELF, and . is accepted as a path, but the relinker then scans the whole directory including the executable:

relinker --windows --module-dir . in/eboot.elf app.exe
FAIL: ...\in\eboot.elf: ELF is not a shared module

(in/ holding eboot.elf, sce_module/, libfmod.prx, libfmodstudio.prx.) So root-level runtime modules still need the workaround from above (copy the relinked .guest.prx files next to the originals under app0/). A fix would need either the main executable skipped when it is in a --module-dir, or a way to name individual files; I have not tried either and do not know which fits the project better.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109346379 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6109346379). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T13:07:41Z. --- Follow-up now that `--module-dir` (#846) is on `main`: it does not cover this title's layout. Hades keeps `libfmod.prx` and `libfmodstudio.prx` in the root of the game directory, next to `eboot.bin`. The option takes a directory relative to the parent of the input ELF, and `.` is accepted as a path, but the relinker then scans the whole directory including the executable: ``` relinker --windows --module-dir . in/eboot.elf app.exe FAIL: ...\in\eboot.elf: ELF is not a shared module ``` (`in/` holding `eboot.elf`, `sce_module/`, `libfmod.prx`, `libfmodstudio.prx`.) So root-level runtime modules still need the workaround from above (copy the relinked `.guest.prx` files next to the originals under `app0/`). A fix would need either the main executable skipped when it is in a `--module-dir`, or a way to name individual files; I have not tried either and do not know which fits the project better. AI-assisted (Claude Code).
SandstromPL commented 2026-10-11 18:07:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-11T18:07:32Z.


@xXPBSXx #3850 implements the first option from your 13:07Z comment: the input executable is skipped when a --module-dir is scanned, so --module-dir . now converts the modules next to eboot.elf. Root-level modules are written to app0/<name>.guest.prx (previously the path would have been app0/./…). That is the path dlopen("/app0/libfmod.prx") checks, and it matches the layout your copy workaround produced. The PR carries #3509's commit, which makes . count as a runtime-loaded directory; without it the modules would go into Linux DT_NEEDED and start at load.

I don't have a Hades dump, so I could only test with the relinker's fixtures (Linux host, relinker-only build, Linux and Windows output). Could you try it on Windows without the manual copy?

git fetch https://github.com/boykopovar/AnyPS5.git pull/3850/head
git checkout FETCH_HEAD
relinker --windows --registry --module-dir . in/eboot.elf app.exe

Keep libfmod.prx and libfmodstudio.prx only in the game root (not also in prx/), and write the output outside the game directory. Expected: the relinker lists libfmod.prx.guest.prx and libfmodstudio.prx.guest.prx under app0/, and the title gets past the dlopen without copying anything.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6112061831 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6112061831). Originally posted by [SandstromPL](https://github.com/SandstromPL) on 2026-10-11T18:07:32Z. --- @xXPBSXx #3850 implements the first option from your 13:07Z comment: the input executable is skipped when a `--module-dir` is scanned, so `--module-dir .` now converts the modules next to `eboot.elf`. Root-level modules are written to `app0/<name>.guest.prx` (previously the path would have been `app0/./…`). That is the path `dlopen("/app0/libfmod.prx")` checks, and it matches the layout your copy workaround produced. The PR carries #3509's commit, which makes `.` count as a runtime-loaded directory; without it the modules would go into Linux `DT_NEEDED` and start at load. I don't have a Hades dump, so I could only test with the relinker's fixtures (Linux host, relinker-only build, Linux and Windows output). Could you try it on Windows without the manual copy? git fetch https://github.com/boykopovar/AnyPS5.git pull/3850/head git checkout FETCH_HEAD relinker --windows --registry --module-dir . in/eboot.elf app.exe Keep `libfmod.prx` and `libfmodstudio.prx` only in the game root (not also in `prx/`), and write the output outside the game directory. Expected: the relinker lists `libfmod.prx.guest.prx` and `libfmodstudio.prx.guest.prx` under `app0/`, and the title gets past the `dlopen` without copying anything. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-11 21:33:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T21:33:55Z.


With #3850 (--module-dir .) the dlopen("/app0/libfmod.prx") failure from this issue is gone on Windows (details on #3850). Hades (PPSA03355) then gets as far as opening ~1200 files, mounting its save data and compiling ~220 shaders (I did not time it) and stops on the render thread, with the same result in two runs of up to 90 s:

FATAL: unhandled exception 0xc0000005 on thread 'RenderThread'
  rip libc.prx.guest.prx+0x13a15   write of 0x0
  rax 0  rbx 0  rcx 0x18  rdx 0x1830  rdi 0  rsi 0x250172960
  [rsi] 0x80 0xaaaaaaac00000000 0x80 0xaaaaaaac00000000 ...   (the source)

The caller is a row-copy loop at app.exe+0x318059: rdi = base + offset, rsi = source, rdx = [rsp+0x78] bytes (0x1830), where the destination base is read from the loop's frame at [rsp+0x10] and is 0 here, so the first memcpy writes to a null pointer. The source holds a repeating 0x80, 0xaaaaaaac00000000 pattern.

With APS5_TRACE_MEMORY=1 the last memory calls before the fault are four direct-memory allocations that all succeed (256 MiB at 0x300000000, 3 GiB at 0x310000000, 64 MiB at 0x3d0000000, 256 MiB at 0x3d4000000), so a failing direct-memory map is not visible there; a failing flexible-memory or other call would not be traced. Not established: where the null base comes from (an API of ours that returned a null pointer or an error, or a title-side value), and whether this is a GPU-side mapping (the copy looks like a row-by-row upload). I am not looking at the GPU side; that is for the GPU session.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114021651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6114021651). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T21:33:55Z. --- With #3850 (`--module-dir .`) the `dlopen("/app0/libfmod.prx")` failure from this issue is gone on Windows (details on #3850). Hades (PPSA03355) then gets as far as opening ~1200 files, mounting its save data and compiling ~220 shaders (I did not time it) and stops on the render thread, with the same result in two runs of up to 90 s: ``` FATAL: unhandled exception 0xc0000005 on thread 'RenderThread' rip libc.prx.guest.prx+0x13a15 write of 0x0 rax 0 rbx 0 rcx 0x18 rdx 0x1830 rdi 0 rsi 0x250172960 [rsi] 0x80 0xaaaaaaac00000000 0x80 0xaaaaaaac00000000 ... (the source) ``` The caller is a row-copy loop at `app.exe+0x318059`: `rdi = base + offset`, `rsi = source`, `rdx = [rsp+0x78]` bytes (0x1830), where the destination base is read from the loop's frame at `[rsp+0x10]` and is 0 here, so the first `memcpy` writes to a null pointer. The source holds a repeating `0x80, 0xaaaaaaac00000000` pattern. With `APS5_TRACE_MEMORY=1` the last memory calls before the fault are four direct-memory allocations that all succeed (256 MiB at `0x300000000`, 3 GiB at `0x310000000`, 64 MiB at `0x3d0000000`, 256 MiB at `0x3d4000000`), so a failing direct-memory map is not visible there; a failing flexible-memory or other call would not be traced. Not established: where the null base comes from (an API of ours that returned a null pointer or an error, or a title-side value), and whether this is a GPU-side mapping (the copy looks like a row-by-row upload). I am not looking at the GPU side; that is for the GPU session. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-11 21:38:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T21:38:25Z.


Follow-up to the render-thread fault above: it is intermittent and not caused by #3850's layout. With the manual workaround layout (relinked without --module-dir, libfmod.prx.guest.prx and libfmodstudio.prx.guest.prx copied from app0/prx to app0/), two 90 s runs on the same build: one ran to the limit, one faulted on the RenderThread at the same libc.prx.guest.prx+0x13a15. With --module-dir . it faulted in 2 of 2 runs. Another run on main c5da8233a with the workaround layout (the GPU session, 120 s) did not fault. So the stop is timing-dependent; I have not found why.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114061829 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6114061829). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T21:38:25Z. --- Follow-up to the render-thread fault above: it is intermittent and not caused by #3850's layout. With the manual workaround layout (relinked without `--module-dir`, `libfmod.prx.guest.prx` and `libfmodstudio.prx.guest.prx` copied from `app0/prx` to `app0/`), two 90 s runs on the same build: one ran to the limit, one faulted on the `RenderThread` at the same `libc.prx.guest.prx+0x13a15`. With `--module-dir .` it faulted in 2 of 2 runs. Another run on `main` c5da8233a with the workaround layout (the GPU session, 120 s) did not fault. So the stop is timing-dependent; I have not found why. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-11 21:39:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T21:39:54Z.


Where the null destination in the memcpy at app.exe+0x318059 comes from, read from the relinked image (static disassembly with objdump, no run of the crash itself; my own 120 s run with the module copies reached the same point, saving and textures, but did not crash in that run):

  • The row-copy loop is the texture-upload path of the title's renderer; its failure string is Source texture offset beyond passed data size. The destination base [rsp+0x10] is set at app.exe+0x317f1c as *(*out) where out is filled by the callee at app.exe+0x32a8e0.
  • That callee allocates through a global allocator object (call at +0x32aa30, rdi = the global at 0x1424bf150) and, when the allocator returns non-zero, logs a message from the engine's Prospero renderer source (Prospero.cpp, line 0x3f0 = 1008) with the text Failed to allocate memory for texture, sets the result to 0, and returns. The caller does not check it and copies into the null base.
  • So the null is not a pointer one of our APIs returned directly: it is the title's own allocation failure, and the copy crashes because the failure is unchecked. Which request fails and why (size, alignment, the underlying direct-memory or flexible-memory call that returned an error) I have not established; the four direct-memory allocations in the APS5_TRACE_MEMORY list above all succeed, so the failing call is another one.

Suggested next step for whoever continues (not done): log the arguments and return value of the allocator call at +0x32aa30 (or break on the error log at +0x32aa55, under the game lock) and the last sceKernel*Memory* calls before it, to see the requested size against what sceKernelAvailableDirectMemorySize reports. The offsets belong to this relink of main c5da8233a and shift with the build.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114077811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6114077811). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T21:39:54Z. --- Where the null destination in the `memcpy` at `app.exe+0x318059` comes from, read from the relinked image (static disassembly with `objdump`, no run of the crash itself; my own 120 s run with the module copies reached the same point, saving and textures, but did not crash in that run): - The row-copy loop is the texture-upload path of the title's renderer; its failure string is `Source texture offset beyond passed data size`. The destination base `[rsp+0x10]` is set at `app.exe+0x317f1c` as `*(*out)` where `out` is filled by the callee at `app.exe+0x32a8e0`. - That callee allocates through a global allocator object (call at `+0x32aa30`, `rdi` = the global at `0x1424bf150`) and, when the allocator returns non-zero, logs a message from the engine's Prospero renderer source (`Prospero.cpp`, line `0x3f0` = 1008) with the text `Failed to allocate memory for texture`, sets the result to 0, and returns. The caller does not check it and copies into the null base. - So the null is not a pointer one of our APIs returned directly: it is the title's own allocation failure, and the copy crashes because the failure is unchecked. Which request fails and why (size, alignment, the underlying direct-memory or flexible-memory call that returned an error) I have not established; the four direct-memory allocations in the `APS5_TRACE_MEMORY` list above all succeed, so the failing call is another one. Suggested next step for whoever continues (not done): log the arguments and return value of the allocator call at `+0x32aa30` (or break on the error log at `+0x32aa55`, under the game lock) and the last `sceKernel*Memory*` calls before it, to see the requested size against what `sceKernelAvailableDirectMemorySize` reports. The offsets belong to this relink of `main` c5da8233a and shift with the build. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-12 04:57:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T04:57:41Z.


Re-check for PPSA03355 (this issue) and PPSA03490 on main ceb342b94 (no open PR), Windows 10, GCC, one 60 s run each: both still fault at the title's libc.prx.guest.prx+0x141b0 with a read of 0xffffffffffffffff (03355: rax/rdx 0x80020002; 03490: rax 0xdeadbeefcafebabe). Import audit: 0 absent imports for both. Posted here instead of a new issue.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118026914 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6118026914). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T04:57:41Z. --- Re-check for PPSA03355 (this issue) and PPSA03490 on `main` `ceb342b94` (no open PR), Windows 10, GCC, one 60 s run each: both still fault at the title's `libc.prx.guest.prx+0x141b0` with a read of `0xffffffffffffffff` (03355: `rax`/`rdx` `0x80020002`; 03490: `rax` `0xdeadbeefcafebabe`). Import audit: 0 absent imports for both. Posted here instead of a new issue. AI-assisted (Claude Code).
SandstromPL commented 2026-10-12 05:26:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-12T05:26:30Z.


@xXPBSXx ceb342b94 (#4240, 02:00Z) predates #3850, which merged at 03:07Z as 26d87eec2. On that build --module-dir . cannot convert root-level modules, so libfmod.prx and libfmodstudio.prx stay out of app0/, dlopen("/app0/libfmod.prx") fails with 0x80020002 (the rax/rdx you see), and the title's libc takes its fatal path at +0x141b0. On main at or after 26d87eec2, relinking with --windows --registry --module-dir . (the two modules only in the game root, not also in prx/) should match your #3850 test on c5da8233a.

PPSA03490 reaches the same libc fatal path from a different cause (Unreal LowLevelFatalError, rax 0xdeadbeefcafebabe), which #4238 tracks.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118309574 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6118309574). Originally posted by [SandstromPL](https://github.com/SandstromPL) on 2026-10-12T05:26:30Z. --- @xXPBSXx `ceb342b94` (#4240, 02:00Z) predates #3850, which merged at 03:07Z as `26d87eec2`. On that build `--module-dir .` cannot convert root-level modules, so `libfmod.prx` and `libfmodstudio.prx` stay out of `app0/`, `dlopen("/app0/libfmod.prx")` fails with `0x80020002` (the `rax`/`rdx` you see), and the title's libc takes its fatal path at `+0x141b0`. On `main` at or after `26d87eec2`, relinking with `--windows --registry --module-dir .` (the two modules only in the game root, not also in `prx/`) should match your #3850 test on `c5da8233a`. PPSA03490 reaches the same libc fatal path from a different cause (Unreal `LowLevelFatalError`, `rax` `0xdeadbeefcafebabe`), which #4238 tracks. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-12 08:53:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T08:53:40Z.


Confirmation for the Hades relink line, tested on 32e62f2f7 (upstream/main, contains #3850 26d87eec2 and 773f8de7b; Windows 10, GCC Release):

  • Fresh work directory (_rA9), relinker --windows --registry --module-dir . on the reconstructed ELF folder (libfmod.prx and libfmodstudio.prx in its root, sce_module with 6 more): 8 modules convert, relinker exit 0, import audit absent 0 (470 implemented, 11 stub, 252 module-provided imports).
  • Two runs of 150 s with that build's libs: no fatal, no stop line, 13 and 14 lines on stderr, about 1680 on stdout, in both runs. So the --module-dir . layout runs here; I did not capture a log line showing the dlopen of the two fmod modules (the log has no libfmod lines), so "dlopen ok" is inferred from the clean start and the converted registries (app.libfmod.prx.guest.prx.registry.json, app.libfmodstudio...), not shown directly. I also did not judge picture or sound.
  • This differs from my earlier ceb342b94 sweep, which predates #3850, as you said. Separately, Hades still showed an intermittent RenderThread null write (libc.prx+0x13a15) in about 2 of 8 earlier 150 s runs on a main from before this one (tracked in #3209); it did not occur in these two.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6120956417 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6120956417). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T08:53:40Z. --- Confirmation for the Hades relink line, tested on `32e62f2f7` (upstream/main, contains #3850 `26d87eec2` and `773f8de7b`; Windows 10, GCC Release): - Fresh work directory (`_rA9`), `relinker --windows --registry --module-dir .` on the reconstructed ELF folder (`libfmod.prx` and `libfmodstudio.prx` in its root, `sce_module` with 6 more): 8 modules convert, relinker exit 0, import audit `absent 0` (470 implemented, 11 stub, 252 module-provided imports). - Two runs of 150 s with that build's libs: no fatal, no stop line, 13 and 14 lines on stderr, about 1680 on stdout, in both runs. So the `--module-dir .` layout runs here; I did not capture a log line showing the `dlopen` of the two fmod modules (the log has no `libfmod` lines), so "dlopen ok" is inferred from the clean start and the converted registries (`app.libfmod.prx.guest.prx.registry.json`, `app.libfmodstudio...`), not shown directly. I also did not judge picture or sound. - This differs from my earlier `ceb342b94` sweep, which predates #3850, as you said. Separately, Hades still showed an intermittent `RenderThread` null write (`libc.prx+0x13a15`) in about 2 of 8 earlier 150 s runs on a main from before this one (tracked in #3209); it did not occur in these two. AI-assisted (Claude Code).
SandstromPL commented 2026-10-12 10:18:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-12T10:18:45Z.


Thanks for confirming on 32e62f2f7.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6122272965 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2724#issuecomment-6122272965). Originally posted by [SandstromPL](https://github.com/SandstromPL) on 2026-10-12T10:18:45Z. --- Thanks for confirming on 32e62f2f7.
Sign in to join this conversation.
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#2724
No description provided.