Skip to content

anvil crash #11169

@maxandron

Description

@maxandron

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

1.3.0-v1.3.0 (b918f9b)

What version of Foundryup are you on?

1.3.0

What command(s) is the bug in?

No response

Operating System

None

Describe the bug

Hello,

Getting this crash in Anvil on the latest version (1.3.0 that was released two hours ago.
Updated with foundryup -i v1.3.0

Stack trace:

The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: crates/anvil/core/src/eth/transaction/mod.rs:84

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ���������������������������������� BACKTRACE �����������������������������������
                                � 7 frames hidden �
   8: core::panicking::panic::h4a11c031239f36a8
      at <unknown source file>:<unknown line>
   9: core::option::unwrap_failed::h62317944fa5dc382
      at <unknown source file>:<unknown line>
  10: anvil_core::eth::transaction::transaction_request_to_typed::h45a4404abaf0ead7
      at <unknown source file>:<unknown line>
  11: anvil::eth::backend::mem::Backend::simulate::{{closure}}::{{closure}}::h5944c56c54ac2eba
      at <unknown source file>:<unknown line>
  12: tokio::runtime::task::raw::poll::h1e0bf12e03a70e19
      at <unknown source file>:<unknown line>
  13: std::sys::backtrace::__rust_begin_short_backtrace::hd09d239988dcc711
      at <unknown source file>:<unknown line>
  14: core::ops::function::FnOnce::call_once{{vtable.shim}}::h188d451722164f51
      at <unknown source file>:<unknown line>
  15: std::sys::pal::unix::thread::Thread::new::thread_start::h1822d22fde68314f
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.

Unfortunately, I can't say with certainty which transaction triggered it. I will try to find an example if needed.
Though it does happen pretty consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: bugT-needs-triageType: this issue needs to be labelled

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions