Message82300
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) |
|
Date |
User |
Action |
Args |
2009-02-17 05:35:53 | ocean-city | set | recipients:
+ ocean-city, tim.golden |
2009-02-17 05:35:51 | ocean-city | set | messageid: <1234848951.92.0.397893305201.issue5282@psf.upfronthosting.co.za> |
2009-02-17 05:35:49 | ocean-city | link | issue5282 messages |
2009-02-17 05:35:47 | ocean-city | create | |
|