Skip to content

Trace test vectors Preimage accumulation invocation. #56

@mikirov

Description

@mikirov

I am trying to run an accumulation invocation on the preimages from:

👉 https://github.com/davxy/jam-test-vectors/blob/84213c3fa619f26d77f61601a7dd77048f6bbf7a/traces/preimages_light/00000002.json

The blob itself is parsed as a valid SPI program.
However, there are two uninitialized zones in the stack region, causing read calls to return zeros. These zeros get assigned to registers 7–10, so when the FETCH host call is invoked, those registers contain zero.

Because of this, the Fetch host call returns without writing to RAM. The program then invokes the JIP-1 LOG host call with message:

“Panic handler invoked!”

This behavior occurs both in my implementation and in Anan-As’ PVM:

👉 https://pvm.fluffylabs.dev/?#/

Execution Dump

https://gist.github.com/mikirov/dd5cb849d15e17d71fbf0661259b2f42

SPI Program Used

https://gist.github.com/mikirov/84ebde727761203a8b4a0a1e9d670e62

Request

Execution traces from other PVM implementations are welcome to help confirm whether this behavior is the expected result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions