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=RfQFGuaHQfskHHRx2VNV36RfoNceNHQjec0tg5pyOTIN/pEKliOQu sNPp+UVrqeIfoOBga8WhVGG8IOCU/4bzL8OpkbOo30eDDijTVpDhURDx2CW7I3cU Rcx4odB3AfcEVJel5oskFXABHrvAjNgABif5voEk5d+dAjjYdZz+vM= 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=qKN0icKkfM/a52soHwHIh2ZCDCQ=; b=hyyFB+5V6zkP0jP2WaJrGd6PX29E VHC7o3hCpg4NGaoFYoEKgcVlLvx+0+akjQ63uZBGIIv2D+5mWKqn6tEPicGuAF/0 LlHFQ1zxThwumPQy5DILYk57bNBvnBAO93bNtw8Zb4fTWzniu7tCutQKdKC0inDv 1WaHCANOCyY+/As= 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-Spam-SWARE-Status: No, score=-110.4 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:D*cygwin.com X-HELO: mout.kundenserver.de Date: Sun, 17 Feb 2019 17:39:55 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: fixup_mmaps_after_fork failure with cygwin-3.0.0 Message-ID: <20190217163955.GO4256@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <1d506605-a0af-12c2-6faf-ac74ab842182 AT cornell DOT edu> <20190217090820 DOT GI4256 AT calimero DOT vinschen DOT de> <20190217091308 DOT GK4256 AT calimero DOT vinschen DOT de> <0587a444-6849-b35f-60b1-700282408f07 AT cornell DOT edu> <20190217150706 DOT GN4256 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="I4VOKWutKNZEOIPu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) --I4VOKWutKNZEOIPu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 17 16:34, Ken Brown wrote: > On 2/17/2019 10:07 AM, Corinna Vinschen wrote: > > On Feb 17 14:56, Ken Brown wrote: > >> On 2/17/2019 4:13 AM, Corinna Vinschen wrote: > >>>> If I may place a bet, please try to replace > >>>> PROCESS_QUERY_LIMITED_INFORMATION with PROCESS_QUERY_INFORMATION > >> > >> That didn't change anything. Just to make sure I understood correctly= , here's > >> what I tried: > >> > >> --- a/winsup/cygwin/sigproc.cc > >> +++ b/winsup/cygwin/sigproc.cc > >> @@ -814,7 +814,7 @@ child_info::child_info (unsigned in_cb, child_info= _types chtype, > >> allow the child to copy cygheap etc. from the parent to itself= . If > >> we're forking, we also need handle duplicate access. */ > >> parent =3D NULL; > >> - DWORD perms =3D PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ > >> + DWORD perms =3D PROCESS_QUERY_INFORMATION | PROCESS_VM_READ > >> | SYNCHRONIZE; > >> if (type =3D=3D _CH_FORK) > >> { > >> > >>> On second thought, an even better candidate may be PROCESS_VM_OPERATI= ON. > >> > >> That's even worse. With that change, simply invoking 'make' leads to > >> the same error. > >=20 > > PROCESS_VM_OPERATION has to be specified additionally, not replacing > > PROCESS_QUERY_{LIMITED_}INFORMATION. Sorry if that wasn't clear. >=20 > Success: Simply adding PROCESS_VM_OPERATION to the existing permissions f= ixes=20 > the problem. Thanks for tracking this down, I upload a fixed 3.0.1 pretty soon. Corinna --=20 Corinna Vinschen Cygwin Maintainer --I4VOKWutKNZEOIPu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxpjlsACgkQ9TYGna5E T6AMWQ/7BzZ6bZQlz9Uw/6cxZ7goET85LFavlo3sz8p28rQzoYOss4LmtvsOfmOV fhRZka8Nf9fFNyaqeE43/Aw/UtMYWqfwreivg+Tdbfcbn+kGP/4iPfxI8i5aiasx FXF7yNyrMcYes5hhq84uAHwVeAuRaxnsGGDGRpCvET1p08+PdxJgjdrrUxc8/u8d 4a3mjaJfyrzCpS/l4PAMR9ETAyllKlXS0JlVXM5/LBToWFEDbwUu5kADOkSrE0Ss 4Tfak3mneLFdyht2p0852B3C5f9S+S+bgvE8GDQln0sLgrV8v8dS5xS2i+JC3JAZ 54H+wZJv0/BIJyByw+v7FW7svkg0g9qdvwZgbyDsdkxn2unh0PAJHnB3fDuhkz/i l2PRRwbU98KL0C/3JgBORlYF6yLdQC3ugNPVpFKrNJIQNhEf7grgRQhXF1O7XMmT sLdf1x38b5GoXT757bqG+jZivVWhrCEl/6KxtKTHdr4Y3nMFzfWKZa4uQ9xpR1kb 83ubW2g34JIjZnf8PMYGqrmVSkrwM5EWsRd5CZhi83UhrdDEHw85ExtJbjwm/0pR Dj76BFev+mxmZ1yg0Ib5yr0HI9FHYvbMgg5eCD5IxPwxD/3XlQCKguolMTJ7yx+O CEDmg+rfqbr6hP6lkniHhCUavTpC87GXzuKIr/Jj3/+AC+8bra4= =HJDj -----END PGP SIGNATURE----- --I4VOKWutKNZEOIPu--