cmd/go: go test behaviour different when debugging #65325
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Debugging
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Go version
go version go1.21.4 linux/amd64
Delve Debugger
Version: 1.21.0
Build: Id: fec0d226b2c2cce1567d5f59169660cf61dc1efe
Output of
go env
in your module/workspace:What did you do?
Ran
go test .
in soypat/fatfs@06cae34What did you see happen?
The test failed earlier than in non-debug mode with following message:
This failure occurs between these lines: https://github.com/soypat/fatfs/blob/06cae34c8eee7fea47cd20c49817a4f0d8714d7f/fatfs.go#L2425-L2428
The I/O call (happens in RAM) reads into a buffer, all using unsafe. The data seems to be copied correctly without debug mode, and incorrectly when in debug mode.
What did you expect to see?
I expected to see same output than when not debugging (below).
This seems like it may be related to #64854.
The text was updated successfully, but these errors were encountered: