delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/25/19:04:36

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=Z6aqeiS4twSuprjpT5EDXFcCMhzLN
8ug6R6JNdtFWb+885/DyLh+GUDkNmMlTMi8iOQSJi97v6OACqWzVv/vBgmkq+9rx
Cy9cupwfUIMXXKojGiPKlfU6UDim30To9GlD9/qhdYGp1Iqm//e/p6scWJZ6z1R/
GqUC4FCzEb8aJ0=
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=lKuTvf1v+ra5hg7HnV/+Ak+G9DM=; b=bPL
3j3BL7MXhxhGMTuSabNRkRVHBcN18BPEDqwmzpsoJk+eJRvQie1K47d6UwrVyskB
yUfsVEChy2u1sLNAJGWB1Y3ASh8cZWXLfDoMUNcSFtTk74ql+ksFDVWa+DuGZ2Uo
jPq6z8ICCfZYeVQRN0Sivr4OGhmCVhfjYCPz6Z6M=
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=-1.9 required=5.0 tests=BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=trials, Hx-languages-length:2415, timer
X-HELO: NAM04-SN1-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=jR3bOQlX35NwdQG3saxmwPh7dUFn4FicdFjtPRQ4w+k=; b=MlGb4O2P9GpVAVZw1Mqp1QGv8ALAsMYwYbw3e6AKWfsNOaZ6Pz/pGbAsd8/KighmaCS7MlOiBvBq4HqO85x8j3zgenJaDWVPcmiZ2A9/5yZkNCy+gR/yfwJWwvBO29Fv8II7PBEBOxXbpEWDXclWpUuiQ0OGkbDOhxEzpEQTdtQ=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Fork issue with timerfd
Date: Tue, 26 Feb 2019 00:01:42 +0000
Message-ID: <e2cae181-b96a-2ce0-34b8-f8a48714c828@cornell.edu>
References: <ca9a38b7-c147-78a3-0660-70aa65b41eb3 AT cornell DOT edu> <20190224185524 DOT GE4133 AT calimero DOT vinschen DOT de> <20190224190908 DOT GB10574 AT calimero DOT vinschen DOT de> <20190224195255 DOT GF4133 AT calimero DOT vinschen DOT de> <133d62b5-afd5-ae73-b950-7b50471e111e AT cornell DOT edu> <3142aff3-c7c3-187f-233e-089c5dc15ea2 AT cornell DOT edu> <20190225100300 DOT GH4133 AT calimero DOT vinschen DOT de> <20190225202050 DOT GP4133 AT calimero DOT vinschen DOT de>
In-Reply-To: <20190225202050.GP4133@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 x1Q04ZdL028806

On 2/25/2019 3:20 PM, Corinna Vinschen wrote:
> On Feb 25 11:03, Corinna Vinschen wrote:
>> On Feb 25 03:21, Ken Brown wrote:
>>> On 2/24/2019 9:23 PM, Ken Brown wrote:
>>>> On 2/24/2019 2:52 PM, Corinna Vinschen wrote:
>>>>> On Feb 24 20:09, Corinna Vinschen wrote:
>>>>>> On Feb 24 19:55, Corinna Vinschen wrote:
>>>>>>> On Feb 24 17:27, Ken Brown wrote:
>>>>>>>> I'm seeing sporadic errors like this on 64-bit Cygwin when I first start emacs:
>>>>>>>>
>>>>>>>>           0 [main] emacs-X11 864 C:\cygwin64\bin\emacs-X11.exe: *** fatal error in
>>>>>>>> forked process - Can't recreate shared timerfd section during fork!
>>>>>>>>           0 [main] emacs 860 dofork: child 864 - died waiting for dll loading, errno 11
>>>>>>>>
>>>>>>>> If I exit and restart, everything will be fine almost every time.
>>>>>>>
>>>>>>> I think I see where the thinko was here.  Can you try this?
>>>>>>
>>>>>> No, better try this:
>>>>>> [...]
>>>>>
>>>>> Even if this doesn't fully fix your problem, the patch itself is
>>>>> certainly better than the former code, so I pushed it.  I also
>>>>> uploaded new developer snapshots to https://cygwin.com/snapshots/
>>>>> for testing.
>>>>
>>>> It's better, but not completely fixed.  At the moment I'm testing 32-bit only,
>>>> since that was the only arch on which I could produce the problem reliably.
>>>> Previously I got the error every time I ran emacs.  I just tried 5 times with
>>>> the new snapshot and only got the error twice.
>>>
>>> I withdraw that statement.  After further tries, it's back to happening every time.
>>>
>>>> I'll work on this some more tomorrow and see if I can modify the emacs code so
>>>> that it gives me the full error message from Cygwin.
>>
>> I had a late night inspiration, telling me that my timerfd
>> implementation has a design flaw in terms of fork/exec timer
>> sharing.  I guess I should fix that first.  Just ignore the
>> timerfd stuff for a bit, I'm working on that.
> 
> I pushed a patch and uploaded new developer snapshots to
> https://cygwin.com/snapshots/
> 
> Please try.

The x86 fork problem seems to be fixed.  I started emacs several times and 
listed directories without any failure.

I did get the following, however, during one of the trials (while emacs was idle):

1 [main] emacs 246 C:\Users\kbrown\src\emacs\i686-emacs26\src\emacs.exe: *** 
fatal error - CreateThread failed for pipesel - 0x0<0x0>, Win32 error 8

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