Skip to content

gh-124621: Emscripten: Fix regression in use-after-close error handling #136837

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

Merged
merged 1 commit into from
Jul 19, 2025

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Jul 19, 2025

Introduced in GH-136822. If the fd is already closed, SYSCALLS.getStreamFromFD() throws an error. We need to catch it and discard it. The __wasi_fd_read_orig() fallback will use it to set errno.

…handling

Introduced in pythonGH-136822. If the fd is already closed,
`SYSCALLS.getStreamFromFD()` throws an error. We need to catch it and
discard it. The `__wasi_fd_read_orig()` fallback will use it to set errno.
@hoodmane hoodmane force-pushed the emscripten-async-input-device-fix branch from a75d42e to eea3a60 Compare July 19, 2025 16:52
@hoodmane
Copy link
Contributor Author

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @hoodmane for commit eea3a60 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136837%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@ambv ambv merged commit 800d37f into python:main Jul 19, 2025
41 checks passed
@hoodmane hoodmane deleted the emscripten-async-input-device-fix branch July 19, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants