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

Regression tests run out of memory in CI #57

Open
mholt opened this issue Mar 20, 2020 · 1 comment
Open

Regression tests run out of memory in CI #57

mholt opened this issue Mar 20, 2020 · 1 comment

Comments

@mholt
Copy link

@mholt mholt commented Mar 20, 2020

We're not sure if this is a bug in Fuzzit, but our regression tests seem to be failing:

2020/03/20 13:09:35 Running regression...
FUZZER: INFO: Seed: 4173634629
FUZZER: INFO: 65536 Extra Counters
FUZZER: ./fuzzer: Running 521 inputs 1 time(s) each.
FUZZER: Running: corpus/0022ae0ec320596f561aa52c8b47f17e04db2a00
FUZZER: Executed corpus/0022ae0ec320596f561aa52c8b47f17e04db2a00 in 0 ms
FUZZER: Running: corpus/00e9813b71fa586ae6890dcce51fd8acca6a3448
FUZZER: Executed corpus/00e9813b71fa586ae6890dcce51fd8acca6a3448 in 0 ms
FUZZER: Running: corpus/015f14bc2402f59075cb46c913e08570421bd9ae
FUZZER: ==18== ERROR: libFuzzer: fuzz target overwrites it's const input
FUZZER: SUMMARY: libFuzzer: out-of-memory

Full log here:

https://github.com/caddyserver/caddy/runs/521935588

(And related discussion, toward the end of caddyserver/caddy#3152)

Is that something in our code that is causing out-of-memory? I thought that the fuzzer itself shouldn't run out of memory, but maybe I'm reading this wrong. Thanks!

@aoldershaw
Copy link

@aoldershaw aoldershaw commented Apr 19, 2020

I was running into this as well, and for a little while assumed the fuzzer was just running out of memory (as the SUMMARY suggests), but was completely neglecting the line above:

FUZZER: ==18== ERROR: libFuzzer: fuzz target overwrites it's const input

In my case, the input bytes were being modified, which libFuzzer isn't happy about (though go-fuzz is fine with). Might be worth looking into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.