loader test malformed_relocations_return_error_and_release_mapping fails about 1 run in 3 #281
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by maaalrey on 2026-11-27T08:43:56Z.
native::image::tests::malformed_relocations_return_error_and_release_mappingfails intermittently onmain(5 failures in 12 runs ofcargo test -p victory-loader --libon arm64). Step 3 reportsfailed maps must release their range: mapping 0x4000 bytes of image at 0x1…: mach_vm_allocate failed: kern_return 3.Cause: the test picks its forced address by allocating anywhere and releasing it. That range is the next one handed out, so another test thread's allocation takes it before step 3.
Plan: probe fixed ranges far above where allocations made anywhere go (from
0x5000_0000_0000), so step 3 can only fail if a failed map kept the range. Test-only change; I have it ready (0 failures in 30 runs).Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by maaalrey on 2026-11-27T08:44:05Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T08:44:15Z.
Claimed by @maaalrey. Open a draft pull request with
Refs #281in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T11:46:01Z.
Fixed by #283, which is merged into main: the test now probes the forced range far above where allocations land. Thank you @maaalrey. If the test still fails for anyone on current main, please reopen with the output.