This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2009-02-17.09:35:55
SpamBayes Score 3.789818e-06
Marked as misclassified No
Message-id <1234863357.35.0.195202793383.issue5292@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed following code crashes. I'll post fix soon.

import mmap
import os

def main():
	align = mmap.ALLOCATIONGRANULARITY
	path = os.path.splitext(__file__)[0] + ".txt"
	with open(path, "w") as f:
		f.write("0" * align)
		f.write("1" * align)
		f.write("2" * align)
	with open(path, "r+") as f:
		m = mmap.mmap(f.fileno(), align)
	m[align] # crash
        m[align] = '1' # crash too

if __name__ == '__main__':
	main()
History
Date User Action Args
2009-02-17 09:35:57ocean-citysetrecipients: + ocean-city
2009-02-17 09:35:57ocean-citysetmessageid: <1234863357.35.0.195202793383.issue5292@psf.upfronthosting.co.za>
2009-02-17 09:35:55ocean-citylinkissue5292 messages
2009-02-17 09:35:55ocean-citycreate