[issue2111] mmap segfaults when trying to write a block opened with PROT_READ

2008-05-23 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Committed to 2.5 as r63561 -- status: pending -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2111] mmap segfaults when trying to write a block opened with PROT_READ

2008-02-15 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r60830 (trunk) Martin, is the fix a candidate for 2.5.3, too? -- assignee: -> loewis nosy: +loewis, tiran priority: -> high resolution: -> accepted status: open -> pending versions: +Python 2.5 -Python 2.6

[issue2111] mmap segfaults when trying to write a block opened with PROT_READ

2008-02-14 Thread Thomas Herve
New submission from Thomas Herve: Basically, the write method of mmap objects check the state with is_writable, which check the writability with the access attributes. But the mmap object can be opened correctly specifying the rights with prot=mmap.PROt_READ. Attached patch corrects the problem