Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

[BUG] Segmentation Fault when Beaconfuzz_v2 targets Struct_block #89

Open
Daft-Wullie opened this issue Nov 1, 2020 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Daft-Wullie
Copy link

Description

Beaconfuzz_v2 is currently unable to fuzz the struct_block target as it immediately segfaults.

Expected Behavior

Beaconfuzz_v2 should start fuzzing the specified target.

Actual Behavior

a Segmentation Fault occurs

Possible Fix

N/A

Steps to Reproduce

ETH2FUZZ_BEACONSTATE=../eth2fuzz/workspace/corpora/beaconstate fuzz/target/x86_64-unknown-linux-gnu/release/struct_block -artifact_prefix=/home/beacon-fuzz/beaconfuzz_v2/fuzz/artifacts/struct_block/ /home/beacon-fuzz/beaconfuzz_v2/fuzz/corpus/struct_block -detect_leaks=0 -rss_limit_mb=0
segfault-struct_block

Your Environment

  • Version/Commit used: a990138
  • Operating System and version: Ubuntu 20.04
@pventuzelo pventuzelo added the bug Something isn't working label Nov 4, 2020
@pventuzelo
Copy link
Contributor

pventuzelo commented Nov 4, 2020

I confirm, I got the same.
it is maybe related to Consensys/teku#3125

I will investigate.

@ajsutton
Copy link
Contributor

ajsutton commented Nov 6, 2020

Consensys/teku#3125 looks like some form of JVM bug (can't be 100% certain and not sure how to reproduce it yet) but it has the distinctive property that it's always crashing in one of the native methods related to getting thread info. Often this is while acquiring a lock as they check ThreadLocal variables to provide reentrancy support but can be from a few things. Java will typically produce a full report in a hs_err file which I can look at if you have one and see if it looks similar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants