Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access violation in stack frame 5 at address 0x200005b50 of size 8 #3089

Closed
mhxw opened this issue Jul 17, 2024 · 1 comment
Closed

Access violation in stack frame 5 at address 0x200005b50 of size 8 #3089

mhxw opened this issue Jul 17, 2024 · 1 comment
Labels

Comments

@mhxw
Copy link

mhxw commented Jul 17, 2024

Hello,

I encountered an issue while deploying the mpl-hybrid program on the Solana Devnet. The initEscrowV1 function works successfully, but I am getting an error with the captureV1 function. Below are the versions I am using and the error message.

Thank you for your assistance.

  • repo

https://github.com/metaplex-foundation/mpl-hybrid/
https://github.com/metaplex-foundation/mpl-hybrid/blob/main/programs/mpl-hybrid/src/lib.rs#L24
https://github.com/metaplex-foundation/mpl-hybrid/blob/main/programs/mpl-hybrid/src/instructions/capture.rs#L104

  • version
rustc 1.75.0
solana-cli 1.18.8 (src:e2d34d37; feat:3469865029, client:SolanaLabs)
anchor-cli 0.29.0
  • error
SendTransactionError: Simulation failed. 
Message: Transaction simulation failed: Error processing Instruction 0: Program failed to complete. 
Logs: 
[
  "Program <program address> invoke [1]",
  "Program log: Instruction: CaptureV1",
  "Program <program address> consumed 3516 of 200000 compute units",
  "Program <program address> failed: Access violation in stack frame 5 at address 0x200005b50 of size 8"
]. 
@acheroncrypto
Copy link
Collaborator

There is a stack memory regression in Solana 1.18, so I'd recommend using Solana CLI 1.17.22 to match the project's Cargo.lock. You can also Box some of the accounts e.g. escrow which should help the situation.

#2939 should also help the instruction you shared since it uses multiple init_if_needed constraints.

Let's track this issue in the previous related issues to not divert attention: #3060, #2835, anza-xyz/agave#1158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants