Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trace_decoder tests fail #784

Closed
sergerad opened this issue Nov 7, 2024 · 3 comments
Closed

trace_decoder tests fail #784

sergerad opened this issue Nov 7, 2024 · 3 comments

Comments

@sergerad
Copy link
Collaborator

sergerad commented Nov 7, 2024

Trace decoder crate tests fail on my Macbook.

zkevm version:

╰─➤  git log --pretty=oneline  | HEAD                                                                                                                                          
4a747b2e3dc1107d00591409f7d0d8cfcc9e1206 Add test config in zero bin (#742)

Rust version:

╰─➤  rustc --version                                                                                                   
rustc 1.83.0-nightly (7042c269c 2024-09-23)

Command I ran:

╰─➤  cargo test -p trace_decoder

Output includes:

failures:

---- b20472570_main@1/71 ----
test panicked: assertion `left == right` failed
  left: 0xb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6
 right: 0x00000000000000000000000000000000000000000000210ddf87300c58580cea

---- b20472570_main@3/23 ----
test panicked: assertion `left == right` failed
  left: 0xb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6
 right: 0x00000000000000000000000000000000000000000000210ddf87300c58580cea


failures:
    b20472570_main@1/71
    b20472570_main@3/23

test result: FAILED. 1192 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 645.22

Output earlier on points to source lines:

thread '<unnamed>' panicked at evm_arithmetization/src/generation/state.rs:537:9:
assertion `left == right` failed
  left: 0xb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6
 right: 0x00000000000000000000000000000000000000000000210ddf87300c58580cea
test b20472570_main@3/23  ... FAILED
thread '<unnamed>' panicked at evm_arithmetization/src/generation/state.rs:537:9:
assertion `left == right` failed
  left: 0xb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6
 right: 0x00000000000000000000000000000000000000000000210ddf87300c58580cea
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test b20472570_main@1/71  ... FAILED
@0xaatif
Copy link
Contributor

0xaatif commented Nov 7, 2024

I've reproed this :D

@Nashtare
Copy link
Collaborator

Nashtare commented Nov 7, 2024

Ah, this is a know issue affecting only debug builds (debug_assert failing between known codehash and computed one). I think someone (Maybe @einar-polygon?) hit it a while back, not sure if there was a tangible solution to this.

Note that this is an old leftover for debugging purposes, we could remove this contract observation logic altogether.

@Nashtare
Copy link
Collaborator

Nashtare commented Nov 7, 2024

Actually forgot there was an open issue for this. Closing as duplicate of #725

@Nashtare Nashtare closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Zero EVM Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants