[Numpy-discussion] Segmentation fault with argsort
Fri Dec 18 12:00:12 CST 2009
On Fri, Dec 18, 2009 at 11:57, Skipper Seabold <firstname.lastname@example.org> wrote:
> On Fri, Dec 18, 2009 at 12:52 PM, Robert Kern <email@example.com> wrote:
>> On Fri, Dec 18, 2009 at 11:46, Keith Goodman <firstname.lastname@example.org> wrote:
>>> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already
>>> known, fixed, reproducible?
>>> 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 : np.array(121).argsort(0).argsort(0)
>> Out: 0
>> In : np.int64.argsort
>> Out: <method 'argsort' of 'numpy.generic' objects>
> Kubuntu 9.10
> In : import numpy as np
> In : np.__version__
> Out: '1.4.0.dev7539'
> In : np.array(121).argsort(0).argsort(0)
> Segmentation fault
Can you give us a gdb backtrace?
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion