Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
ambv merged 1 commit intopython:mainpython/cpython:mainfrom
hoodmane:emscripten-async-input-device-fixhoodmane/cpython:emscripten-async-input-device-fixCopy head branch name to clipboard
Jul 19, 2025
Merged

gh-124621: Emscripten: Fix regression in use-after-close error handling#136837
ambv merged 1 commit intopython:mainpython/cpython:mainfrom
hoodmane:emscripten-async-input-device-fixhoodmane/cpython:emscripten-async-input-device-fixCopy head branch name to clipboard

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
hoodmane added a commit to miss-islington/cpython that referenced this pull request Jul 22, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.