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

stack overflow when running overflow_cache_test_state_cache in debug #6120

Open
jimmygchen opened this issue Jul 17, 2024 · 1 comment
Open
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

Comments

@jimmygchen
Copy link
Member

Description

Getting this error when running cargo test from the root directory:

thread 'tokio-runtime-worker' has overflowed its stack

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:

// THIS TEST CAN BE DELETED ONCE TREE STATES IS MERGED AND WE RIP OUT THE STATE CACHE

The root cause of the stack overflow seems to be in the blob conversion here:

.map(|blob| ssz_blob_to_crypto_blob::<E>(blob))

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)

@michaelsproul
Copy link
Member

Noting that we have another report from a Mac user:

This does seem to be Mac specific, as we do run this test in debug mode on CI:

- name: Run tests in debug
run: make nextest-debug

(I forgot we still run things in debug 😅 )

@michaelsproul michaelsproul added test improvement Improve tests macos Related to macOS or Apple Silicon labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants