You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m observing a regression in v0.31.0 where anchor b no longer emits warnings when the instruction context exceeds the frame stack limit. Previously, a warning was printed when such an overflow was detected.
For example, consider the following instruction context, which is guaranteed to cause an overflow in the frame stack. However, running anchor b on a program containing this context produces no warning:
This issue blocks early detection of potential stack overflow issues in our programs. Please investigate and restore the warning functionality to ensure developers are informed when the frame stack limit is exceeded.
The text was updated successfully, but these errors were encountered:
For example, consider the following instruction context, which is guaranteed to cause an overflow in the frame stack.
It doesn't look like the example you gave should cause an overflow in v0.31 because the init constraint takes a lot less stack space than it did in previous versions (#2939).
It doesn't look like the example you gave should cause an overflow in v0.31 because the init constraint takes a lot less stack space than it did in previous versions
Hm... I admit there might've been a misconfiguration of the solana-cli/anchor configuration (as a result of working around the #3585 issue).
What I did experience was rolling back Anchor from v0.31 to v0.30, deploying it via v0.30 - and, then, facing some stack-frame-overflow-related issues on Devnet. Either v0.30 doesn't emit the warning when it should - or I've just overlooked it 🤷♂.
On another note, it's very impressive how many more accounts we can, now, initialize in an Ix Context in v0.31! And - even more suprprisingly - init_if_needed no longer takes up more space than the simpler init!
I’m observing a regression in
v0.31.0
whereanchor b
no longer emits warnings when the instruction context exceeds the frame stack limit. Previously, a warning was printed when such an overflow was detected.For example, consider the following instruction context, which is guaranteed to cause an overflow in the frame stack. However, running
anchor b
on a program containing this context produces no warning:This issue blocks early detection of potential stack overflow issues in our programs. Please investigate and restore the warning functionality to ensure developers are informed when the frame stack limit is exceeded.
The text was updated successfully, but these errors were encountered: