➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 mocramis
收信人 eric.snow, methane, mocramis
日期 2019-03-30.10:16:05
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1553940965.57.0.295414154729.issue36469@roundup.psfhosted.org>
In-reply-to
内容
Thanks for the advicesand thorough analysis. I'll try to force threads shutdown from the cleanup callback but i'd like to dig to the root of this isssue if possible.

This is what the thread 7 python backtrace looks like:

(gdb) py-bt
Traceback (most recent call first):
  <built-in method acquire of _thread.lock object at remote 0x7f43088859b8>
  File "/usr/lib/python3.5/threading.py", line 293, in wait
    waiter.acquire()
  File "/usr/lib/python3.5/threading.py", line 549, in wait
    signaled = self._cond.wait(timeout)
  File "/usr/lib/python3.5/threading.py", line 849, in start
    self._started.wait()
  File "...", line 44, in __init__
    thr.start()

So we are basically spawning a thread and waiting for it to start (which will likely never happen). That seems like a "normal" behaviour for me (from a programming standpoint, that is), but this may be another cause of never-terminating threads. (unless this is also caused by the headlock and the thread is expected to spawn/release the lock even after finalizing.)

Also, i have access to the process that i kept running. Is there any way to me to figure out which thread is currently holding the GIL ? I just want to be sure i can't get this info myself before we close this ticket (at which point i will get rid of the culprit process).
历史
日期 用户 动作 参数
2019-03-30 10:16:05mocramis修改recipients: + mocramis, methane, eric.snow
2019-03-30 10:16:05mocramis修改messageid: <1553940965.57.0.295414154729.issue36469@roundup.psfhosted.org>
2019-03-30 10:16:05mocramis链接issue36469 messages
2019-03-30 10:16:05mocramis创建