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

Can not compile and run any fuzzers locally #2903

Closed
iszubok opened this issue Nov 2, 2021 · 0 comments
Closed

Can not compile and run any fuzzers locally #2903

iszubok opened this issue Nov 2, 2021 · 0 comments

Comments

@iszubok
Copy link
Contributor

iszubok commented Nov 2, 2021

System information

Erigon version: erigon version 2021.11.1-alpha

OS & Version: Mac OS 11.6, Linux Ubuntu 20.04

Commit hash : 70461e4

Expected behaviour

Fuzzers can be built according to README.md

Actual behaviour

Compile errors when building fuzzers according to documentation

transaction_signing.go references symbols which are not compiled with CGO_ENABLED=0

Steps to reproduce the behaviour

  1. Install go-fuzz according to documentation

  2. cd tests/fuzzers/rlp

  3. Try to build fuzzer

% go-fuzz-build .           
/Users/ivan/projects/erigon/core/types/transaction_signing.go:319:21: EcrecoverWithContext not declared by package crypto
-: no required module provides package github.com/dvyukov/go-fuzz/go-fuzz-dep; to add it:
	go get github.com/dvyukov/go-fuzz/go-fuzz-dep
typechecking of . failed
  1. go get github.com/dvyukov/go-fuzz/go-fuzz-dep

  2. Try building fuzzer again

CGO_ENABLED=0 go-fuzz-build .
/Users/ivan/projects/erigon/core/types/transaction_signing.go:188:55: Context not declared by package secp256k1
/Users/ivan/projects/erigon/core/types/transaction_signing.go:304:38: Context not declared by package secp256k1
/Users/ivan/projects/erigon/core/types/transaction_signing.go:184:40: DefaultContext not declared by package secp256k1
/Users/ivan/projects/erigon/core/types/transaction_signing.go:319:21: EcrecoverWithContext not declared by package crypto
typechecking of . failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants