[Numpy-discussion] numpy.ma.sort failing with bus error

Charles سمير Doutriaux doutriaux1@llnl....
Mon Nov 24 11:03:25 CST 2008


i mistyped the second line of the sample failing script
it should obviously read:
a=numpy.ma.ones((16800,60,96),'f')
not numpy.ma.sort((16800,60,96),'f')

C.

On Nov 24, 2008, at 8:40 AM, Charles سمير Doutriaux wrote:

> Hello,
>
> Using numpy 1.2.1  on a mac os 10.5
>
>
> I admit the user was sort of stretching the limits but (on his  
> machine)
>
> import numpy
> a=numpy.ones((16800,60,96),'f')
> numpy.sort(a,axis=0)
>
> works
>
> import numpy.ma
> a=numpy.ma.sort((16800,60,96),'f')
> numpy.ma.sort(a,axis=0)
>
> failed with some malloc error:
> python(435) malloc: *** mmap(size=2097152) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> Bus error
>
> Since there's no mask I don't really see how much more memory it's
> using. Beside changing 16800 to 15800 still fails (and now that should
> be using much less memory)
>
> Anyhow I would expect i nicer error than a bus error :)
>
> Thx,
>
> C>
>
>
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http:// projects.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the Numpy-discussion mailing list