Skip to content

Pathlib throws "Bad file descriptor", but only with uvloop. #414

Closed
@decorator-factory

Description

@decorator-factory
  • uvloop version: 0.15.3
  • Python version: 3.9.5
  • Platform: Manjaro, kernel is 5.10.42-1
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: no
  • Does uvloop behave differently from vanilla asyncio? How?: without uvloop, the script works just fine.

When spawning processes and creating file, an OSError: [Errno 9] Bad file descriptor sometimes appears.

Script and output: https://gist.github.com/decorator-factory/6b5276ab5fb87f4c009f1d22dc4b20a9

Sometimes it also just hangs, with 0 CPU consumption. When I press CTRL+C, I get this traceback: https://gist.github.com/decorator-factory/888a584cbc4d44600ea62f5e7e344b66

Sometimes it completes successfully.

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