graingert · GitHub

Bug report

Bug description:

I occasionally see

UserWarning: ResourceTracker called reentrantly for resource cleanup, which is unsupported. The semaphore object '/mp-gtkzf9rd' might leak.

warned in the test logs, I suspect test_force_shutdown_workers_dead_workers is the culprit.

It looks like the ResourceTracker was built to warn on re-entrant execution but I think it can be made to work instead.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Read the original on github.com ↗