Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I/O error: operation failed to complete synchronously [Windows7,MinGW] #99090

Closed
CosmicSpaceGoose opened this issue Jul 9, 2022 · 2 comments
Closed
Labels
C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression.

Comments

@CosmicSpaceGoose
Copy link

Program crashing with segfault when reading stdin

Code

use std::io;

fn main() {
    let mut buf = String::new();

    io::stdin()
        .read_line(&mut buf)
        .expect("Failed to read line");
}

Output

I/O error: operation failed to complete synchronously
Segmentation fault

Version where it works

rustc 1.61.0 (fe5b13d68 2022-05-18)
binary: rustc
commit-hash: fe5b13d681f25ee6474be29d748c65adcd91f69e
commit-date: 2022-05-18
host: x86_64-pc-windows-gnu
release: 1.61.0
LLVM version: 14.0.0

Version with regression

rustc 1.62.0 (a8314ef7d 2022-06-27)
binary: rustc
commit-hash: a8314ef7d0ec7b75c336af2c9857bfaf43002bfc
commit-date: 2022-06-27
host: x86_64-pc-windows-gnu
release: 1.62.0
LLVM version: 14.0.5

Might be important that it's a Windows7 without latest updates and MinGW.
MinGW gonna drop Win7 support 'til end of the year. What is the plan for rust in such case?

@CosmicSpaceGoose CosmicSpaceGoose added C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. labels Jul 9, 2022
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 9, 2022
@ChrisDenton
Copy link
Member

This should be fixed by #98950.

The future of Rust's stdlib support for Windows 7 is currently uncertain. It will likely be supported at least until January next year but beyond that is unknown at this time.

@CosmicSpaceGoose
Copy link
Author

Oh, so that's the fix. Great. I'm fine to close this issue.

KoichiYasuoka added a commit to KoichiYasuoka/CygTorch that referenced this issue Jul 14, 2022
@apiraino apiraino removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression.
Projects
None yet
Development

No branches or pull requests

4 participants