thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

Indexing with a boolean scalar array -> segfault (Trac #2119) #5915

Open numpy-gitbot opened 12 years ago

numpy-gitbot commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2119 on 2012-04-28 by atmention:njsmith, assigned to unknown.

This has the same result in 1.5.1 (as shipped by Ubuntu 11.04) and in current master (3cb783ecc96fb):

>>> import numpy as np
>>> a = np.zeros((2, 2))
>>> a[np.asarray(True)]
zsh: segmentation fault  python
~$