X-Recipient: archive-cygwin AT delorie DOT 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:subject:to:references:from:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=xorDFfR/Gp7CVD9R uZPiiQ0DV/yZQJI73X6heQP/ufqFW8mazb9yCtDXTTzMIJBy1VExE5ATJXoQ4kWj KlWEyv/8W3ItT1TX7DQHbGN7owkbs+DSGlDP7+MO82UoXTTQf/7o1m+VG+g7O+rS E87hd+++dKVNdHk7hSYgsQoFyIM= 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:subject:to:references:from:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=NNczX72hyVotr55E1/USCq fCkoI=; b=tlHNg4CVR+0AGgMNXKwec5PTlksnff426CnZKze+x40wxJWw5YcXy1 ziTvQiMWnWckI7ovxo09m5YF8c7IjG3VN7FDKa0ikFoR8vEkPxtP/4YD/CO36haw +XFoxfY93DFwDjuIQPfx0YpxzQoiBj4sG3ddvFGIbuSiBEX3wD2OA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:957, H*M:yahoo, Hx-spam-relays-external:ESMTPA X-HELO: sonic304-22.consmr.mail.ir2.yahoo.com Subject: Re: fork fails after nmap with hint address in an unmapped memory region To: cygwin AT cygwin DOT com References: <15510444518 DOT 20171209184819 AT yandex DOT ru> From: "Stéphane Mbape via cygwin" Reply-To: =?UTF-8?Q?St=c3=a9phane_Mbape?= Message-ID: <77dab900-6ce1-6a28-b011-4d233fda408f@yahoo.fr> Date: Sun, 10 Dec 2017 17:13:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <15510444518.20171209184819@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Worked for me. Thank you. On Sun, 10 Dec 2017 14:31:09, Corinna Vinschen wrote: > --0eh6TmSyL6TZE2Uz > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Dec 9 15:58, St=C3=A9phane Mbape via cygwin wrote: > > Hello, > >=20 > > While embeding luajit in a c=C2=A0 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" > >=20 > > There is a sample code below. > >=20 > > Thank you for reading. > > Thank you for the testcase. I pushed a patch and uploaded new developer > snapshots to https://cygwin.com/snapshots. Please test. -- 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