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

program-test in fuzzing environment blows up /tmp #14707

joncinque opened this issue Jan 20, 2021 · 0 comments · Fixed by #14908

program-test in fuzzing environment blows up /tmp #14707

joncinque opened this issue Jan 20, 2021 · 0 comments · Fixed by #14908


Copy link


Using program-test with honggfuzz creates many new directories of the form /tmp/.tmp* ie /tmp/.tmp0BaGeJ, with files that contain all sorts of garbage data and strings, .ie:

$w#OC4wOC4wOC4OC4wOC4w OCUUUUUUUU5w_ES333333334_Tw_S4Cw4_4/4w8
q$qEEPw 0EO!0Ņ  g w 0COb&@k{
{zq   {_y*{_x-"-%--
Oyaa^p] yy-g-aw4W       qw4Wx{j_&g w b8ya{_)qg w U)yay{gg       Oyy=yrW?oqW?    OOym!h_yWP-
gW?ohy_!rg  e1{zm&y!    yiW?o{*Ua\WOhw  _Ovyg4OW-qO!UW  a`ya_p/C/%5 w Cw 6/eg w F/g w /$@w `w e/#g w 0w %{g g w O@{    Some <= kindcodeRentKindNonePermissionDeniedTransferWithSeed) when slicing `AddrNotAvailableAllocateWithSeed (bytes NotFoundTransferTimedOutAllocateindex out of bounds: the len is Error: Associated address does not match seed derivationTransfer  lamports to the associated token accountAllocate space for the associated token accountAssign the associated token account to the SPL Token programInitialize the associated token accountTried to shrink to a larger capacity/Users/mvines/.cache/solana/v0.12/rust-bpf-sysroot/src/liballoc/raw_vec.rsinternal error: entered unreachable codelamports_per_byte_yearexemption_thresholdburn_percentalready mutably borrowedstruct Rent with 3 elements/Users/mvines/.cache/solana/v0.12/rust-bpf-sysroot/src/libcore/slice/mod.rsassertion failed: `(left == right)`
  left: ``,
 right: ``: destination and source slices have different lengthsa Display implementation returned an error unexpectedly, expected invalid length /Users/mvines/.cache/solana/v0.12/rust-bpf-sysroot/src/liballoc/raw_vec.rsinternal error: entered unreachable code/Users/mvines/.cache/solana/v0.12/rust-bpf-sysroot/src/libcore/slice/mod.rsassertion failed: `(left == right)`

It fills up 1GB in a few seconds until blowing out the filesystem.

Proposed Solution

Investigate and see! I tried disabling all logs, and that had no effect.

@joncinque joncinque self-assigned this Jan 20, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

Successfully merging a pull request may close this issue.

1 participant