[Python-Dev] 2.5 portability problems

Fredrik Lundh fredrik at pythonware.com
Thu Nov 16 21:49:34 CET 2006

Martin v. Löwis wrote:

> I'd like to share an observation on portability of extension
> modules to Python 2.5: python-ldap would crash on Solaris, see
> http://groups.google.com/group/comp.lang.python/msg/a678a969c90f21ab?dmode=source&hl=en
> It turns out that this was caused by a mismatch in malloc
> "families" (PyMem_Del vs. PyObject_Del):

I was just hit *hard* by this issue (in an extension that worked 
perfectly well under all test cases, and all but one demo script,
which happened to be the only one that happened to do a certain
trivial operation more than 222 times), so I added a FAQ entry:


feel free to add symptoms or other observations for other platforms 
and/or extensions.

cheers /F

More information about the Python-Dev mailing list