Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: <shanem@citr.com.au>
From: "Shane Mann" <shanem@citr.com.au>
To: <cygwin@cygwin.com>
Subject: cygwin 1.3.3 WinNT4.0 munmap invalid argument
Date: Wed, 26 Jun 2002 14:15:43 +1000
Message-ID: <001001c21cc8$239ace20$8e90a8c0@citr.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
X-MailScanner: Found to be clean

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.

Regards,
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


--
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/

