-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Issue with write_all_at on GitHub Action #140867
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.C-external-bugCategory: issue that is caused by bugs in software beyond our controlCategory: issue that is caused by bugs in software beyond our controlO-linuxOperating system: LinuxOperating system: LinuxT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.C-external-bugCategory: issue that is caused by bugs in software beyond our controlCategory: issue that is caused by bugs in software beyond our controlO-linuxOperating system: LinuxOperating system: LinuxT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
write_all_atdoesn'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_atandread_exact_atdoesn't change the cursor positionflushor/andsync_alldoesn'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