question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Leaking semaphores tracking issue.

See original GitHub issue

The 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 and dask-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.

Many thanks for your help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:25 (14 by maintainers)

github_iconTop GitHub Comments

7reactions
pitroucommented, Jun 9, 2017

@ijstokes, please wrap your code in if __name__ == '__main__' and retry.

1reaction
pitroucommented, Jan 21, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found