Solana memory checks could break older Anchor program transactions
Anchor 1.2.2 fixes redundant writes after cross-program ownership transfers that fail under Solana's new memory rules; Loader V3 operators must redeploy before mainnet activation.

Outputs
Anchor 1.2.2 skips account writes when bytes are unchanged after an ownership transfer
Older Anchor code fails under Solana's new memory rules after a program gives up write authority
Anza engineer Alexander Meißner filed the memory rules proposal on January 30
Direct mapping eliminates up to four account copies per instruction with one cross-program call
Anza's tracker spaces memory checks and the mapping switch one epoch apart on testnet and devnet
Solana's incoming memory-accountability rules can cause transactions on older Anchor-based programs to fail when one program hands ownership of an account to another mid-call, according to a patch documented in the Anchor 1.2.2 changelog and a runtime proposal authored by Anza engineer Alexander Meißner.
The failure mode is narrow but real. In the case described in the Anchor patch, a program calls a second program and transfers ownership of an account during that call. When the first program finishes, older Anchor code attempts to write the account data back even when the bytes have not changed. Solana's existing runtime tolerates that write. Under the new rules, the transaction fails, because the first program has already surrendered its write authority over the account.
The patch author reports that programs which delegated accounts this way encountered the error during production replay. Not every transaction on an affected app breaks at once — a transaction that takes the affected path can fail while the app's other transactions continue to execute normally, which makes the bug harder to detect through routine monitoring.
What does Anchor 1.2.2 change?
The fix, shipped in Anchor 1.2.2, compares account data after an ownership change and skips the redundant write when the bytes match. For teams maintaining affected programs, the remediation path is straightforward but not free: rebuild the program against the updated framework and test before the new rules activate.
Deployment adds an operational wrinkle. For a program deployed through Solana's upgradeable Loader V3, only the party authorized to update the on-chain code can push the rebuilt binary. An app team that composes with someone else's program — a common pattern on Solana — cannot fix this itself. It must wait for that program's operator to redeploy, which converts a technical patch into a coordination problem with an external dependency and its own timeline.
How thorough was the pre-flight check?
Anza did not ship the change blind. Meißner wrote in the original runtime proposal that the team replayed mainnet traffic before activation, and the proposal states that most developers whose apps failed in that exercise were contacted and have since deployed fixes.
The coverage has a structural limit. Replay validates only the instruction paths that appeared in the sampled transactions. A rarely used code path can escape detection entirely if the transactions Anza replayed never exercised it. Teams with long-tail transaction flows — administrative functions, edge-case liquidations, legacy integrations — carry residual risk that replay did not surface.
Why the rollout split into two switches
Meißner's January 30 proposal records a pragmatic decision by the developers of the Agave and Firedancer validator clients: split the original plan so earlier work could ship even if a later part needed more time.
In Agave's implementation discussion, Meißner described a separate testing problem. Bundling the new memory rules together with the copy-elimination change made it difficult to distinguish intended behavioral changes from mistakes during validation. Giving the two changes separate feature switches let developers test the memory rules while the old copying path remained in place, isolating variables before both went live.
Where the copies go
The economics driving the change are computational. In the old execution path, a validator copies account data into a program's virtual machine and copies it back when the program finishes. A call to another program adds another round trip. Meißner's proposal counts up to four copies for a single instruction containing one cross-program call. With direct mapping enabled, the virtual machine reads those account bytes where they already reside, eliminating the copying overhead.
Anza's tracker schedules the memory checks and the direct-mapping switch one epoch apart on both testnet and devnet. The sequencing matters for timing expectations: on mainnet, the date affected apps must watch is the activation of the memory checks, which is when transaction failures begin. Validators realize the copy savings later, when the mapping switch goes live.
The practical deadline for program operators is therefore fixed by the mainnet activation date of the memory checks, not by the mapping rollout — and apps depending on third-party programs should confirm their upstream operators have a redeployment plan well before that epoch boundary.
via cryptonews.net (Source)
More from Nathan Brooks
Show full bio
Market editor covering money, funding and market shifts around crypto and web3 industry at Mempool Brief.
1,753 articles