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

[Crash/Fuzzing] AssertionError during state transition (vendor/nim-stew/stew/bitseqs.nim) #922

pventuzelo opened this issue Apr 22, 2020 · 1 comment


Copy link

@pventuzelo pventuzelo commented Apr 22, 2020

During fuzzing, I triggered an AssertionError in state transition processing.

Error: unhandled exception: /XXX/nim-beacon-chain/vendor/nim-stew/stew/bitseqs.nim(172, 12) pos < s.len [AssertionError]


branch: devel
commit: 65ca74c


$ make
$ cd ncli
$ ../ nim c -d:const_preset=mainnet ncli_transition

$ ./ncli_transition --pre= assert_bitseqs_beaconstate.ssz --blck= assert_bitseqs_block.ssz --post= assert_bitseqs_beaconstate.ssz 
Traceback (most recent call last, using override)
XXX/nim-beacon-chain/vendor/nim-confutils/confutils.nim(981) confutils
XXX/nim-beacon-chain/vendor/nim-faststreams/faststreams/input_stream.nim(69) CLI
XXX/nim-beacon-chain/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim(418) nimLeaveFinally
XXX/nim-beacon-chain/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim(407) reportUnhandledError
XXX/nim-beacon-chain/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim(358) reportUnhandledErrorAux
Error: unhandled exception: XXX/nim-beacon-chain/vendor/nim-stew/stew/bitseqs.nim(172, 12) `pos < s.len`  [AssertionError]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants