Skip to content

asyncio subprocess Process wait() deadlock #53

@nick1115

Description

@nick1115

https://github.com/bytedance/SandboxFusion/blob/main/sandbox/runners/base.py#L85
对 asyncio.subprocess.Process 对象使用 wait() 等待子进程完成,可能导致死锁,实测发现当输出较大时(约200KB),出现死锁,详见 https://docs.python.org/3/library/asyncio-subprocess.html 中关于 asyncio.subprocess.Process 的 wait 和 communicate 的描述

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions