-
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
panic: runtime error: invalid memory address or nil pointer dereference at [email protected]/stream.go:380 #5512
Comments
+@codyoss -- tl;dr: a client library is installing a gRPC stats handler and the user wishes to disable it, and is doing so by passing their own gRPC dial option that sets a This was an unexpected use case. The expectation was that stats handlers were only installed once, and never cleared or overwritten using something like this. Some options:
Also note that stats handlers are and have always been explicitly marked as "experimental", which means client libraries should not be using them except in experimental packages. If we delete them now, we will break all your users. |
This already exists today: option.WithTelemetryDisabled Our telemetry story needs to be cleaned up in client libraries a bit. We are transitively pulling in the use of the experimental API I guess by using go.opencensus.io/plugin/ocgrpc. This is before my time on the team so I don't have all of the context here, but the user should have a way forward for now at least. |
Excellent, thank you @codyoss. Can you give this a try, please, @ukai? Argh, good point; we should theoretically need to consider all of OpenCensus as experimental. Realistically our hands are completely tied here and we just need to mark the stats package as stable, even though there are some things we'd like to change about it. #4690 |
thanks! |
NOTE: if you are reporting is a potential security vulnerability or a crash,
please follow our CVE process at
https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md instead of
filing an issue here.
Please see the FAQ in our main README.md, then answer the questions below
before submitting your issue.
What version of gRPC are you using?
1.48.0
What version of Go are you using (
go version
)?1.18.4
What operating system (Linux, Windows, …) and version?
linux (ubuntu 18.04)
What did you do?
If possible, provide a recipe for reproducing the error.
https://chromium.googlesource.com/infra/goma/server/+/refs/heads/main/profiler/profiler.go#34
What did you expect to see?
no runtime panic (as it was in 1.47.0 or prior version)
What did you see instead?
The text was updated successfully, but these errors were encountered: