Repository navigation
Restore the vtable pointer of received cache nodes - #229
Merged
Merged
Conversation
Nodes in a cache reply are copied as raw bytes, vtable pointer included. Where processes map the executable at different addresses (a position-independent executable under address-space randomization, as on macOS) that pointer is invalid in the receiver and the first virtual call on a received node crashes: two-process runs failed on macOS this way. Fixed-address executables (readelf type EXEC, the usual Linux HPC build) are unaffected. The restore was already written and commented out; enable it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
trquinn
requested changes
Sep 28, 2026
trquinn
left a comment
Member
There was a problem hiding this comment.
Please correct the indicated comment to prevent confusion in the future. Thanks,
The saved pointer is now used by unpackSingle(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
trquinn
approved these changes
Sep 29, 2026
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.
Nodes in a node-cache reply are copied as raw bytes, vtable pointer included. Where processes map the executable at different addresses (a position-independent executable under address-space randomization, as on macOS, where every arm64 executable is PIE), that pointer is invalid in the receiving process and the first virtual call on a received node crashes. Two-process runs on macOS fail this way at the first remote fetch; single-process runs are unaffected. Fixed-address executables (readelf type EXEC, the usual Linux HPC build) never see it because every process loads the binary at its link address.
unpackSingle()already contained the restore, commented out with a note about an old PGI problem; this enables it.teststepenergy and restart pass at 1x2, 2x2, 3x2 and 2x1 processes on macOS and on Anvil with it.Orthogonal to the node-cache work in #228, which includes this commit; merging this first shrinks that diff.
🤖 Generated with Claude Code