STINNER Victor added the comment: You may try to reproduce with a release build and PYTHONMALLOC=debug to check for buffer over/underflow. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue29438> _______________________________________