X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=RyZeOIWR4Bcw74Pk
	eU6LsIncqmM7o1FiZZ7GulEgobFIYTw0pUXSA+kimMPnacgjBVj3ztBhqhKy4gP0
	wIOx1pLcdVhO3UqW3e4yKo1+aKYHMy64lmFAgL+uTJIQvzuFWB6g2DRXfRKWlIjQ
	ZZPN/0AxEr0XLJNXVK1EfhwRwNg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=7TMHNu9nRXgwSE5Un1QJVW
	Y9ZPQ=; b=vq0COskfO27PG8+t9SZo+GP/GWJGCQPDGO0XiUHVL4ZGdvZttZdqTS
	xc779rTNEaKViQzekiY/GcPVOCs3Dt5vpYH480lYe/a++DGSHtR8OGA8yi9oG1Vy
	h2XhBQl5fSQLGmKM8eNedMrh/LfIwI7jkiZ8BrrzqsMQURSkmnFA8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, Stphane, st=c3=a9phane, mbape?=
X-HELO: forward101o.mail.yandex.net
Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Sat, 9 Dec 2017 18:48:19 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <15510444518.20171209184819@yandex.ru>
To: =?utf-8?Q?St=C3=A9phane_Mbape?= <smbape@yahoo.fr>, cygwin@cygwin.com
Subject: Re: fork fails after nmap with hint address in an unmapped memory region
In-Reply-To: <b431898c-30f5-2847-c922-0f25a525ef76@yahoo.fr>
References: <b431898c-30f5-2847-c922-0f25a525ef76@yahoo.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id vB9FoPfk005885

Greetings, Stéphane Mbape!

> While embeding luajit in a c  program, I found myself unable to fork
> processes.
> Investigations prove that it was related to nmap.
> To be accurate, calling nmap with hint address in a unmapped memory 
> region will cause all forks to fail with
> "fixup_mmaps_after_fork: ReadProcessMemory failed for MAP_PRIVATE 
> address 0x6FFFFFE0000, Win32 error 299"

> There is a sample code below.

You forgot to mention Cygwin version you're using, and please provide the
sample as an attach to save people the copy-pasting issues.


-- 
With best regards,
Andrey Repin
Saturday, December 9, 2017 18:47:12

Sorry for my terrible english...
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


