[Numpy-discussion] Segmentation fault on large arrays

Charles R Harris charlesr.harris at gmail.com
Tue May 26 09:22:54 EDT 2009


On Tue, May 26, 2009 at 1:55 AM, Nicolas Rougier
<Nicolas.Rougier at loria.fr>wrote:

>
> Hello,
>
> I've come across what is probably a bug in size check for large arrays:
>
> >>> import numpy
> >>> z1 = numpy.zeros((255*256,256*256))
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ValueError: dimensions too large.
> >>> z2 = numpy.zeros((256*256,256*256))
> >>> z2.shape
> (65536, 65536)
> >>> z2[0] = 0
> Segmentation fault
>

This one has been fixed. See ticket
#1080<http://projects.scipy.org/numpy/ticket/1080>
.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090526/e05aaad3/attachment.html>


More information about the NumPy-Discussion mailing list