You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What operating system (Linux, Windows, …) and version?
Linux (docker build image: golang:1.20-alpine) and Mac Sonoma 14.0 (23A344)
What did you do?
Call to Invoke at call.go#L29 function with a nil opts ...CallOption parameter will panic the application.
This invoke with nil value at opts ...CallOption throw the invalid memory address or nil pointer dereference error. This "error" happens at v1.58.2grpc package version or the latest.
I don't remember the gRPC package version we used before updating to Go v1.20, but before this update calling the Invoke method with the options set with nil doesn't panic, but after this update invoking the method results in a panic.
What version of gRPC are you using?
v1.58.2
What version of Go are you using (
go version
)?What operating system (Linux, Windows, …) and version?
Linux (docker build image: golang:1.20-alpine) and Mac Sonoma 14.0 (23A344)
What did you do?
Call to Invoke at call.go#L29 function with a nil
opts ...CallOption
parameter will panic the application.This invoke with
nil
value atopts ...CallOption
throw theinvalid memory address or nil pointer dereference
error. This "error" happens atv1.58.2
grpc
package version or the latest.E.g:
will call
To fix this, we simple remove the
nil, nil
option parameters tocc *ClientConn, opts ...CallOption
values.I don't know if this is a bug or a feature request.
What did you expect to see?
Ignoring the options if is
[]nil
or one of than isnil
. Apparently variadic parameters considernil
as[]nil
(see https://go.dev/ref/spec#Passing_arguments_to_..._parameters)What did you see instead?
An nil pointer error at stream.go#L281 triggering the defer function above at stream.go#L274 who eventually finish the application with a panic.
The text was updated successfully, but these errors were encountered: