Comments (5)
This is a bit strange because stack output should always have at least 16 items (i.e., STACK_TOP_SIZE
) in it. This is because we build stack outputs from the stack here and the stack should always have at least 16 items.
So, the bug is either in the processor and for some reason stack depth drops to below 16 at some point, or we are initializing StackOutputs
somewhere else - and that's causing the issue.
If it is the latter, we should do the following: in the constructors of StackOutput
pad the input items with ZERO
to ensure that StackOutputs
always has at least 16 elements. One thing to pay attention to is the order of elements (I don't remember whether we'd need to pad from the front or from the back).
from miden-vm.
So, the bug is either in the processor and for some reason stack depth drops to below 16 at some point, or we are initializing
StackOutputs
somewhere else - and that's causing the issue.If it is the latter, we should do the following: in the constructors of
StackOutput
pad the input items withZERO
to ensure thatStackOutputs
always has at least 16 elements. One thing to pay attention to is the order of elements (I don't remember whether we'd need to pad from the front or from the back).
Turns out the issue was related to construction of the StackOutputs
struct. Padding appropriately and ordering fixed the issue.
from miden-vm.
Should we still update the StackOutputs
constructor?
from miden-vm.
Should we still update the
StackOutputs
constructor?
Yes I think that makes sense. Removes a potential footgun.
from miden-vm.
Closed by #1010.
from miden-vm.
Related Issues (20)
- stdlib: procedure to check if a given merkle path corresponds to the first/last element of a tree HOT 3
- Support for module aliases in Miden assembly HOT 1
- Same exported MAST in different module resolution HOT 2
- Consider adding instructions to read memory of the parent context HOT 3
- Finish tiered Sparse Merkle Tree HOT 1
- Support to convert binary MASM to text HOT 1
- SMT sequential inserts fail HOT 2
- Implement `smt_peek` decorator HOT 1
- Implement `Debug` and `Display` on `TraceLenSummary` HOT 3
- Integrate Falcon DSA into Miden VM HOT 5
- Tiered SMT delete soundness issue HOT 2
- Implement handling of the last tier of TSMT in MASM HOT 1
- RFC: Extend the behavior of load/store ops to allow addressing all elements of a word HOT 6
- Consider removing unreachable code HOT 5
- Enable compiling modules without library paths HOT 9
- Replace AdviceProvider with Host interface HOT 12
- Expand capabilities of the `debug` instruction HOT 1
- Remove `checked` variants of u32 MASM operations HOT 1
- Semantics of `ext2mul`
- Faster modular reduction for Falcon signature verification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miden-vm.