[Numpy-discussion] possibly ctypes related segfault

Martin Wiechert martin.wiechert at gmx.de
Tue Aug 28 04:58:06 EDT 2007


Lino and Stefan,

thanks for your suggestion. However, I doubt this is the problem because as 
far as I know numpy.intp is actually ssize_t.

Thanks, Martin


On Tuesday 28 August 2007 01:22, Stefan van der Walt wrote:
> 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
> explicitly.
>
> Regards
> Stéfan
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list