[Numpy-discussion] Segmentation fault with argsort

josef.pktd@gmai... josef.pktd@gmai...
Fri Dec 18 12:06:30 CST 2009


On Fri, Dec 18, 2009 at 1:01 PM, Charles R Harris
<charlesr.harris@gmail.com> wrote:
>
>
> On Fri, Dec 18, 2009 at 10:57 AM, Skipper Seabold <jsseabold@gmail.com>
> wrote:
>>
>> On Fri, Dec 18, 2009 at 12:52 PM, Robert Kern <robert.kern@gmail.com>
>> wrote:
>> > On Fri, Dec 18, 2009 at 11:46, Keith Goodman <kwgoodman@gmail.com>
>> > wrote:
>> >> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already
>> >> known, fixed, reproducible?
>> >>
>> >>>> np.array(121).argsort(0).argsort(0)
>> >> Segmentation fault
>> >>
>> >> The expected result:
>> >>
>> >> AttributeError: 'np.int64' object has no attribute 'argsort'
>> >
>> > Why would you expect that? On OS X with an SVN checkout ~1.4:
>> >
>> > In [1]: np.array(121).argsort(0).argsort(0)
>> > Out[1]: 0
>> >
>> > In [6]: np.int64.argsort
>> > Out[6]: <method 'argsort' of 'numpy.generic' objects>
>> >
>>
>> Kubuntu 9.10
>>
>> In [1]: import numpy as np
>>
>> In [2]: np.__version__
>> Out[2]: '1.4.0.dev7539'
>>
>> In [3]: np.array(121).argsort(0).argsort(0)
>> Segmentation fault

Segmentation fault

same here WindowsXP 32,  numpy 1.4.0rc1, python 2.5.2

Josef

>
> I also see that here on ubuntu 9.10, 64 bits. ISTR recall another such issue
> on ubuntu, which makes me think that there might be a compiler problem.
>
> Chuck
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


More information about the NumPy-Discussion mailing list