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, tim.golden
Date 2009-02-17.05:35:45
SpamBayes Score 0.00029077733
Marked as misclassified No
Message-id <1234848951.92.0.397893305201.issue5282@psf.upfronthosting.co.za>
In-reply-to
Content
I investigated more. Following code crashed with bus error on coLinux.

import mmap

def main():
    align = mmap.ALLOCATIONGRANULARITY
    with open("a.txt", "w") as f:
        f.write("0" * align)
        f.write("1" * align)
        f.write("2" * align)
    with open("a.txt", "r+") as f:
        m = mmap.mmap(f.fileno(), align, offset=align*2)
    m.resize(1)
    print m[0] # bus error

if __name__ == '__main__':
    main()

On windows, failed with AccessDenied. (32bit Win2000)
History
Date User Action Args
2009-02-17 05:35:53ocean-citysetrecipients: + ocean-city, tim.golden
2009-02-17 05:35:51ocean-citysetmessageid: <1234848951.92.0.397893305201.issue5282@psf.upfronthosting.co.za>
2009-02-17 05:35:49ocean-citylinkissue5282 messages
2009-02-17 05:35:47ocean-citycreate