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:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=iGMJfzpp8UwDMNyj/Ihnkrwe6J7Ysa3UG1VBUFg2NOpsD0zUEGAom rI+wbmJ1+CgQVG9jb8jIXShkDE7J+uGIt4WsqEx29wwUsCnzIRgj/jo01Eg8e7Xi e2nlcJwzKWLLAX2QV9Za8EPPZN8N2aHhCh1N0s5KTPmYZ2hLoI+ry4= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=koQ/xJknDtjmEt4cUE+3VhP8MUE=; b=bWeHdKj9Zh7fV/tbX4rXfkB8Fg7h +vt4mmbyvX8d6peOlvgnHhZcJlV/zbB79kbYCujXy4ma1P2rSwSuFicUGw8ZiaBa qD7tH1w8kXRhipgypYoXBsxc6pp5dCtx79JBR6suk0xYH7na67ds5QIYaxn06TbD TIxWjwalfcMDJP0= 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=-100.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: drew.franken.de Date: Sun, 10 Dec 2017 19:04:31 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: fork fails after nmap with hint address in an unmapped memory region Message-ID: <20171210180431.GM18791@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20171210133109 DOT GK18791 AT calimero DOT vinschen DOT de> <32797752e7dcb8b442cf3fcb9f9117cf AT smtp-cloud8 DOT xs4all DOT net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MAH+hnPXVZWQ5cD/" Content-Disposition: inline In-Reply-To: <32797752e7dcb8b442cf3fcb9f9117cf@smtp-cloud8.xs4all.net> User-Agent: Mutt/1.9.1 (2017-09-22) --MAH+hnPXVZWQ5cD/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 10 16:29, Houder wrote: > On Sun, 10 Dec 2017 14:31:09, Corinna Vinschen wrote: > > --0eh6TmSyL6TZE2Uz > > Content-Type: text/plain; charset=3Dutf-8 > > Content-Disposition: inline > > Content-Transfer-Encoding: quoted-printable > >=20 > > On Dec 9 15:58, St=3DC3=3DA9phane Mbape via cygwin wrote: > > > Hello, > > >=3D20 > > > While embeding luajit in a c=3DC2=3DA0 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 r= egion > > > will cause all forks to fail with > > > "fixup_mmaps_after_fork: ReadProcessMemory failed for MAP_PRIVATE add= ress > > > 0x6FFFFFE0000, Win32 error 299" > > >=3D20 > > > There is a sample code below. > > >=3D20 > > > Thank you for reading. > >=20 > > Thank you for the testcase. I pushed a patch and uploaded new developer > > snapshots to https://cygwin.com/snapshots. Please test. >=20 > Reference: >=20 > https://cygwin.com/ml/cygwin/2017-12/msg00011.html >=20 > It might not help St=C3=A9phane, but it works for me ... >=20 > Henri That's... surprising. But good to know. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --MAH+hnPXVZWQ5cD/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJaLXcvAAoJEPU2Bp2uRE+gnSEQAKIPdse1O8foyTaIta3yB17B zGjSCZ7ttVH5LJkrMUYl1fZYo05wBPWRlIox01Q43ppEzQidc7YQj2M1DAEtLuki RZ7Sqh+mEuQHQU2IK0d6yprk6LGt5wMM5j9xRrv/9b9Nk+4ta11vPJQFiGLo051i ErcBUPIttu+2L0oKfn5xz5oDcahmxDR3hVivmYS5UDCYGiqCdUtsk/FGbpKDs2As VcStSQUSjTXblqYjAJfY3X2NcW0zm4QqJ0TX/PLQqFewbi4WovutWgN3cGZbJKdA smb8cVV/dfa2rxDdc9FTU/DkFKbkIR0+M3a2EOyPyW0mzVWJSBIT4M2RMw2JvfWv pIcmXuPWsGHdSes/zapjLf+a98cg4m8mQZj4IOQt6apovEMG2N007w5VowaENOXL KDlL+EutGzwiW6R2/MQhVzEwiPHUgjGGT7QCPxxwggeeY022jhu2Vdo4tFGFuuSX 9ivUKb2FcBcqHuzWgSMHIlc8WOtMIv4u2oZ4fQShk4eKwgCyPwGgRrBja7AfBYr8 25QD4lqcd26W+i20SZZ0i6owZo3X3MVjFocD/U8LhQLOUAY2yy6ij3ADk0KeZhJH eF56x9xxfx6zM0iL7S0iQFkR+eDHTIpspF72uhbLK0sev4HnDv7bIH24tMGzXDp+ 4ND8GI2BzDSHdEwWxPgI =p+jV -----END PGP SIGNATURE----- --MAH+hnPXVZWQ5cD/--