STINNER Victor added the comment:

> When the failing test is re-enabled, the _tkinter patch produces the 
> following output:

Thanks. I found and fixed a bug in AsObj() for tuple and list. It looks like 
ckalloc(size) returns NULL if size is 0. Please update Python, compile and run 
test_tcl to see if you get a MemoryError exception instead of a crash.

I just created the issue #22336 which may fix this issue if my analysis was 
correct. It uses PyMem_Malloc(size) which has a well-defined behaviour when 
size is 0.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21951>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to