Message129391
Could you try with this:
def setUp(self):
with open(support.TESTFN, "wb+") as f:
f.seek(_4G)
f.write(b"asdf")
f.flush()
+ os.fsync(f.fileno())
self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
HFS+ doesn't seem to support sparse files, so the file is actually
zero-filled asynchronously.
Maybe the mapping gets done before the blocks have been allocated,
which triggers a segfault when the first page is accessed.
I'm not sure it'll make any difference, but I'm curious...
Also, I'd be curious to see the result of
"""
import os
name = '/tmp/foo'
f = open(name, 'wb')
f.seek(1 << 32)
f.write(b'asdf')
f.flush()
print(os.fstat(f.fileno()))
f.close()
print(os.stat(name))
"""
Thanks ! |
|
Date |
User |
Action |
Args |
2011-02-25 17:05:19 | neologix | set | recipients:
+ neologix, brett.cannon, ixokai, pitrou, vstinner, ned.deily, sdaoden |
2011-02-25 17:05:19 | neologix | link | issue11277 messages |
2011-02-25 17:05:18 | neologix | create | |
|