This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 1.1.3: mmap() returns unusable memory segments: segm fault


On Tue, Nov 06, 2001 at 11:16:07AM +0100, Lothar Linhard wrote:
> 
> Wow! What a quick respond.  Thank you.
> I'll checkout the CVS tree (anoncvs@anoncvs.cygnus.com)
> and see if I can compile cygwin.dll and run more mmap
> tests.

Chris has put the patch into 1.3.4-2 which should be on most mirrors
in the meantime.

However, there are already 5 mmap test applications in the testsuite
so you can see what is already tested.  I will probably add your test
as the sixth.

> Is there a list of limitations of Cygwin's mmap?

No.  There are limitations given due to OS restrictions.  E.g. the
addresses for mmaps which are always < 0x80000000 on NT/2K/XP and
always >= 0x80000000 and < 0xc0000000 on 9x/ME which makes the usage
of MAP_FIXED somewhat complicated.  Or the missing VirtualProtect()
on 9x/ME which doesn't allow to force an invalidation of pages after
munmap().  I would suggest to look on http://msdn.microsoft.com into
the description of MapViewOfFileEx() and CreateFileMapping().  Our
mmap() impementation tries to tweak the Win32 calls so that mmap()
behaves as POSIX conformant as possible but it's not easy to find
all border conditions.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]