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
go/src/net/lookup.go panic #42247
Comments
This looks like memory corruption. Have you tried running your program under the race detector? See https://blog.golang.org/race-detector . |
Please upgrade to go 1.15.3, go 1.13 is not longer supported |
it's a very common code, gorm db client connect remote server and then panic when connections number grew up. I run our project with the |
Have you build and deployed a race enabled version of your program to verify that there are no races under production code? |
It's hard, the online deployment is build by CI, we could not incept into it |
Then your best bet is to upgrade to a supported version of Go. |
It seems likely this was caused by memory corruption or a data race, and we don't have a reproducer, so there's not much to investigate here. I'm closing the issue. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It's very hard to reproduce, the project has run good in the product env for one year.
What did you do?
Our project uses official net library to connect to a remote server. It's weird to see a panic occurs in the online environment. We find out it's a panic thrown by the dnsWaitGroup (located in /go/src/net/lookup.go:266) which should only be waited in unit tests.
What did you expect to see?
no panic occur
What did you see instead?
The text was updated successfully, but these errors were encountered: