Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

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

Closed
@joncinque

Description

@joncinque

Problem

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
                                                              Cc15W?oBq$sAs!
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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions