loader test malformed_relocations_return_error_and_release_mapping fails about 1 run in 3 #281

Closed
opened 2026-11-27 08:47:24 +00:00 by github-bot · 3 comments
Owner

@⁠maaalrey on GitHub · 2026-11-27 08:43 UTC · original

native::image::tests::malformed_relocations_return_error_and_release_mapping fails intermittently on main (5 failures in 12 runs of cargo test -p victory-loader --lib on arm64). Step 3 reports failed 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).

**@⁠maaalrey** on GitHub · 2026-11-27 08:43 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/281) `native::image::tests::malformed_relocations_return_error_and_release_mapping` fails intermittently on `main` (5 failures in 12 runs of `cargo test -p victory-loader --lib` on arm64). Step 3 reports `failed 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:47:25 +00:00
Author
Owner

@⁠maaalrey on GitHub · 2026-11-27 08:44 UTC · original

/claim

**@⁠maaalrey** on GitHub · 2026-11-27 08:44 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/281#issuecomment-7213859940) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 08:44 UTC · original

Claimed by @⁠maaalrey. Open a draft pull request with Refs #281 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 08:44 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/281#issuecomment-7213863107) Claimed by @⁠maaalrey. Open a draft pull request with `Refs #281` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 11:46 UTC · original

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.

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 11:46 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/281#issuecomment-7217450183) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.