[Python-Dev] Python 2.7 on Irix 6.5.22 fails ctypes callback test

Antoine Pitrou solipsis at pitrou.net
Mon Mar 28 17:33:39 CEST 2011


On Sun, 27 Mar 2011 19:07:08 -0400 (EDT)
"David E. Cross" <crossd at cs.rpi.edu> wrote:
> Trying to compile and install Python 2.7 on irix 6.5.22 IP22 (N32 ABI 
> model), Using gcc-4.5.1 and binutils 2.20.1.  Everything goes well (I 
> applied th patches listed at: 
> http://bugs.python.org/file15915/python-2.7-irix.patch )
> 
> It compiles and the test mostly work except for the callback ctypes 
> (libffi) test where it segfaults on a pyDECREFF.  Digging in, the O_get 
> call is returning a NULL pointer (and pyDECREF is understandably choking 
> on that).
> 
> Since I am very new to python, I am at a bit of a loss to tracing the C 
> code back through this particulat section of code to see why the PyOBJECT 
> isn't being assigned here.  Any help would be welomed.

One thing you might find useful is to instrument gdb to display more
information about Python objects (the opaque PyObject pointers). See:
http://docs.python.org/devguide/gdb.html

Regards

Antoine.




More information about the Python-Dev mailing list