Three reader.ReadLine() calls in a row will cause first read result being overwritten #42006
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?I tried 1.13 first, then I found 1.15.2 still had the problem.
Does this issue reproduce with the latest release?
Yes!
What operating system and processor architecture are you using (
go env
)?WSL 2.0 Ubuntu 20.04.
go env
OutputWhat did you do?
Minimal reproduciable code:
Minimal.go
input.txt
See below:
input.txt
Commands to run
What did you expect to see?
No lines with
NOT EQUAL
printed out.What did you see instead?
NOT EQUAL
is printed out, which indicated the first line has been modified somehow.The output from my device:
output.txt
Note: sometimes it's the
line2
orline3
being overwritten.The text was updated successfully, but these errors were encountered: