[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2019-02-15 Thread INADA Naoki
INADA Naoki added the comment: I think this issue is fixed by #21963. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-26 Thread INADA Naoki
INADA Naoki added the comment: > 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

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-25 Thread STINNER Victor
STINNER Victor added the comment: > I suggest thread_PyThread_start_new_thread() raise RuntimeError("can't start > thread: finalizing") Where *exactly*? Py_FinalizeEx() first calls wait_for_thread_shutdown() and *then* sets _Py_Finalizing to tstate. Does wait_for_thread_shutdown() complete on

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-25 Thread INADA Naoki
INADA Naoki added the comment: This script can cause deadlock on Python 3.6. 1. Other threads can register traceback to sys module after sys module dict is cleaned up. 2. In Py_Finalize, __del__ method of arbitrary object in the traceback can be called. 3. The __del__ method calls

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread INADA Naoki
INADA Naoki added the comment: Python 3 would have #21963 too. If we can fix it, we can fix this issue too. -- ___ Python tracker ___

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread INADA Naoki
INADA Naoki added the comment: I'm sorry, I had uploaded script with wrong parameter. Additionally, this script fails by chance. $ while true; do python2 28673-reproduce2.py || break; echo -n .; done .Segmentation fault (core dumped) -- Added file:

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread Irmen de Jong
Irmen de Jong added the comment: The 28673-reproduce.py didn't crash on any of the systems I've tried it on. Are you sure it is complete? It looks like a part is missing. -- ___ Python tracker

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread INADA Naoki
INADA Naoki added the comment: I can't get same C traceback yet. But attached script segfaults by different C traceback. I think this issue is dup of #1856 -- Added file: http://bugs.python.org/file45624/28673-reproduce.py ___ Python tracker

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-23 Thread Irmen de Jong
Irmen de Jong added the comment: Due to lack of example code to reproduce the issue, and because I'm mildly interested in this bug because it mentions Pyro4 (because I'm the author of that) I've tried to crash my system myself using Pyro4 and a simple torture test but it trucked on just fine.

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: When using pyro4 with more than 15 threads, python 2.7.12 cores frequently -> pyro4 with more than 15 threads often crashes 2.7.12 ___ Python tracker