Repository navigation
test: wire up the orphaned exception runtime test - #21
Merged
boykopovar merged 1 commit intoSep 27, 2026
Merged
boykopovar merged 1 commit into
boykopovar merged 1 commit into
Conversation
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>
9 tasks done
This was referenced Oct 10, 2026
Closed
11 tasks done
12 tasks done
12 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17 (partially: wires up
ExceptionRuntime.cpponly; 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 withgdbthat it SIGABRTs on its first statement on plainmain, and passes cleanly once #14's fix is applied on top.ExceptionRuntime.cppexisted complete and working but was never registered inCMakeLists.txt, so it never built or ran.Changes
core/libs/CMakeLists.txt: registeredExceptionRuntime.cppasexception_runtime_tests/exception_runtime, following the existingGuest*.cpptest pattern, linked againstlibc.Testing (Linux, GCC)
ctest: 23/31. The 7 pre-existing failures plusexception_runtime(8 total), which fails until fix(exceptions): interpose libstdc++ ABI on Linux so the project's own unwinder drives it #14 merges.🤖 Generated with Claude Code