guest_jxr_bitio aborts on Windows 11 26200: a caller's locals are wrong after an exception crosses attachISWrite #26048
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by fin-github on 2026-11-23T06:01:42Z.
What happens
guest_jxr_bitioaborts on every run on one Windows machine (Exit code 0xc0000409, 15 of 15 runs) while it passes on the Windows CI job (8ce09de9ef, same WinLibs release):Where it goes wrong
RunAttachWriteincore/libs/tests/GuestJxrBitIo.cpp. Under gdb (breakpoint onAttachmentPosition, printingrdi,rsiandattachingStream):attachISWrite_nid_postfixcalls and the throwing call passstream = 0x5fda70,position = 0x5ffaf8(&io->referenceOffset), matchingattachingStream.std::invalid_argumentpropagates out ofattachISWrite_nid_postfixand is caught inRequireInvalidArgument.attachISWrite_nid_postfix(io, &stream)afterstream.getPosition = nullptr, still reachesAttachmentPosition, withstream = 0x5ffab0andposition = 0x10028. So&streamandioare wrong after the catch.0x5ffab0 - 0x5fda70 = 0x2040, about the size ofRunAttachWrite'sstoragearray.So after the exception crosses the System V ABI frames (
AttachmentPosition,attachISWrite_nid_postfix, both built with-fno-asynchronous-unwind-tables), the catching frame resumes with a wrong stack or frame pointer.What it isn't
46abbab7c7): withBitIo.cppfrom46abbab7c7^, 5 of 5 still abort.libSceJxr.prx,libc.prx,libstdc++-6.dll,libgcc_s_seh-1.dll,libwinpthread-1.dll.Get-ProcessMitigation -System:UserShadowStack NOTSET).BitIo.cppwith-fasynchronous-unwind-tablesdoes not compile (Error: .seh_handlerdata used outside of .seh_proc block), so that path couldn't be tested.I don't know why CI and other Windows sweeps pass. One difference I can't rule out is the OS build (this machine is 26200; I don't know the runner's).
Title, test or build step
guest_jxr_bitioAnyPS5 commit
d32e214029(main)System
Windows 11 Pro 10.0.26200, AMD Ryzen 5 7600X, 15 GB RAM, WinLibs GCC 15.2.0 r7 (
x86_64-ucrt-posix-seh), WinLibs CMake 4.3.1, Ninja 1.13.2, Release,BUILD_TESTING=ON, fresh clone.Steps to reproduce
AI-assisted: yes