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
{{ message }}
This repository has been archived by the owner on May 11, 2020. It is now read-only.
i try to exec the wast file and get disasm: stack underflow.
After i open debugMode and add extra logger print, and find out the error occurs in ops.End or ops.Else case:
curDepth is -1. prevDepth is 2. elemsDiscard is -3
Seems like set_local op push -1 to the top of stack. And then next op is op.end, makes the curDepth = -1, and elemsDiscard becomes -3, which throw ErrStackUnderflow.
What are the possible problems for this error? How can i solve it?
The text was updated successfully, but these errors were encountered:
lowesyang
changed the title
How to solve failed to init wagon interpreter: disasm: stack underflow
How to solve disasm: stack underflow when call exec.NewVM(module)Jul 19, 2019
i try to exec the wast file and get
disasm: stack underflow
.After i open
debugMode
and add extra logger print, and find out the error occurs inops.End or ops.Else
case:curDepth is
-1
. prevDepth is2
. elemsDiscard is-3
Seems like
set_local
op push-1
to the top of stack. And then next op isop.end
, makes thecurDepth = -1
, andelemsDiscard
becomes-3
, which throwErrStackUnderflow
.What are the possible problems for this error? How can i solve it?
The text was updated successfully, but these errors were encountered: