From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53660 invoked by alias); 10 Dec 2017 16:13:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 53650 invoked by uid 89); 10 Dec 2017 16:13:53 -0000 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 Received: from sonic304-22.consmr.mail.ir2.yahoo.com (HELO sonic304-22.consmr.mail.ir2.yahoo.com) (77.238.179.147) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 10 Dec 2017 16:13:51 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Sun, 10 Dec 2017 16:13:49 +0000 Received: from smtp171.mail.ir2.yahoo.com (EHLO [192.168.2.118]) ([46.228.39.38]) by smtp413.mail.ir2.yahoo.com (JAMES SMTP Server ) with ESMTPA ID -280127674 for ; Sun, 10 Dec 2017 16:13:46 +0000 (UTC) Subject: Re: fork fails after nmap with hint address in an unmapped memory region To: cygwin@cygwin.com References: <15510444518.20171209184819@yandex.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 18:04:00 -0000 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 X-SW-Source: 2017-12/txt/msg00076.txt.bz2 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