delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/18/09:28:59

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=d8fZEQVPxl226N3D5l8z7hH4OXhQP
dRQuTkjiyGafLeXko7cdrGtijbTEYY2vJp9B7qIGJrWlcFUspvbgcO2vHfM7D2lU
JpZdxidxiSi+uyd/jqWbr7Ya07bF/wDLtrml/bKuKwwooKnZXikhOTjORONYzcec
f5jTP7GGwHJHRc=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=l/h2Uh3LHSVyEeIUo5ITdmLfnVE=; b=R57
cVHqFDt8yg0uGdp+wS8CPGdpp08cqX4zJ6W9pPDU1DFxAE3oL6ySozxYB7qQMh4i
RqPD7mTzIn1J4eDH9h/q8zfCgORBkKRd7EQQxrqBmql3FH/f+HufCQa9gIKvnXHj
X+lxOShxuLbR//tMU9GogL4+8F1kuFYm7yV1E/Pw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-11.4 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=
X-HELO: NAM03-CO1-obe.outbound.protection.outlook.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EbWMLCA30iWmPao8a6Iap5nfcfoB0I980JRj7uDMOgQ=; b=oEdtlECKQVZ7r2RvlBzzN273rkTDeE6Wwyt3O8PDwCKdIdxe5nKkheaAKXdh7BsatjTT8bjhX4/LOXUj0ACpuQ9iUvg6bXHkE86y2reXum19GvKcvZ5X+3UQAd/Sy8lKs1KuSRJOCoo5q+HGxkrApph9Ugo64ImpjCWNlwV0qfQ=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: fixup_mmaps_after_fork failure with cygwin-3.0.0
Date: Mon, 18 Feb 2019 14:28:43 +0000
Message-ID: <16472397-2afd-dc23-e0b6-7a5069160b78@cornell.edu>
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> <d2910b3c-d50e-c00e-90e0-0c54be6702fe AT cornell DOT edu> <20190217163955 DOT GO4256 AT calimero DOT vinschen DOT de> <20190218101009 DOT GU4256 AT calimero DOT vinschen DOT de>
In-Reply-To: <20190218101009.GU4256@calimero.vinschen.de>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-exchange-purlcount: 1
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x1IESvsG028519

On 2/18/2019 5:10 AM, Corinna Vinschen wrote:
> On Feb 17 17:39, Corinna Vinschen wrote:
>> 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 = NULL;
>>>>> -  DWORD perms = PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ
>>>>> +  DWORD perms = PROCESS_QUERY_INFORMATION | PROCESS_VM_READ
>>>>>                    | SYNCHRONIZE;
>>>>>       if (type == _CH_FORK)
>>>>>         {
>>>>>
>>>>>> On second thought, an even better candidate may be PROCESS_VM_OPERATION.
>>>>>
>>>>> That's even worse.  With that change, simply invoking 'make' leads to
>>>>> the same error.
>>>>
>>>> PROCESS_VM_OPERATION has to be specified additionally, not replacing
>>>> PROCESS_QUERY_{LIMITED_}INFORMATION.  Sorry if that wasn't clear.
>>>
>>> Success: Simply adding PROCESS_VM_OPERATION to the existing permissions fixes
>>> the problem.
>>
>> Thanks for tracking this down, I upload a fixed 3.0.1 pretty soon.
> 
> Please try the today's developer snapshot from
> https://cygwin.com/snapshots/

Works fine so far.  I've rebuilt emacs on both 64-bit and 32-bit with no problems.

Ken

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019