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:date:message-id:from:to:subject:references :in-reply-to:content-type; q=dns; s=default; b=o9tEDK9kskR7sTUy9 T3hjTf4L+xT50kzugKSabtwiLeiUkb6rZVz+M+8ohtu4Pop7x1mxZ0ObvlzX+YXN sSWOVnoWIhmszePhK34UEyrekPQCHxtVNX0ITYHdd2mfzMug6P6E5uE7X1+T40ML Fd2WFxyUwcRpp2r17vyltIkFZo= 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:message-id:from:to:subject:references :in-reply-to:content-type; s=default; bh=rBi8+IoPL/Iee1AcOp1TyKP 5q70=; b=jh8CyJ/KFIg8gVHr9WLxlwsIwczg17lsbFXX1Ts7reJlu+A4A0Gb0HN z6Zrdj6EIqOBJdPwR4RUomhleo7GqSxbYSGz/i3VMusKCoKG+DHcNI0E6QpmcoYn GRRZzteU/qQE71SYQbfJoIyKhyfTOxmwXwDYo71QrsIibJTdvL0k= 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=-5.3 required=5.0 tests=AWL,BAYES_20,GIT_PATCH_2,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=0318, 20170912, 2017-09-12, 0.318 X-HELO: lb3-smtp-cloud8.xs4all.net Date: Sun, 10 Dec 2017 16:29:20 +0100 Message-ID: <32797752e7dcb8b442cf3fcb9f9117cf@smtp-cloud8.xs4all.net> From: Houder To: cygwin AT cygwin DOT com Subject: Re: fork fails after nmap with hint address in an unmapped memory region References: <20171210133109 DOT GK18791 AT calimero DOT vinschen DOT de> In-Reply-to: <20171210133109.GK18791@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 X-CMAE-Envelope: MS4wfGlcOhEYFvX/F5yDTmZHCcO5DrNCn2wwape/CQva53Jr8apkTytKZ4MlXOTzli1i0HVUrLVt/aMmqFL1lqi8yYf/+IwQg1xL3+hGyWjEvRBKgsI22/Ho u3dUWSAGRwe3+OSp+gmvpJgHIBsF72OOFlRkL2bgTMvQcTGGdOBbVdkSE2MCPoHDwp3KARlHEtnB4A== 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. Reference: https://cygwin.com/ml/cygwin/2017-12/msg00011.html It might not help Stéphane, but it works for me ... Henri ----- 64-@@ uname -a CYGWIN_NT-6.1 Seven 2.10.0(0.323/5/3) x86_64 Cygwin 64-@@ sort t8150 | head abcde 1xxxxx0123456789 abcde 2xxxxx0123456789 abcde 3xxxxx0123456789 abcde 4xxxxx0123456789 abcde 5xxxxx0123456789 abcde 6xxxxx0123456789 abcde 7xxxxx0123456789 abcde 8xxxxx0123456789 abcde 9xxxxx0123456789 abcde 10xxxxx0123456789 64-@@ <==== prompt returns ... Good Heavens! 64-@@ uname -a CYGWIN_NT-6.1 Seven 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 Cygwin 64-@@ sort t8150 | head abcde 1xxxxx0123456789 abcde 2xxxxx0123456789 abcde 3xxxxx0123456789 abcde 4xxxxx0123456789 abcde 5xxxxx0123456789 abcde 6xxxxx0123456789 abcde 7xxxxx0123456789 abcde 8xxxxx0123456789 abcde 9xxxxx0123456789 abcde 10xxxxx0123456789 <==== prompt does not return ===== -- 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