[issue21951] tcl test change crashes AIX
STINNER Victor
report at bugs.python.org
Wed Sep 10 23:24:04 CEST 2014
STINNER Victor added the comment:
I'm not sure that tkinter_ckallock.patch is correct. Extract of attemptckalloc() manual page:
"If the allocation fails, these functions will return NULL. Note that on some platforms, but not all, attempting to allocate a zero-sized block of memory will also cause these functions to return NULL."
http://linux.die.net/man/3/attemptckalloc
It looks like you are fixing two different issues in the same patch: fix AIX and enhance handling of memory allocation failure.
Can you please split your patch in two parts? For AIX, adding these two lines for list/tuple should be enough:
if (size == 0)
return Tcl_NewListObj(0, NULL);
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21951>
_______________________________________
More information about the Python-bugs-list
mailing list