| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality⚠️ Potential issue | 🟠 Major
🧩 Analysis chain🏁 Script executed:
# First, let's check if the file exists and get its total line count wc -l crates/vm/src/stdlib/io.rsRepository: RustPython/RustPython
Length of output: 96
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 427
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1218
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1533
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 859
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 114
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 92
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 222
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 360
🏁 Script executed:
# Check the crt_fd module to understand the read function cat crates/common/src/crt_fd.rsRepository: RustPython/RustPython
Length of output: 9961
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1070
Replace read_to_end() with explicit crt_fd::read() loop to preserve signal checking on EINTR.
The current code uses std::io::Read::read_to_end(), which internally retries on EINTR, preventing the outer error handler from triggering vm.check_signals(). This breaks the unbounded-read path (size < 0) signal handling.
Use a chunked read loop with crt_fd::read() instead, which surfaces EINTR to the error handler:
Replace read_to_end() with chunked crt_fd::read() loopSorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.