Skip to content

Stack overflow in POST /eth/v*/beacon/blocks with SSZ bodies #5080

@michaelsproul

Description

@michaelsproul

Description

These endpoints trigger stack overflows when an SSZ body is sent:

  • POST /eth/v1/beacon/blocks
  • POST /eth/v2/beacon/blocks

The Lighthouse VC never uses these endpoints, so this issue only affects other validator clients. Vouch does not (yet) use them, but the Teku VC does

Workaround

If running Teku, use this flag with your VC:

  • --beacon-node-ssz-blocks-enabled=false

This will prevent the SSZ endpoint from being used and use JSON instead, which does not exhibit the bug.

Version

Lighthouse v4.6.0-rc.0

Additional Info

Testing and debugging is ongoing in #5079 and related PRs. The root cause seems to be something related to warp's future chaining.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTTP-APIbugSomething isn't workingv4.6.0ETA Q1 2024

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions