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

fix(lazy-pages-fuzzer, ci): add error output on lazy pages fuzzer's smoke test fail #4198

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

ByteNacked
Copy link
Member

Resolves # .

Output the lazy pages fuzzer's smoke test result and seed in case of failure.

@reviewer-or-team

@ByteNacked ByteNacked self-assigned this Aug 28, 2024
@ByteNacked
Copy link
Member Author

Now it looks like this and could be reproduced locally:

────────────────────────────────────────────────────────────────────────────────
Failing input:
	fuzz/artifacts/lazy-pages-fuzzer-fuzz/crash-da39a3ee5e6b4b0d3255bfef95601890afd80709
Output of `std::fmt::Debug`:
	(module
	  (type (;0;) (func))
	  (type (;1;) (func))
	  (type (;2;) (func))
	  (type (;3;) (func))
	  (type (;4;) (func))
	  (import "env" "memory" (memory (;0;) 10))
	  (func (;0;) (type 0))
	  (func (;1;) (type 0))
	  (func (;2;) (type 0))
	  (func (;3;) (type 0)
	    i32.const 655117
	    i32.const 0
	    i32.store
	    call 0
	    i32.const 655104
	    i32.const 1
	    i32.store8
	  )
	  (export "init" (func 3))
	)
Reproduce with:
	cargo fuzz run -O --sanitizer=none lazy-pages-fuzzer-fuzz fuzz/artifacts/lazy-pages-fuzzer-fuzz/crash-da39a3ee5e6b4b0d3255bfef95601890afd80709
Minimize test case with:
	cargo fuzz tmin -O --sanitizer=none lazy-pages-fuzzer-fuzz fuzz/artifacts/lazy-pages-fuzzer-fuzz/crash-da39a3ee5e6b4b0d3255bfef95601890afd80709
────────────────────────────────────────────────────────────────────────────────
Error: Fuzz target exited with exit status: 77
Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: cargo_fuzz::project::FuzzProject::exec_fuzz
   2: <cargo_fuzz::options::run::Run as cargo_fuzz::RunCommand>::run_command
   3: cargo_fuzz::main
   4: std::sys::backtrace::__rust_begin_short_backtrace
   5: std::rt::lang_start::{{closure}}
   6: std::rt::lang_start_internal
   7: main
   8: <unknown>
   9: __libc_start_main
  10: _start

Failed

Seed start: "
fb2d2998d829255f6692f68c1a121ddfdaa5bdfede51ec231d26bbffbae215888ae0a1ae821f5550b00b2a890a09f28db4c347205900d4dbad24f26993c03771f9122cf1dec8ef5fe81485f6f13f5b0d4b2319c0a293f0675806097190c4ab515da146bbb78bb28286438b93a0cb2ffdeb20394f75309a77d227d20ca09efffbd6e84bafc2c1258358a1252bbc655b935e176768fe9bd640fa0ce2542f6b2d384c04def902d46e0f95936e3f1b4e8bd65f9c71d5c023f1b225d45914d315929eb554b1e5352b69fafb49f59112b907536bc7fc157759aeb5243642758c810c2275e8d0fa2006b0830e5f265446210987a506ec5fb071b93b9be142d85b91cfaf8deb55ef5794565c41dedf3b17fdc1494aafe454d38cffd6aec723710bb34512cd8cfc5ff0228dd1e58493a558faddb94febe526e3d609a0822cbaad79f668d79ae97db50baf08aa62ad98eec12e10229832ae0b27c599cb4c4257dd2d12c227132ed2543893705aba5af3951b597cf2b83eb237a5a56d7d96e43e248a473cb1119c8a29dd7c86eb7d96a34138f3bebaf61567e6b014bebb0792aea4a9c0865fe6bcb199cb08c384c0dfa7f3cf49271ba515ee6831a2c997bd522556a970b7453ab340ab9797c855be38663f54e8b3f4897cada839db55ab42effe0f01162f800e1a7da3f30cc809c01201b3e1430e634a3c1a31141c666a80d918e7ea806c10
" Seed end.

@ByteNacked ByteNacked force-pushed the rmasl-fix-ci-lazy-pages-fuzzer-smoke-test branch from 83b38ab to 4439c8c Compare August 28, 2024 11:39
@ByteNacked ByteNacked added the A0-pleasereview PR is ready to be reviewed by the team label Aug 28, 2024
@ByteNacked ByteNacked requested a review from grishasobol August 28, 2024 11:50
@ByteNacked ByteNacked removed the request for review from clearloop August 28, 2024 12:01
@ByteNacked ByteNacked merged commit 9296293 into master Aug 28, 2024
14 checks passed
@ByteNacked ByteNacked deleted the rmasl-fix-ci-lazy-pages-fuzzer-smoke-test branch August 28, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview PR is ready to be reviewed by the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants