delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/26/04:51:44

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=MysoRuyX4aoiU1XRzCPbZb6TGabkb4UgqkGFTb23123PXvC6AKB8g
+BnSZgbpiEB3Mmr8tGCBThTmU3vqd9r6AaBNSkSEH5VOuK940vt2jfPgsCVMeu6B
wkCzVkC5oBMtOP0ieZZKH18KIQhGLjbvEejwZPbI9CACvXaA6IZ00c=
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=KXY7Ab4P9BnH+TKoH8pQMdyMBig=; b=XVQqtQJicXOdR02aEEABUSypbJzM
JYn+5ZFpe1uSAfNZnBbgn/LmYndE4sDlzQco0l20sRZmj2OJk8tG2bZSRckbOkWn
mYYh9rloeXD0qkZLNOn5kAzYFK1jcKxzYqA9uIL4cOymR8oIoP9I2Y9bzUbQFpKR
wE3YXZWJwZy0Fw0=
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=-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=forthcoming
X-HELO: mout.kundenserver.de
Date: Tue, 26 Feb 2019 10:48:38 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Fork issue with timerfd
Message-ID: <20190226094838.GS4133@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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> <e2cae181-b96a-2ce0-34b8-f8a48714c828 AT cornell DOT edu> <20190226085730 DOT GQ4133 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20190226085730.GQ4133@calimero.vinschen.de>
User-Agent: Mutt/1.11.3 (2019-02-01)

--NPWyolIJAVLYbHY6
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 f=
irst 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 ti=
me.
> > >>>>>>>
> > >>>>>>> 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 happe=
ning 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 =
and=20
> > listed directories without any failure.
>=20
> Thanks for testing!
>=20
> > I did get the following, however, during one of the trials (while emacs=
 was 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
>=20
> 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.

> a thread per timerfd.  This include dup'ed descriptors which share the
> timerfd resources with their sibling descriptors.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--NPWyolIJAVLYbHY6
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlx1C3YACgkQ9TYGna5E
T6DWFxAAkiYzy5EfZE1PEiyrLaW55bsLDQsBHYhkcHIiOMqWRJJw3/3hMJ8fH7sp
oHeerhiA29G0+u2sS6Qz4ZY6nKYB3CRpfuS9b2dtfyedvJT64ucmjB9KkTYxIChz
pC+zu0joQNd3yAZ3pUZaJDEeMSmA86bEtUsxJWaWX8ypvo1mFK/Idv8QtXuQCk0I
VQDnoVaS+VkYhbXJzLuQcny3yTJvsB3ab4cbNpOmrGySWi3dppbfFnkdmnDkjmXR
vk3sS801HAhz5mN0JO6HdXmWR5Ms2ja4Z8IL4au/Cm9yKoX6pkPEynL872FufNDm
+D72H2ZaQt8j5YbGsW1Xc3G+JrAzOprZg2Djrm2Odfu3HNYfHx2PU3CDyo3jWqOQ
k9pjDjsh023C9rqZ7FHovhSTyHiYA/TbWER2sRIug6jwMX0ho4QYtOiPTSvxyUO2
0thZzFAmlXUc0iDyvYBAYwgpfMqJG5JWG72V0C55kXuDBXhxkhjv7PT6RsKcKZv3
vql7eAzBRDK7wtv0HQ/kIHW7nnEBGbMsxOJVhtnwr7IHOSK4ZeZW1iaAekdQJo1/
lHX0TBNtDcA6SMWx5xPyoD6FhPs07Bujw68/AwjsiBvghgKqsFeyYQ3Xh1mF7qKu
J5rHqcpwvDunhaDKddERM0evk2kUsTRnI94LyFxg8oe+29Sfky4=
=DNHA
-----END PGP SIGNATURE-----

--NPWyolIJAVLYbHY6--

- Raw text -


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