-
Notifications
You must be signed in to change notification settings - Fork 18k
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
fmt: unexpected fault address 0x0 #56265
Comments
I have not been able to find a consistent repro for this, It happens about 1/100000 of the time when running the program over a large service. |
This needs more information, please. What program? What service? Is cgo or unsafe code involved? Have you tried the race detector? |
For a service requested by a batch of rpc clients, a log is printed after each request is completed. The error is reported when the network request reports an error, not involving cgo and unsafe code |
Is it possible to run your code with the race detector enabled, as suggested by dr2chase@ ?. See https://go.dev/blog/race-detector. |
There should be no race. Each request is an independent goroutine. The log is also independent in goroutine. The error "err" is also declared independently |
The project returns an error in the production environment for a few days, which cannot be reproduced in the test environment at present |
Maybe the access to Lines 473 to 494 in 8190876
|
This error is returned by the "conn. Write" or "DialTimeout" method of the "net" package. I'm not sure which one it is |
Rather than try to analyze the code by looking at it, I very strongly suggest that you try running the program with the race detector. Thanks. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputIs there a known repair or workaround
The text was updated successfully, but these errors were encountered: