[Numpy-discussion] possibly ctypes related segfault

Stefan van der Walt stefan at sun.ac.za
Mon Aug 27 19:22:53 EDT 2007

On Mon, Aug 27, 2007 at 08:21:43PM +0200, Lino Mastrodomenico wrote:
> Hi Martin,
> 2007/8/27, Martin Wiechert <martin.wiechert at gmx.de>:
> > I could not reproduce the bug in a debug build of python (--without-pymalloc)
> > or on another machine. The crashing machine is an eight-way opteron.
> Not sure if it's related to your problem, but on 64-bit architectures
> sizeof(ssize_t) is 8.

You should be able to circumvent this problem by referring to
ctypes.c_size_t or ctypes.int instead of specifying the width


More information about the NumPy-Discussion mailing list