This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
possible mmap() problems
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: Cygwin Developers <cygwin-developers at cygwin dot com>
- Date: Wed, 16 Apr 2003 15:40:07 -0400
- Subject: possible mmap() problems
- Organization: Spirent Communications, Inc.
- Reply-to: jbuehler at hekimian dot com
Just an FYI:
We have had to disable the use of mmap() in ksh93
because it is causing problems. I don't know whether
it is a ksh problem or a Cygwin problem, but what appears
to be happening is that incorrect pages are being
VirtualFree()'d or similar. ksh will be running along
and all of a sudden try to access something in its text
segment and get a segment violation. Work with gdb
indicates that just a single page got zapped (marked
inaccessible) in the middle of the text segment.
It might not be Cygwin, it might be the ast library that
ksh is based on. Don't know.
Sorry for the lack of details, it is another difficult
bug, and we'll just not use mmap().
--
Joe Buehler