stack overflow when running overflow_cache_test_state_cache
in debug
#6120
Labels
crypto
An issue/PR that touches cryptography code.
macos
Related to macOS or Apple Silicon
optimization
Something to make Lighthouse run more efficiently.
test improvement
Improve tests
Description
Getting this error when running
cargo test
from the root directory:Reproduced with
cargo nextest
as well. It doesn't occur on CI, but on our laptops. i think it may be due to different platform max stack size defaults.The failing test identified is
overflow_cache_test_state_cache
Based on this comment, we might be able to get rid of this test once the state cache is removed in da checker:
The root cause of the stack overflow seems to be in the blob conversion here:
lighthouse/beacon_node/beacon_chain/src/kzg_utils.rs
Line 32 in 969d12d
Not sure if there's an easy way around it given that the KZG library accepts
Blob
containing an owned array. It would be nice if it accepts refs like the peerdas KZG lib, so it doesn't require making a copy of the bytes (which will likely be unfeasible when we increase the blob count)Version
5.2.1+ (current
unstable
branch)The text was updated successfully, but these errors were encountered: