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

internal/fuzz: test_fuzz_minimize_interesting failures with "cannot unmarshal empty string" #50606

bcmills opened this issue Jan 14, 2022 · 3 comments


Copy link

@bcmills bcmills commented Jan 14, 2022

go test proxy running at GOPROXY=
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/test_fuzz_minimize_interesting (3.78s)
            # Test that when an interesting value is discovered (one that expands coverage),
            # the fuzzing engine minimizes it before writing it to the cache.
            # The program below starts with a seed value of length 100, but more coverage
            # will be found for any value other than the seed. We should end with a value
            # in the cache of length 1 (the minimizer currently does not produce empty
            # strings). check_cache.go confirms that.
            # We would like to verify that ALL values in the cache were minimized to a
            # length of 1, but this isn't always possible when new coverage is found in
            # functions called by testing or internal/fuzz in the background. (3.574s)
            > go test -c -fuzz=.  # Build using shared build cache for speed.
            > env GOCACHE=$WORK/gocache
            > exec ./fuzz.test$GOEXE -test.fuzzcachedir=$GOCACHE/fuzz -test.fuzz=FuzzMinCache -test.fuzztime=1000x
            --- FAIL: FuzzMinCache (0.60s)
                cannot unmarshal empty string
            fuzz: elapsed: 0s, gathering baseline coverage: 0/1 completed
            fuzz: elapsed: 0s, gathering baseline coverage: 1/1 completed, now fuzzing with 16 workers
            fuzz: elapsed: 1s, execs: 551 (1226/sec), new interesting: 4 (total: 4)
            [exit status 1]
            FAIL: testdata\script\test_fuzz_minimize_interesting.txt:18: unexpected command failure
FAIL	cmd/go	277.000s

greplogs --dashboard -md -l -e '(?ms)FAIL: TestScript/test_fuzz_minimize_interesting.*cannot unmarshal empty string'


(attn @katiehockman @rolandshoemaker)

Copy link

@toothrot toothrot commented Jan 19, 2022

Pinging as this issue is a release blocker for Go 1.18. Any updates?

@katiehockman katiehockman self-assigned this Jan 19, 2022
Copy link

@katiehockman katiehockman commented Jan 19, 2022

Thanks, I'll take a look at it this week.

Copy link

@katiehockman katiehockman commented Jan 19, 2022

Just a side note: we thought we fixed this in #48721, but apparently not. It's also still only affecting Windows it seems.

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

Successfully merging a pull request may close this issue.

None yet
3 participants