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=r5CcH+rTrpi6S6TzoSJSkQ4Wkh3fF mXTyZ3TBchbJmkL1mooEPXQI/cvmajkh5MvDBnX74+wGtLEgQPv9D0oL2+fFk0Mx +xznmKNpR5I8HkzYVqiTOyOE0y8muIQXRnHFcaEfO0lSrKLe0J5Cbs0UFZSLZccn uMUrnLCire+Opw= 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=7Ykbnhz0ngiFXbOSf2UYErFOHgo=; b=Vx8 1/Q0GpGpqznpGNJoRs+lD3oasxDCwo/prhvfqT9Dgmw86bJzJ6O8Zkb94rp26p56 hszJ9OqfFLEjSPqHBnu3sb1yoOCdTWvRzlbkl1/Z0UTMTVdErstm/SnYEX54tw0n RFs44a7E9aTeTLi67pFzEp9xGKFOWjRXWD+pM6bg= 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=-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=HX-HELO:sk:NAM03-B, throughout, Hx-languages-length:2335 X-HELO: NAM03-BY2-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=2q5Jx8mCihldBpJePhN5edzBBukCyaFtSfVFmPMOoWo=; b=PEkrDrlNgVd4EBkq5MWk8+tMlZ0sypSpHrAxGs5mWydPwOdnnpGZVDhEVHIU2JMmSYov/ilUnP2RgM9ZtFLgZXvp3qNzOO5ynmDGGAz3zEokFQRnaxTx+Rp1cmiAxvwaTxJfLQQZtoOK9nXBl15/Fj1ry5Ux4GcwqmuM/ZSxL9Q= From: Ken Brown To: "cygwin AT cygwin DOT com" Subject: Re: Fork issue with timerfd Date: Tue, 26 Feb 2019 13:39:07 +0000 Message-ID: References: <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> <20190226085730 DOT GQ4133 AT calimero DOT vinschen DOT de> <20190226094838 DOT GS4133 AT calimero DOT vinschen DOT de> In-Reply-To: <20190226094838.GS4133@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 Content-Type: text/plain; charset="utf-8" Content-ID: <63CA8BF5B109C0468635566728787F60 AT namprd04 DOT prod DOT outlook DOT com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x1QDgMP4001688 On 2/26/2019 4:48 AM, Corinna Vinschen wrote: > On Feb 26 09:57, Corinna Vinschen wrote: >> On Feb 26 00:01, Ken Brown wrote: >>> 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? >>>>>>> [...] >>>>>>> It's better, but not completely fixed. At the moment I'm testing 32-bit only, >>>>>>> [...] >>>>>> I withdraw that statement. After further tries, it's back to happening every time. >>>>>> >>>> [...] >>>> I pushed a patch and uploaded new developer snapshots to >>>> https://cygwin.com/snapshots/ >>> >>> The x86 fork problem seems to be fixed. I started emacs several times and >>> listed directories without any failure. >> >> Thanks for testing! >> >>> 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 >> >> It's hard to imagine how this is related. CreateThread fails due to >> memory problems?!? A timerfd does not use a lot of resources, just a >> 96 bytes struct on the cygheap, a single page shared memory region, and > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^' > > This was at least the intention, but I accidentally created a 64K > region. Fixed in git and new snapshort forthcoming. Looks good so far. I've been running emacs on x86 for about an hour, running lots of subprocesses, with no problems. I'll keep using it throughout the day. 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