Friday, December 4, 2026SubscribeMastheadAbout
Cali ReporterCalifornia · National · West Coast · Good News

Advertisement

Business

Solana's Memory Checks Expose Older Anchor Code Failures

Solana's planned memory checks could cause some app transactions to fail, as demonstrated by replayed mainnet traffic. This issue affects older code built with the Anchor framework.

Portrait of Grace Lindqvist
Markets & Wall Street · December 1, 2026
Share

AI-generated stock-style editorial illustration; not a photograph of the reported event.
AI-generated stock-style editorial illustration; not a photograph of the reported event.

Solana's planned memory checks could make some app transactions fail even when the rest of the app keeps working. Developers have already seen one example in replayed mainnet transactions. Older code built with the Anchor framework could try to save an account’s data after handing control of that account to another program. Anza, which develops Solana’s Agave validator software, resumed general mainnet feature activations on November 19. Its November 20 feature tracker lists the memory checks and a separate change called account data direct mapping as pending, with no mainnet activation epoch or slot for either (1). [1]

The checks can reject a write to an account the program no longer owns, even while validators still use copied data. Where an Anchor instruction can fail, the memory checks can reject a read that runs past the end of an account or a write to an account the program cannot modify. They also change the stack layout older programs use to hold temporary data. Code that relied on that layout can behave differently after the change (1). [1]

One documented failure involves how Solana programs hand accounts to one another within a transaction. In the case described in an Anchor patch, 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 stayed the same. The old runtime let that attempt pass. Under Solana’s new rules, the attempt fails because the first program has already given up the right to write to that account (1). [1]

The Anchor 1.2.2 changelog includes the fix. It compares the data after ownership changes and skips the write if the bytes match. Teams maintaining affected programs can rebuild and test with the updated framework. For a program deployed through Solana’s upgradeable Loader V3, the party authorized to update the on-chain code must deploy that build (1). [1]

Advertisement

Solana’s memory checks and account data direct mapping are currently pending activation on the mainnet, as noted in Anza’s November 20 feature tracker. These updates are part of ongoing efforts to enhance the network’s performance and security. The memory checks aim to prevent invalid writes to accounts that a program no longer owns, even as validators continue to use copied data. This functionality was tested by replaying mainnet traffic, revealing potential issues with older Anchor framework code. Specifically, an Anchor instruction could fail if it attempted to write data back to an account after transferring ownership to another program within a transaction. Anza resumed general mainnet feature activations on November 19, but no activation epoch or slot has been set for either the memory checks or direct mapping. This delay indicates that the implementation is still under review and testing, with further validation required before deployment. [1]

The Anchor 1.2.2 changelog includes a fix for the described failure scenario. It compares data after ownership changes and skips the write if the bytes match, preventing unnecessary writes. This fix is critical for programs that delegate account ownership during transactions. However, deploying the updated framework requires the party authorized to update on-chain code to do so, especially for programs using Solana’s upgradeable Loader V3. Teams maintaining affected programs must rebuild and test with the updated framework. Additionally, the original runtime proposal by Anza engineer Alexander Meißner outlines that the team replayed mainnet traffic to identify potential issues. Most developers whose apps would have failed in this exercise were contacted and made necessary fixes. However, rarely used instruction paths may escape these checks if the replayed transactions did not include them. [1]

In January 30’s memory rules proposal, Meißner explained that the Agave and Firedancer validator clients split the original plan to allow earlier work to ship even if later parts required more time. This approach enabled incremental improvements without delaying the entire project. In Agave’s implementation discussions, Meißner described a separate testing challenge. Combining the new rules with the copy change made it difficult to distinguish intended execution changes from errors. To address this, the two changes were given separate switches, allowing developers to test the new rules while keeping the old copying path active. This separation is crucial for ensuring that updates are thoroughly validated before deployment on mainnet. Anza’s tracker shows that memory checks and the mapping switch are one epoch apart on testnet and devnet, with the mainnet activation of memory checks being the key date to watch for affected applications. [1]

Solana's planned memory checks could make some app transactions fail even when the rest of the app keeps working. Developers have already seen one example in replayed mainnet transactions. Older code built with the Anchor framework could try to save an account’s data after handing control of that account to another program. This issue was identified during a replay of mainnet traffic, which exposed a specific failure in how Anchor code handles account handoffs within a transaction (Source ID: 1). [1]

Advertisement

The checks can reject a write to an account the program no longer owns, even while validators still use copied data. One documented failure involves how Solana programs hand accounts to one another within a transaction. In the case described in an Anchor patch, 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 stayed the same (Source ID: 1). [1]

The Anchor 1.2.2 changelog includes the fix. It compares the data after ownership changes and skips the write if the bytes match. Teams maintaining affected programs can rebuild and test with the updated framework. For a program deployed through Solana’s upgradeable Loader V3, the party authorized to update the on-chain code must deploy that build (Source ID: 1). [1]

Sources

CryptoSlate

Prepared with AI assistance from the cited sources.

The Cali Reporter newsletter

The stories worth your time.

California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.

By joining, you agree to receive the Cali Reporter newsletter. Unsubscribe at any time. Privacy policy.

More in Business

Advertisement