[Numpy-discussion] copy4bytes: access beyond buffer

Simon Burton simon at arrowtheory.com
Sun Feb 22 15:25:22 EST 2004


I posted this bug to the sf bugs page, but it seems to have disappeared.
The bug remains. I've been using the CVS version. Is there anything I'm doing wrong?

Python 2.2.3 (#4, Feb 15 2004, 17:40:28) 
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numarray
>>> zeros = numarray.zeros( shape = (2048,0) )
>>> zeros = zeros.astype( numarray.Int16 )
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/numarray/numarraycore.py", line 594, in astype
    ufunc._copyFromAndConvert(self, retarr)
libnumarray.error: copy4bytes: access beyond buffer. offset=3 buffersize=0
>>> 

I also get this error in other situations.

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the NumPy-Discussion mailing list