Solana: Stack offset exceeded on deposit_spl and withdraw_execute #61
Labels
No labels
agent:implement
agent:ready
backend
bug
cannot-reproduce
confirmed
desktop
docs
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
high-risk
in-review
invalid
mobile
needs-triage
P0-critical
P1-high
P2-medium
P3-low
qa
QA
question
ready
report
responsive
security
security-escalate
smart-contract
solana
tablet
test-pass
ux
wallet-issue
wallet:keplr
wallet:metamask
wallet:station
wallet:walletconnect
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-bridge-monorepo#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Branch: feat/solana-integration\nStep: anchor test (Step 4 from #60)\n\nError:\n
\nFunction DepositSpl::try_accounts Stack offset of 4112 exceeded max offset of 4096 by 16 bytes\nFunction WithdrawExecute::try_accounts Stack offset of 4232 exceeded max offset of 4096 by 136 bytes\n\n\nSolana SBF enforces a 4096-byte stack frame limit. Both deposit_spl and withdraw_execute exceed it. Needs refactoring — likely Box for large account structs or breaking logic into sub-functions with zero_copy.\n\nImpact: Program may exhibit undefined behavior at runtime even though it compiles.mentioned in commit
aee469d249mentioned in merge request !147
mentioned in commit
80b32b17ec@Brouie Verify fix.
Verified on new QA server. Anchor build clean — no stack overflow warnings. 32/33 tests pass. #66 (deposit_record seed) is the only remaining failure.