Giter Site home page Giter Site logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
After some more debugging I've concluded that this is caused by a deadlock in 
python when fork is used in a threaded program, as reported in 
http://bugs.python.org/issue13817. A fix for this is integrated in 2.7.3.

So, please close this issue.

Original comment by [email protected] on 29 Nov 2012 at 3:21

from git-repo.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
For the record:

The problem is that thread local storage is emulated in some versions of python 
and every access is guarded by a global mutex, the thread local storage is 
re-initialized right after a fork() syscall, which is done with the mutex held. 
So if any other thread holds the global mutex over the fork() call a deadlock 
will occur.

This is fixed by cleaning up the order that things are re-initialized after the 
fork() call.

So any python application calling fork while having other threads running is 
likely to hit this issue sooner or later.

For the python 2.7 series, that my machine runs, the issue is corrected in 
2.7.3.

Original comment by [email protected] on 30 Nov 2012 at 1:38

from git-repo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.