Skip to content

test: wire up the orphaned exception runtime test - #21

Merged
boykopovar merged 1 commit into
boykopovar:mainfrom
obelisk-complex:test/wire-up-exception-runtime-test
Sep 27, 2026
Merged

boykopovar merged 1 commit into
boykopovar:mainfrom
obelisk-complex:test/wire-up-exception-runtime-test

Conversation

@obelisk-complex

Copy link
Copy Markdown

Closes #17 (partially: wires up ExceptionRuntime.cpp only; the other three files named in that issue need a source-level fix first, not just CMake wiring, and stay orphaned here).

This test will not pass until #14 merges. ExceptionRuntime.cpp's very first case throws a real C++ exception through the system unwinder, which hits the exact same libstdc++ ABI interposition bug #14 fixes: confirmed with gdb that it SIGABRTs on its first statement on plain main, and passes cleanly once #14's fix is applied on top.

ExceptionRuntime.cpp existed complete and working but was never registered in CMakeLists.txt, so it never built or ran.

Changes

  • core/libs/CMakeLists.txt: registered ExceptionRuntime.cpp as exception_runtime_tests/exception_runtime, following the existing Guest*.cpp test pattern, linked against libc.

Testing (Linux, GCC)

🤖 Generated with Claude Code

ExceptionRuntime.cpp existed complete and working but was never
registered in CMakeLists.txt, so it never built or ran. Wired it in
following the existing Guest*.cpp test pattern.

The other three orphaned test files (PthreadStart.cpp, FileStreams.cpp,
Formatting.cpp) were left out: each has genuine bitrot against current
code (a moved header, fseek returning errno instead of throwing on an
invalid whence, and vsnprintf's expected va_list mutation) that needs a
source-level decision, not a CMake wiring fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@boykopovar
boykopovar merged commit fce5889 into boykopovar:main Sep 27, 2026
@MarcZX10 MarcZX10 mentioned this pull request Oct 8, 2026
9 tasks done
hypermoist pushed a commit to hypermoist/AnyPS5 that referenced this pull request Oct 26, 2026
chore(sync): sync fork with upstream boykopovar/AnyPS5 main (2)
Kikoarl pushed a commit to Kikoarl/AnyPS5 that referenced this pull request Nov 18, 2026
…s not know

The command processor stops on a write to a context, shader or uconfig
register that is not in its tables, in a SET_*_REG packet, an indirect
register list or an indirect draw offset, and on an EVENT_WRITE type it does
not list. Planet Zoo stopped on an unknown register (boykopovar#30), and LEGO Builders
Journey on an unknown indirect context register (boykopovar#21).

The empty entries of the three register tables now point to handlers that
ignore the write and report it with one [HACK] line per register, so the
loops that apply the known registers are unchanged. An unknown event type is
ignored the same way, one line per type. The packet lengths come from the
headers, so the rest of the stream is read as before. KYTY_FALLBACKS=0
stops on them as before, naming the register or event; a write of 0 to
context register 0x24a, which Kyty already ignored in indirect lists, is now
ignored in a direct SET_CONTEXT_REG too.

CONTEXT_CONTROL (opcode 0x28) had no handler, so it stopped with
"unknown op". With register loading and shadowing off it is a no-op on the
console, and AnyPS5's driver accepts it that way; it is now accepted, and
stops with its two control words when either is on.
Kikoarl pushed a commit to Kikoarl/AnyPS5 that referenced this pull request Nov 18, 2026
…s not know

The command processor stops on a write to a context, shader or uconfig
register that is not in its tables, in a SET_*_REG packet, an indirect
register list or an indirect draw offset, and on an EVENT_WRITE type it does
not list. Planet Zoo stopped on an unknown register (boykopovar#30), and LEGO Builders
Journey on an unknown indirect context register (boykopovar#21).

The empty entries of the three register tables now point to handlers that
ignore the write and report it with one [HACK] line per register, so the
loops that apply the known registers are unchanged. An unknown event type is
ignored the same way, one line per type. The packet lengths come from the
headers, so the rest of the stream is read as before. KYTY_FALLBACKS=0
stops on them as before, naming the register or event; a write of 0 to
context register 0x24a, which Kyty already ignored in indirect lists, is now
ignored in a direct SET_CONTEXT_REG too.

CONTEXT_CONTROL (opcode 0x28) had no handler, so it stopped with
"unknown op". With register loading and shadowing off it is a no-op on the
console, and AnyPS5's driver accepts it that way; it is now accepted, and
stops with its two control words when either is on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Four complete test files under core/libs/tests/ are never built or run

2 participants