[Numpy-discussion] numpy.ma.sort failing with bus error
Charles سمير Doutriaux
doutriaux1@llnl....
Tue Nov 25 12:55:54 CST 2008
Thx Pierre,
don't worry about it it's not a show stopper at all
C.
On Nov 24, 2008, at 12:04 PM, Pierre GM wrote:
> Charles,
> Confirmed on my machine...
> I gonna have to clean ma.sort, as there are indeed some temporaries
> that probably don't need to be created. I must warn you however that I
> won;t have a lot of time to spend on that in the next few days. In any
> case, of course, I'll keep you posted.
> Thx for reporting!
>
>
> On Nov 24, 2008, at 12:03 PM, Charles سمير Doutriaux wrote:
>
>> 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
>>>
>>
>> _______________________________________________
>> Numpy-discussion mailing list
>> Numpy-discussion@scipy.org
>> http:// projects.scipy.org/mailman/listinfo/numpy-discussion
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http:// projects.scipy.org/mailman/listinfo/numpy-discussion
More information about the Numpy-discussion
mailing list