Message281811
> Where *exactly*?
See attached patch.
But python with this patch can deadlock in other state. Main thread wait GIL
but no other living threads have GIL. It seems caused by other issue around finalization and multithreading.
> Py_FinalizeEx() first calls wait_for_thread_shutdown() and *then* sets _Py_Finalizing to tstate.
> Does wait_for_thread_shutdown() complete on this bug?
Yes. wait_for_thread_shutdown() waits only daemon threads.
After _Py_Finalizing = tstate, main thread calls many __del__ methods
while shutdown. If one of them starts new thread, this deadlock happens. |
|
Date |
User |
Action |
Args |
2016-11-27 07:38:24 | methane | set | recipients:
+ methane, irmen, vstinner, eric.smith, pwp333 |
2016-11-27 07:38:24 | methane | set | messageid: <1480232304.09.0.156314007892.issue28673@psf.upfronthosting.co.za> |
2016-11-27 07:38:24 | methane | link | issue28673 messages |
2016-11-27 07:38:23 | methane | create | |
|