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=aLKnmbUNwFSf+//j7dyYXYgAgzw698s7sZ70UQQAQHUv/D8g+Hm5I 6iTaLMdl1pOS6C9PmYkUCXphzrbrFQvueu76ylkJw8ysNV/lnCOifYbxbOWhyesM 1k5Xy2RojEZtZ+HvN8/3eD/70XG8t3NS7bRHc8/QbPA0I3RsBKlnBI= 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=0veWR6Qmbq86xmHin0mn0GFrKOU=; b=Uh6VLXnNT7TIIQgAKk/kv3Vd+21E oesDEPspiVlIJnjRd3eWiPFfPD+sHqtTSKtrrTaeaOc64PrVMuos13Wk11PoNkUF UQzadF5zn/ucGZbBxooc48JQVM0hvBMje1kBQYYidmnfJUQhPtdBOiX1/cIao8YI DNrTBRjjgyPvJ04= 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=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mout.kundenserver.de Date: Tue, 26 Feb 2019 09:57:30 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Fork issue with timerfd Message-ID: <20190226085730.GQ4133@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RUqJLqMNe5u4kDWT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) --RUqJLqMNe5u4kDWT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 fir= st 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 fo= rk! > >>>>>>>> 0 [main] emacs 860 dofork: child 864 - died waiting fo= r 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 happeni= ng every time. > >>> > > [...] > > I pushed a patch and uploaded new developer snapshots to > > https://cygwin.com/snapshots/ >=20 > The x86 fork problem seems to be fixed. I started emacs several times an= d=20 > listed directories without any failure. Thanks for testing! > I did get the following, however, during one of the trials (while emacs w= as idle): >=20 > 1 [main] emacs 246 C:\Users\kbrown\src\emacs\i686-emacs26\src\emacs.exe: = ***=20 > 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 a thread per timerfd. This include dup'ed descriptors which share the timerfd resources with their sibling descriptors. Corinna --=20 Corinna Vinschen Cygwin Maintainer --RUqJLqMNe5u4kDWT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlx0/3kACgkQ9TYGna5E T6AhAQ/+OReha7bORLvwMrT8ZtKexNi3zzkHOwBB9YCx2ksSyTtFtedajTpLXcRW YWHe+cgCT/GCuR24cm82BOjHXR+Y0dqpgcEADmpmtMSyYRzl28Rr+BysVO0MEpvQ 7NjV6bCfGj/xJMMCPm/ELqQU8lJBWJ6xRGFHBXwl6mIEkTGgLamp1X3xIO9XDEVV IowcQPKQIfcyQ07dwMSlgOjobjXwAFGGT2/gbUDlQ1y8TR9BeOmBqSs/uJgjuwr1 YX/EDmjjFFEI3J9ltjwIVNwooF7vT+4NwgB9pXkWv1bcqnmjbmIPIyZdwX0ITQOk Ay+Jdcf3yd6YNE9MAujM10rGndYmSR8ewN3f5xfroLh11Ux2dP/FdWoXUVf8DTcG GcbW1lkGTtI5eCKSkH7drB8EjzTRMPkO+QCqXPX/sSszv1R0m9X92r78GBFO23Ob h1pbCuEA/fSVi+MuPHhzstjlCje1F3aCKJtW4VPttsObkXeHSNQTCr62wqn5Sv8E hCqeh+Nz/VuJH75H65DM3StfIz1rLGCDRd7T4puh+rkpJmTNu9JQk6JftfXvwMPk UESjlQtRZRhg4h9Vbe2o4l2yD5XWvaU2i2pOK12YaeIuZ+gvMJkxFNPci4Hm5fcN g8r2mE1pffNiEPnXvoUYy342P98J0AFaXiEPnQwtUGzhDxhTik4= =Qxuh -----END PGP SIGNATURE----- --RUqJLqMNe5u4kDWT--