Solana's planned memory checks could break some older Anchor app transactions
Solana's planned memory checks could make some app transactions fail even when the rest of the app keeps working. Developers found one example by replaying real mainnet transactions. Older code built with the Anchor framework, a popular tool for building Solana programs, can try to save an account's data after handing control of that account to another program. Under the new rules, that write would be rejected.
The checks have not gone live on Solana's main network yet. Anza, the company that develops Solana's Agave validator software, resumed general mainnet feature activations on November 19. Its feature tracker, last edited November 20, lists the memory checks and a separate change called account data direct mapping as pending, with no activation date set for either.
Key points at a glance
- Anza's November 20 tracker lists the memory checks (Virtual Address Space Adjustments) and account data direct mapping as pending on Solana mainnet, with no activation epoch or slot for either.
- Replaying mainnet traffic exposed an Anchor account handoff pattern that could fail once the checks activate.
- Anchor 1.2.2 includes a fix that compares account data after ownership changes and skips the write if the bytes match.
- Direct mapping would spare validators from copying account data repeatedly — the old path can copy data up to four times for one instruction that makes one cross-program call.
- The effect of these changes on users' transaction times remains unclear.
What the pending Solana changes would do
The first of the two pending changes tightens how programs read data outside an account's own data and write to accounts the program does not own or cannot modify. It also changes the stack layout — the way older programs hold temporary data. Code that relied on that layout can behave differently after the change.
The second change, account data direct mapping, lets Solana's program virtual machine access account data where it already sits in memory. Today, the old execution path can copy an account's data up to four times for a single instruction that makes one cross-program call — meaning one program calling another inside a transaction. Direct mapping would remove that repeated copying work for validators.
Where an older Anchor transaction can fail
One documented failure, described in an Anchor patch, involves how Solana programs hand accounts to each other within a transaction. One program calls another and transfers ownership of an account during the call. When the first program finishes, older Anchor code tries to write the account data back, even when the bytes have not changed. The old runtime allowed that attempt. Under the new rules, it fails, because the first program has already given up the right to write to that account.
The patch author says programs that delegated accounts this way hit the error in production replay. A transaction that takes this path can fail while the app's other transactions continue to go through.
The fix already shipped in Anchor 1.2.2
The Anchor 1.2.2 changelog includes the fix. It compares the account data after ownership changes and skips the write if the bytes match. Teams maintaining affected programs can rebuild and test with the updated framework, and affected programs need the fix deployed on-chain.
Anza's implementation also split the observable rules from the account-data copying work. That lets developers test the memory changes and separate expected execution differences from unexpected ones before the copying is switched off.
What is confirmed and what is still open
Confirmed from the sources: both feature gates are pending on mainnet with no activation epoch or slot; the Anchor failure mode was observed in replayed mainnet traffic; and the fix is included in Anchor 1.2.2.
Still unclear: how these changes will affect users' transaction times. The source material states that the effect remains unclear and that the diagrammed code paths carry no timing or performance measurement.
Why this matters for Solana apps
Apps built with older versions of Anchor could see certain transactions start to fail once the memory checks activate, even though the rest of the app keeps working. Developers of affected programs have a clear path forward: rebuild with Anchor 1.2.2 and redeploy. Validators stand to benefit from reduced copying work once direct mapping goes live.