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

[BUG] eth2fuzz prysm container fails to fuzz any target #79

Closed
Daft-Wullie opened this issue Sep 29, 2020 · 1 comment
Closed

[BUG] eth2fuzz prysm container fails to fuzz any target #79

Daft-Wullie opened this issue Sep 29, 2020 · 1 comment
Labels
bug Something isn't working prysm

Comments

@Daft-Wullie
Copy link

Daft-Wullie commented Sep 29, 2020

eth2fuzz fails when attempting to target prysm

Description

command used to create the container and immediately start fuzzing: make fuzz-prysm
it subsequently executes the docker run -v /home/beacon-fuzz/eth2fuzz/workspace:/eth2fuzz/workspace eth2fuzz_prysm continuously -q prysm -t 3600 command as specified in the makefile but fails to run.

Expected Behavior

it should start fuzzing all of the targets for prysm for 1 hr each

Actual Behavior

fails with following error:

USAGE: docker run -v /root/beacon-fuzz/eth2fuzz/workspace:/eth2fuzz/workspace eth2fuzz_prysm list
docker run -v /root/beacon-fuzz/eth2fuzz/workspace:/eth2fuzz/workspace eth2fuzz_prysm continuously -q prysm -t 3600
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
2020/09/29 10:08:59 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
2020/09/29 10:09:05 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
2020/09/29 10:09:10 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
2020/09/29 10:09:15 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
2020/09/29 10:09:21 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
2020/09/29 10:09:26 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one
[eth2fuzz] Testing FuzzerGoLibfuzzer is available
# github.com/prysmaticlabs/prysm/beacon-chain/cache
beacon-chain/cache/committee_disabled.go:11:6: NewCommitteesCache redeclared in this block
        previous declaration at beacon-chain/cache/committee.go:50:28
# github.com/prysmaticlabs/prysm/shared/bls/blst
shared/bls/blst/stub.go:26:6: PublicKey redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:23:6
shared/bls/blst/stub.go:44:6: Signature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:22:6
shared/bls/blst/stub.go:72:6: SecretKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:33:59
shared/bls/blst/stub.go:77:6: PublicKeyFromBytes redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:28:58
shared/bls/blst/stub.go:82:6: SignatureFromBytes redeclared in this block
        previous declaration at shared/bls/blst/signature.go:27:55
shared/bls/blst/stub.go:87:6: AggregatePublicKeys redeclared in this block
        previous declaration at shared/bls/blst/public_key.go:50:59
shared/bls/blst/stub.go:92:6: AggregateSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:122:50
shared/bls/blst/stub.go:97:6: VerifyMultipleSignatures redeclared in this block
        previous declaration at shared/bls/blst/signature.go:164:97
shared/bls/blst/stub.go:102:6: NewAggregateSignature redeclared in this block
        previous declaration at shared/bls/blst/signature.go:116:30
shared/bls/blst/stub.go:107:6: RandKey redeclared in this block
        previous declaration at shared/bls/blst/secret_key.go:22:16
shared/bls/blst/stub.go:107:6: too many errors
2020/09/29 10:09:31 failed to build packages:exit status 2
Fuzzer failed so we'll continue with the next one

Possible Fix

Could be related to recent changes made to the bls library?

Steps to Reproduce

execute make fuzz-prysm
prysmbroken

Your Environment

  • Version/Commit used: a1ac748
  • Operating System and version: Ubuntu 20.04
@pventuzelo pventuzelo added bug Something isn't working prysm labels Sep 30, 2020
@pventuzelo
Copy link
Contributor

Issue has been fixed in prysm here: prysmaticlabs/prysm#7411
And also fixed in beaconfuzz.

Thanks

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

No branches or pull requests

2 participants