Open numpy-gitbot opened 12 years ago
Attachment added by trac user jpeel on 2011-01-04: 0001-BF-fix-for-itemset-read-only-memmap-segfault.patch
trac user jpeel wrote on 2011-01-04
This was actually segfaulting on me rather than giving me a bus error. I added a patch that will raise an exception saying that the 'array is not writetable' in a similar manner to exceptions raised by other forms of trying to set an element in a read-only memmapped array. I also took out an extra space in one of the others exception messages nearby.
Original ticket http://projects.scipy.org/numpy/ticket/1622 on 2010-09-26 by atmention:WarrenWeckesser, assigned to unknown.
From http://projects.scipy.org/scipy/ticket/1202
The bus error does not occur if the file is opened with mode 'r+'.