[Numpy-discussion] 64bit issue?

Charles Doutriaux doutriaux1@llnl....
Tue Aug 5 13:14:29 CDT 2008


Hi chuck, works great on 32bit

  int *dims;
    dims = (int *)malloc(self->nd*sizeof(int));

and self->nd is 3

C.

Charles R Harris wrote:
>
>
> On Tue, Aug 5, 2008 at 12:20 PM, Charles Doutriaux 
> <doutriaux1@llnl.gov <mailto:doutriaux1@llnl.gov>> wrote:
>
>     Hello I'm running into some strange error on a 64bit machine,
>     I tracked it down to this line returning a NULL pointer, any idea
>     why is
>     this?
>     I tried both numpy1.1.1 and what in trunk, numpy.test() passes for
>     both
>
>     Ok here's the uname of the machine and the offending line:
>
>     Linux quartic.txcorp.com <http://quartic.txcorp.com/>
>     2.6.20-1.2320.fc5 #1 SMP Tue Jun 12 18:50:49
>     EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
>
>      array = (PyArrayObject *)PyArray_SimpleNew(d, dims, self->type);
>
>     where d is 3 and dims: 120,46,72
>     self->type is 11
>
>     it seems to pass with d=1, but i'm not 100% positive.
>
>     Any idea on why it could be failing?
>
>  
> What is the type of dims? Is there also a problem with a 32 bit OS?
>  
> Chuck
> ------------------------------------------------------------------------
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http:// projects.scipy.org/mailman/listinfo/numpy-discussion
>   



More information about the Numpy-discussion mailing list