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
In Go version 1.23.4, I have observed that accessing a nil pointer to a struct object does not trigger a runtime panic as expected; instead, the process hangs indefinitely without throwing an error. The program logic and flow appear to be correct, but whenever I try to access a property or invoke a method on a nil struct pointer, the program unexpectedly hangs and becomes unresponsive.
What did you see happen?
程序无限挂起
What did you expect to see?
访问空指针应该panic
The text was updated successfully, but these errors were encountered:
Go version
go version go1.23.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
In Go version 1.23.4, I have observed that accessing a nil pointer to a struct object does not trigger a runtime panic as expected; instead, the process hangs indefinitely without throwing an error. The program logic and flow appear to be correct, but whenever I try to access a property or invoke a method on a nil struct pointer, the program unexpectedly hangs and becomes unresponsive.
What did you see happen?
程序无限挂起
What did you expect to see?
访问空指针应该panic
The text was updated successfully, but these errors were encountered: