fix(libc): keep the guest %ld argument 64-bit in the err test #7905
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7905"
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 Rajkamalcode on 2026-10-19T13:07:51Z.
What
guest_errfails on Windows at thevwarnx stack and floating argumentscheck: the expected output isprog: 1 2 3 4 5 6 7 8 2.50 s 123456789, but the formatted value came out as2048822856981=0x1DD075BCD15. The guest is LP64, so its%ldconsumes a full 64-bit vararg slot; the test passed123456789Land on LLP64 hosts (Windows) alongis 32 bits wide, which leaves the upper half of that slot undefined (the low half was0x75BCD15= 123456789 in the observed output). The argument is now 64-bit, which is a no-op on LP64 hosts.Tested
Windows 11 (22635.5305), MinGW-w64 GCC 15.2.0 (winlibs), Ryzen 5 5600X, based on
mainf3bb6a4f8. WithGuestErr.cppatmain,ctest --test-dir build -R '^guest_err$'fails withfailed: vwarnx stack and floating arguments(exit 0xc0000409); with this change it passes. An earlier run of the whole guest family was 501/502 on this machine, the single failure beingguest_kernel_sys, since fixed by #7824 (merged).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)