[Numpy-discussion] numarray-1.4.0 string-array comparisons problem

Todd Miller jmiller at stsci.edu
Thu Oct 27 15:25:25 EDT 2005


Todd Miller wrote:

> John A Chaves wrote:
>
>> After installing numarray-1.4.0, I get a Segmentation fault when 
>> comparing
>> two instances of the same string-array.  For example:
>>
>>     from numarray.strings import asarray
>>
>>     for x in range(1000,1000000,1000):
>>       print x
>>       raw = ['abcde']*x
>>       arr = asarray(raw)
>>       arr == arr
>>
>> gives:
>>
>>     1000
>>     2000
>>     3000
>>     4000
>>     5000
>>     6000
>>     Segmentation fault
>>  
>>
>> Can anyone else reproduce this, or is a problem with my environment?
>>  
>>
> Yes,  I was able to reproduce this too,  thanks for the report and for 
> logging on SF.    I understand the problem and am working out a fix now.
>
> Regards,
> Todd

I committed the fix for this and put out numarray-1.4.1.

Thanks again,
Todd




More information about the NumPy-Discussion mailing list