Message211153
> To debug, since I guess it's due to a memory corruption because
> objects are deallocated while they're still in use, you could try
> to use valgrind.
> Unfortunately, since it's due to a race condition, the overhead
> will probably make it really hard to reproduce :-(
I added assert(_Py_Finalizing == NULL || _Py_Finalizing == PyThreadState_GET()) almost everywhere, but the assertion didn't fail. It looks like only the main thread is running between the interrupted wait_for_thread_shutdown() and the final "python: Modules/gcmodule.c:379: visit_decref: ... failed" assertion in PyGC_Collect().
I tried to add directly assert(_PyGCHead_REFS(gc) != 0) in _PyGCHead_SET_REFS(), but the assertion didn't fail.
I also ran Python in Valgrind: no error neither.
Ok...
I close this issue as won't fix because it was occur with #19466 applied, but I just reverted this patch. |
|
Date |
User |
Action |
Args |
2014-02-13 13:33:49 | vstinner | set | recipients:
+ vstinner, pitrou, larry, Arfrever, neologix, python-dev, serhiy.storchaka |
2014-02-13 13:33:49 | vstinner | set | messageid: <1392298429.47.0.773134598303.issue20526@psf.upfronthosting.co.za> |
2014-02-13 13:33:49 | vstinner | link | issue20526 messages |
2014-02-13 13:33:49 | vstinner | create | |
|