-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
SIGSEGV fatal error while type casting status code #6204
Comments
Hi @abba5rangwala, The nil checks in the code are for Could you give more details about the object |
Hey @arvindbr8, zap is a logging library, and you can find its GitHub link here: https://github.com/uber-go/zap I have go through the code and noticed that it's calling the err.Error() method at this line: https://github.com/uber-go/zap/blob/6f34060764b5ea1367eecda380ba8a9a0de3f0e6/zapcore/error.go#L63 This means that it will also invoke the grpc error at this line: grpc-go/internal/status/status.go Line 149 in 4c776ec
also, Code is an int value. do you think it will be nil? |
Exactly! I dont believe @abba5rangwala Do you still see this happening? |
No, @arvindbr8, this is the second time it has panicked. The first occurrence was approximately 6 months ago on the same lines. |
I'm hoping this is a one-off thing. Let us know if this happening more frequently (which is scary and shouldnt). Closing the issue for now. |
Hey @arvindbr8, Yes, this is a rare occurrence and I am not sure if it is due to bad memory allocation or a GRPC issue. Since it has occurred twice on the same line, I have reached out to the GRPC team for further investigation. Thank you for your support. I will keep you updated if the issue occurs again and we can dig deeper into it at that time. |
What version of gRPC are you using?
v1.50.1
What version of Go are you using (
go version
)?1.18.4
What operating system (Linux, Windows, …) and version?
Linux (alpine3.16)
What is issue?
We got panic for below code while printing the error
panic stacktrace
What did you do?
We are unable to reproduce the error, but according to the code, a panic occurs during the typecasting of an int value referencing
grpc-go/internal/status/status.go
Line 76 in 4c776ec
Despite having a nil check and correct code for the int value, we require guidance from the grpc team for this issue.
The text was updated successfully, but these errors were encountered: