Skip to content

Can't profile block proving #165

@zeegomo

Description

@zeegomo

When I try to profile block proving with

RUST_LOG=info RISC0_INFO=1 RISC0_DEV_MODE=1 just ethereum prove \
  --cache=bin/ethereum/data \
  --block-number=19426587 \
  --profile

it fails with the following error:

[2025-04-23T11:30:37Z INFO  zeth_preflight] Connected to provider that uses client version:
[2025-04-23T11:30:37Z INFO  zeth_preflight] Final chain difficulty: 58750003716598352816469
[2025-04-23T11:30:37Z INFO  zeth] Journal prepared.
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Grabbing blocks and their uncles ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Running block execution engine ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Pre execution validation ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Executing transactions ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Provider-backed execution is Done!
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Saving provider cache ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Gathering initial proofs ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Saving provider cache ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Gathering final proofs ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Saving provider cache ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Gathering ancestor headers ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Saving provider cache ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Collected contracts: 31
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Constructing tries from state proofs...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Extending tries from post-state proofs...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Saving provider cache ...
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] State trie: 560 nodes
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Storage tries: 504 total nodes over 83 accounts
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] Witness now covers 1 blocks.
[2025-04-23T11:30:37Z INFO  zeth_preflight::client] 37 total transactions.
[2025-04-23T11:30:37Z INFO  zeth_preflight] Running from memory (Input size: 700185 bytes) ...
[2025-04-23T11:30:37Z INFO  zeth_preflight] Memory run successful ...
[2025-04-23T11:30:37Z INFO  zeth] Proving ...
[2025-04-23T11:30:37Z INFO  zeth] Computing uncached receipt. This might take some time.
WARNING: proving in dev mode. This will not generate valid, secure proofs.
R0VM[67131] Deserializing input data
Error: attempted to follow a return with an empty call stack
error: Recipe `run` failed on line 16 with exit code 1

This is from master (commit 0a40425). It does not seem to happen if the block does not contain txs (e.g. it works if I supply block 1 instead of 19426587)

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