-
Notifications
You must be signed in to change notification settings - Fork 150
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
Is these function in testing package should be filtered in default? #104
Labels
Comments
Hey, can you give us a repro for this? |
They are found when using go/fuzzing to test the program. I don't have a stable repro but I think it is not related to a specific test case. |
internal ref: GO-2002 |
EstebanOlmedo
added a commit
to EstebanOlmedo/goleak
that referenced
this issue
Jun 27, 2023
When Fuzz testing, if the `-fuzz` flag is used then the fuzzing engine is used to generate test cases out of the seed corpus, this causes `testing.runFuzzTests` to be blocked until a failing input is found or there is a signal to stop generating. On the other hand `testing.runFuzzTests` is called even without the use of the `-fuzz` flag, executes the input testing with all the elements in the seed corpus and it's blocked until every test has run. On both cases, goleak detects them as leaking goroutines, but this are expected goroutines. Internal Ref: GO-2002 Fix uber-go#104
r-hang
pushed a commit
that referenced
this issue
Jun 28, 2023
When Fuzz testing, if the `-fuzz` flag is used then the fuzzing engine is used to generate test cases out of the seed corpus, this causes `testing.runFuzzTests` to be blocked until a failing input is found or there is a signal to stop generating. On the other hand `testing.runFuzzTests` is called even without the use of the `-fuzz` flag, executes the input testing with all the elements in the seed corpus and it's blocked until every test has run. On both cases, goleak detects them as leaking goroutines, but this are expected goroutines. Internal Ref: GO-2002 Fix #104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got some FP with backtrace looks like this
Indeed, these functions also occurs on the top of the stack, is them missed or by design?
The text was updated successfully, but these errors were encountered: