-
-
Notifications
You must be signed in to change notification settings - Fork 37k
asyncio.subprocess blocked event loop unexpectedly on MacOS #158287
Copy link
Copy link
Open
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
- StatusShow more project fieldsTodo
Bug report
Bug description:
After upgrading to 3.14.7 & macOS 27, this bug has happened.
When pausing the subprocess created by
asyncio.create_subprocess_exec, it will blocked the whole event loop on MacOS.Here is a minimal test code:
Expectly, it should print:
However, it just prints
child pid: xxxxx, without anyalive.This issue isn't caused by
psutilbecause the same result was got withkill -STOP xxxxx.This runs well on Windows, but not on MacOS. This didn't happen on the previous version of 3.14.
CPython versions tested on:
3.14
Operating systems tested on:
macOS, Windows