Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Stack error log on 1.18.0 release #35003

Closed
acheroncrypto opened this issue Jan 29, 2024 · 2 comments · Fixed by #35038
Closed

Stack error log on 1.18.0 release #35003

acheroncrypto opened this issue Jan 29, 2024 · 2 comments · Fixed by #35038
Labels
community Community contribution

Comments

@acheroncrypto
Copy link
Contributor

Problem

Building programs with cargo-build-sbf results in the following error log:

Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17ha3a75fe06f2a2af4E Stack offset of 4584 exceeded max offset of 4096 by 488 bytes, please minimize large stack variables

The compilation still works but the error message can be confusing to people.

I'm able to reproduce this issue from any program while using 1.18.0 version for both solana-program and solana-cli.

@jedusor1
Copy link

Error: Function ZN112$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$13visit_for_abi17h45201742ade77720E Stack offset of 4584 exceeded max offset of 4096 by 488 bytes, please minimize large stack variables

Same here, can confirm this is still and issue. Then the solana program build step after doesn't seem to see the file being referenced after that....very confusing

@joncinque
Copy link
Contributor

joncinque commented Feb 28, 2024

Please upgrade to a newer version of solana-program, the fix is part of 1.18.2 and above.

Edit: if you're still having the issue, you can create a new issue with the full setup

@solana-labs solana-labs locked as resolved and limited conversation to collaborators Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants