This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: mmap of large amount returns invalid pointer
- From: Heribert Dahms <heribert_dahms at icon-scm dot com>
- To: 'Stephen Weeks' <sweeks at acm dot org>, cygwin at cygwin dot com
- Date: Tue, 12 Mar 2002 23:44:36 +0100
- Subject: RE: mmap of large amount returns invalid pointer
Hi Stephen and Corinna,
looks like you have overlooked that mmap doesn't return NULL
despite win32 error in strace (see below):
c:\>net helpmsg 1455
The paging file is too small for this operation to complete.
Second, (may mean nothing) why is h:188 first and h:190 second time?
Bye, Heribert (heribert_dahms@icon-scm.com)
> -----Original Message-----
> From: Stephen Weeks [SMTP:sweeks@acm.org]
> Sent: Tuesday, March 12, 2002 19:08
> To: cygwin@cygwin.com
> Subject: Re: mmap of large amount returns invalid pointer
>
[Heribert] [snip]
> 1668 719099 [main] mmap 159 mmap: addr 0, len 100000000, prot 3, flags
> 22, fd -1, off 0
> 5487 724586 [main] mmap 159 fhandler_disk_file::mmap: 2A230000 =
> MapViewOfFileEx (h:188, access:1, 0, off:0, len:100007936, addr:0)
> 26042 750628 [main] mmap 159 mmap: 2A230000 = mmap() succeeded
>
[Heribert] [snip]
> 1302 2076991 [main] mmap 159 mmap: addr 0, len 130000000, prot 3, flags
> 22, fd -1, off 0
> 2949 2079940 [main] mmap 159 fhandler_disk_file::mmap: 2A230000 =
> MapViewOfFileEx (h:190, access:1, 0, off:0, len:130023424, addr:0)
> 7425 2087365 [main] mmap 159 mmap_record::map_map: -1 = map_map (): Win32
> error 1455
> 1830 2089195 [main] mmap 159 mmap: 2A230000 = mmap() succeeded
>
[Heribert] [snip]
--
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/