What semaphore is the subprocess blocking on? I.e. where in the Python code
(presumably of ThreadPoolExecutor) is that semaphore defined?

Given your hypothesis of the cause of the problem, can you perhaps write a
much simper program (which is simpler to debug and simpler to reason about)
that exhibits the same hang?

Does the same problem happen in earlier Python versions? On other operating
systems? (I've never had a problem with `make -j` on macOS, for example; I
suspect that there's something unique to threads and semaphores on QNX that
contributes to the hang.)


On Wed, Feb 26, 2020 at 7:53 AM Elad Lahav <e2la...@gmail.com> wrote:

> More information:
> The hang happens when building extensions, using the setup.py script. The
> script determines that the build is parallel (
> build_ext.py/build_extensions) and creates a thread pool. Each thread
> then executes a compilation job by fork()ing a compiler process.
>
> I don't see how it works on any system that keeps the semaphore state in
> user mode.
>
> --Elad
> _______________________________________________
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/DGEMKEX37HEIN7MBNSBJH5P2VQVKUEI7/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/5Q2WEDVHCWJWKPRJZ32NFY23PFAMKW6Y/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to