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] |
Other format: | [Raw text] |
OK - I wasn't sure what the list would be like - after 100+ emails overnight I see it is quite active. I have created a test case - hopefully it's not to hard to follow. I can compile and run it under redhat linux with no errors, but not under cygwin. There are 2 parts, the c code (munmap_test.c) and a text file (cygcheck.out) - as the mapping is using a file descriptor. I thought it may be useful to make the text file the output from cygwin configuration diagnostics. In both cases gcc with no other options was used to compile. Thanks in Advance, Shane Shane Mann Software Engineer Phone: +61-7-3259-2223 CiTR Pty Ltd Fax: +61-7-3259-2259 339 Coronation Drive, Email: shanem@citr.com.au Milton, QLD, 4064 Web: http://www.citr.com.au > -----Original Message----- > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf > Of Corinna Vinschen > Sent: Wednesday, 26 June 2002 18:08 > To: cygwin@cygwin.com > Subject: Re: cygwin 1.3.3 WinNT4.0 munmap invalid argument > > > On Wed, Jun 26, 2002 at 02:15:43PM +1000, Shane Mann wrote: > > Hi, > > > > I am having trouble with a munmap call failing with an invalid argument. > > munmap seems to have 3 error conditions, I can eliminate 2 of those (len > > <=0, and mem block size not divisible by page size), which leave me with > > address + size outside process memory space. Is this a common problem? > > Following is some debug output: > > > > Just Mmaped 20480 which is now at address 1A440000 > > > > About to UnMapp 20480 at 1A440000 > > > > The code works fine under Linux but falls over with munmap: > Invalid Argument > > under cygwin gcc. > > > > Any help appreciated. > > Not enough info. Please create a *simple* testcase and send it to > this list. > > 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/ >
Attachment:
munmap_test.c
Description: Binary data
Attachment:
cygcheck.out
Description: Binary data
-- 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] |