delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/30/06:20:54

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=Dj6zoQfSkRzvVl2qRX8GihCjJxTxzB/JTFaBhf//pOKnNNYCseTqf
7POtK17mU9juodov7siun9NpWcH/Y2Es3WCOVszEh11FhnuvL0Jxa2RN6Cl5YWsw
J64zKA6aD1eiqkH/Fw+cqW8Q4qhb6xIEpAgnFRk76gpS00+r6TxkIg=
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=cs/cHvKDSUeQE57Ao2OXgyT5vq0=; b=E0cGhykfmEM47JiWqJEjbX8xJg2I
3KMn2HBVe4j4eY7xE2A8gepP3ee5LcpgvvKOpR0kmdIQr8bo42H/li5GUCT0pCGu
uMF4i/X8/1ZAbav7rXfilJs8PLuNxhxgIjs0QaicQO67a+I7IyOkEOuJrTjFnyvO
mKkVR62lGcqYQqg=
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=-97.7 required=5.0 tests=BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=dated, denis, excoffier, Denis
X-HELO: mout.kundenserver.de
Date: Wed, 30 Jan 2019 12:20:38 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Recent snapshots somewhat fail under W7
Message-ID: <20190130112038.GD3912@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <C30559ED-BDE5-4BC0-B9C0-1499D5832B29 AT Denis-Excoffier DOT org>
MIME-Version: 1.0
In-Reply-To: <C30559ED-BDE5-4BC0-B9C0-1499D5832B29@Denis-Excoffier.org>
User-Agent: Mutt/1.10.1 (2018-07-13)

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

On Jan 29 23:50, Denis Excoffier wrote:
> Hello,
>=20
> I tried the (numerous) recent snapshots with W10 (1709) with no
> problem (except for the isolated 20190115 snapshot and also that =C2=AB cp
> cygwin0.dll /usr/bin/cygwin1.dll =C2=BB now fails but this is another
> story). The recent snapshots with W7 fail somewhat (but the system
> seems to function more or less), i've got the following message with
> W7:
>=20
>       0 [main] tcsh 15528 fixup_mmaps_after_fork: VirtualQueryEx
>       failed for MAP_PRIVATE address 0x6FFFFFA0000, Win32 error 5 368
>       [main] tcsh 15528
>       D:\Users\dexcoff1\dexcoff1\cyglcl\uxl\tcsh-6.20.00\bin\tcsh.exe:
>       *** fatal error in forked process -
>       recreate_mmaps_after_fork_failed 700 [main] tcsh 15528
>       cygwin_exception::open_stackdumpfile: Dumping stack trace to
>       tcsh.exe.stackdump 0 [main] tcsh 19080 fork: child -1 - forked
>       process 15528 died unexpectedly, retry 0, exit code 0x100, errno
>       11 No more processes.
>=20
> I had a look into sigproc.cc <http://sigproc.cc/> and noticed that
> recently (commit 69cc7a068656b5c6ef07ca079a213f801e02e650, dated
> 2019-01-27, DUPLICATE_SAME_ACCESS has been replaced by 0 in a call to
> DuplicateHandle(). I switched it back, re-compiled and the fork
> problem above disappeared. Don=E2=80=99t know the impact on W10.
>
> HTH.

Kind of.  This patch is not switch to 0 something, but from automatic
permission inheritence to explicit, minimal permissions required.

I was going to ask for a testcase and more info about your system(*)
but then I was able to reproduce it myself.  It seems W7 needs more
permissions for VirtualQueryEx than Windows 8 and later.  I applied a
patch.  New test release coming soon.


Corinna

(*) It would really be nice not having to ask for these infos every time.

--=20
Corinna Vinschen
Cygwin Maintainer

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

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

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxRiIYACgkQ9TYGna5E
T6DMuA//TDoH9fLIA+TqBxp06vKjzVtOlqDOIlLpybfPzgmaQoD2bnqtZhTYfziu
xSX9TXnHpe7X1L9V2D+By1sljmtxjd0a0nOoTg2/qIlLJgBe+IWflBCXRxw/cBVX
Oh2TxOpUbWUvdYNmaLxqpNcA9P7ovTLMODCHcUezlUrF5ybcoRvO9/uJTi/Xncpi
LdYDfQ951uWaSWZv0HStLQ6ymyhwrO7os9OkTl0tDj5AJigST5NxJP0dAKiiSYP9
BCzAOOpFC/dgsmQ+uzQBpmVOXOvu+TGStRKZyp8f4PJzYfqKg8pIYaJEzbIr+cAZ
AsHjRdVoUgcAp6SZ9oxXh+/BerTGjYXukzrhPHcWV+CSfMYE2vWPjqLRCylxz6wC
qV4k22ajg2J18DSmvz1fB5n/qfGf4UtnPuP/ASi89BwuxStBzOhMbgOgn8fOKjbk
A8+dH5Ileufj1sDVP3WLxASYdYKuIr2dbLbeVAMEe/75x8h6sar3bHhTWUTrsrWY
9GE/Mf2uS0xnD3qRE+X1YlLj3df6/wn8bxDK1BCShvCaOkpOE3tWcctHGxqjI4Hb
gehLy7ngrl1/E+luKTiQnkSsG9UprUr3yM7rH6jqrcfpsBSv/2DLSjXux3wNDIRd
F4KQ0oMQWRuJMrDeuwvT2iHGLFxNatN7XDa09XtagKCRxxrkcWs=
=XZ2g
-----END PGP SIGNATURE-----

--JHjDRUnf1JOMxzko--

- Raw text -


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