Issue with write_all_at
on GitHub Action
#140867
Labels
C-external-bug
Category: issue that is caused by bugs in software beyond our control
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
O-linux
Operating system: Linux
write_all_at
doesn't write the buffer at the given index. The content is written at the end of the file.I created a repo on my github https://github.com/allevo/rust-fs-write-all-bug to show the error.
Locally on Mac M2, the test on that repo passes, but on CI it doesn't.
NB:
write_all_at
andread_exact_at
doesn't change the cursor positionflush
or/andsync_all
doesn't fixI tried this code:
I expected to see this happen: The file content will be [0, 0, 0, 11]
Instead, this happened: [0, 0, 0, 10, 0, 0, 0, 11]
Meta
rustup --version && rustc --version --verbose
:Backtrace
In this case it is not important, the assertion fails
The text was updated successfully, but these errors were encountered: