This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.7.0 CVS mmap failure
On Jan 6 07:45, Christopher Layne wrote:
> (warning a bunch of strace, scroll wide).
> So I haven't been able to totally nail anything down on this issue due
> to the incredible complexity of Cygwin's mmap interface.
Lots of comments throughout the file...
> This is 2 simple mmap()s in succession, 1st is 46121 bytes, 2nd is 111 bytes.
> Both opened read/write. The second mmap always fails. This is the current
> snapshot code.
> In the 2nd strace, I changed the mmap logic to stop trying to align the 1st
> map on a 4k granularity boundary and just allocate a single map w/ 64k of
> left over dead space (what I would typically expect in posix land). I also
> added more debug info at various stages to try and figure things out. When
> changing it to use 64k period, the mmaps are both successful - which is good,
> but VirtualProtect always fails, no matter what, on unmap.
The strace is rather useless without the (hopefully very short) source
code of the (hopefully very small) testcase.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html