Re: [Numpy-discussion] Bus error when using flat on sliced, memmap'd array

2012-05-31 Thread Travis Oliphant
Be sure to file a ticket... -Travis On May 30, 2012, at 9:05 PM, chris farrow wrote: > Hi all, > > I encountered an odd bug today that I wanted to bring to everyone's > attention. First the code: > > >>> import numpy as np > >>> shape = (8, 8) > >>> dtype = np.dtype(np.uint8) > >>> image = np

Re: [Numpy-discussion] Bus error when using flat on sliced, memmap'd array

2012-05-30 Thread Val Kalatsky
Confirmed on Ubuntu, np.__version__ 1.5.1 and 1.6.1 (backtraces are bellow). Something seems to be broken before it comes to memcpy and/or _aligned_contig_to_strided_size1. Val - np.__version__ 1.6.1 Program received signal SIGSEGV, Se

[Numpy-discussion] Bus error when using flat on sliced, memmap'd array

2012-05-30 Thread chris farrow
Hi all, I encountered an odd bug today that I wanted to bring to everyone's attention. First the code: >>> import numpy as np >>> shape = (8, 8) >>> dtype = np.dtype(np.uint8) >>> image = np.random.randint(0, 256, shape).astype(dtype) >>> image.tofile("test_image.bin") >>> image = np.memmap("test