Leaking semaphores tracking issue.
See original GitHub issueThe purpose of this issue is to track cases of semaphore leaks with view of hopefully getting to the root cause and fixing it (assuming it is a problem!). This issue is to also hold any useful notes whilst narrowing down the problems.
Things that would be really helpful:
- Anyone being able to supply a concrete reproducer of a semaphore leak coming from dask/distributed.
- If the leak is not (easily) reproducible, anecdotal evidence about what was running at the time including things like:
- The setup of
dask-scheduler
anddask-workers
. - Roughly what the application code was doing at the time.
- If any signals were sent to the code (e.g.
SIGINT
). - The reported message.
- The setup of
Many thanks for your help.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:25 (14 by maintainers)
Top Results From Across the Web
Issue 46391: Library multiprocess leaks named resources.
This bug will 100% reproduce when then main module uses named resources as global variables and uses `spawn` context, which is the case...
Read more >Issue with multiprocessing semaphore tracking
Hi I am facing an issue with semaphore tracking while using pytorch ... appear to be 1 leaked semaphores to clean up at...
Read more >62838 – semaphores appear to be leaking
KILLing the children processes shouldn't leak semaphores since there are created (and destroyed) by the parent process. Leaks usually happen ...
Read more >semaphore_tracker: There appear to be 1 leaked semaphores ...
Seems it is a bug of autokeras.The issue in github is here.
Read more >mm complied with semaphores is a DOS waiting to happen
The use of kernel semaphores by mm has just made a bad problem worse. The fact that PHP leaks semaphores just makes the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ijstokes, please wrap your code in
if __name__ == '__main__'
and retry.@2gotgrossman because of how multiprocessing works under the hood. This is explained here: https://docs.python.org/3/library/multiprocessing.html#the-spawn-and-forkserver-start-methods