Repository navigation
Conversation
The kyty code throws through libc's unwinder, which could not walk its SEH frames without the personality table or see the driver's DWARF frames under the long section name. Link the table into kyty consumers, rename the driver's section, and contain the stop as on Linux.
Owner
|
Merged into AnyKyty as |
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.
What
On Windows a translation stop inside a compile-ahead job ended the run even with
KYTY_FALLBACKS=1(#297). The Kyty code (clang, native SEH unwind data) throws through libc's__cxa_throw, and libc's unwinder gave up on two things:.sehgccpersonality table. That table (SehPersonalities.cpp) was only linked on SEH toolchains, solibSceAgcDriver.prxand the Kyty test executables never had it. It is now built on every MinGW toolchain and attached toKyty::gpuwhen the libraries use DWARF exceptions.libSceAgcDriver.prxitself: its.eh_framewas only renamed to.ehframin the NID-patched copy, so the unpatched copy the tests load was not unwound. It now getsconfigure_windows_unwindlike the other libraries.With both,
Fallback::Containable()returns true on Windows as on Linux,kyty_shim_fallbackandkyty_shim_speculative_compilerun on Windows too, and the Windows-onlyuncontainedmode goes.KYTY_FALLBACKSstays off by default on Windows.Tested
Windows 10, RTX 2070 SUPER, rebased on
8bf7cc52cf. On base both tests end with[libc] unhandled exception 'N6Common13SoftExitErrorE'/terminate called; with this change both pass. All 103kyty_shimtests and the 192 exception, unwind and rethrow tests pass. WithANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer(layer 1.4.363),ctest -R kyty_shimon base and on this change: the loader inserts the layer in both logs, neither has aVUID-error, and both fail the same two tests (kyty_shim_bda_load_forms,kyty_shim_wave_split_written_reads:replay did not complete), which skip on this machine withoutANYPS5_REQUIRE_VULKAN.Grand Theft Auto V (PPSA38500 01.002.001) with
KYTY_FALLBACKS=1: the run used to end at the first compile-ahead stop (#294, about 55 s in). It now runs about 2 minutes, skipping 27 compute shaders that fail to compile, which are now all listed in one run: 26buffer descriptor is not a valid runtime valueand oneVOPC SDWA modifierCFG failure (0x10b76d3854f99f9e). Then the title crashes itself on purpose in a worker thread (mov dword ptr [0], 0x21), probably because of the skipped work.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)