delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/05/27/08:50:34

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:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=ls0uZ8NHNhG1dfuX6IRb5CS07cWboWATpb7kibp6A0n70h9FsuR/1
Hu+LbtUL1eImPqE9bhGFytiAJH/Ng8ZDo1jT8HKdkiIJniZg4WAp43RcqtbfBajI
Viut5S36QrzM+nl+9lvYMmzT0kqhkIsyOe/73mvoy6M/ji9NCUiE7c=
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:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=tL7PPfgSbCLJ2Q3iN7AxFUSpAZ4=; b=r0kcbtr7d6mUVo9vcJZlx0jZmmjq
BYWCuUIRIcIkN/KYilzC4X7b4ytu/6VJPG4v3A8EoPXGNDSjSJ1WqeD4x1KqBc2n
WaDbod6RRtXisc03aaBrzaFHzI88rl7IGQfq6Igkq2pigiQysGvJRsJhJXIOr8zf
YtyaVIMn2Ta6tbQ=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 27 May 2015 14:50:11 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Johannes Schindelin <johannes DOT schindelin AT gmx DOT de>,
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Subject: Re: Regression on XP with "Fix OPOST for non-Cygwin pty slaves"
Message-ID: <20150527125011.GI16927@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, Johannes Schindelin <johannes DOT schindelin AT gmx DOT de>, Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
References: <a36a28acdd2deef74569904ab0601c0f AT www DOT dscho DOT org>
MIME-Version: 1.0
In-Reply-To: <a36a28acdd2deef74569904ab0601c0f@www.dscho.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

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

On May  1 16:25, Johannes Schindelin wrote:
> Hi Yano & Corinna,
>=20
> I would like to ask you for help with fixing a regression I am experienci=
ng
> on XP (and XP only, the problem does not occur with Windows 7 or 8). It m=
ay
> be a 32-bit issue, but I cannot currently test on 64-bit XP.
>=20
> Background: I am the maintainer of Git for Windows and we are hoping to
> release a new major release Real Soon Now, based on MSys2 (which in turn =
is
> based on Cygwin). To make the user experience a bit better, we want to al=
low
> users to double-click a "Git Bash" icon that simply launches a small,
> non-console MinGW executable which in turn basically sets up the PATH and
> MSYSTEM environment variables (as required for the MSys2 runtime) and then
> launches a mintty with a bash inside. Please note that this small executa=
ble
> is *not* a console program but a GUI one (-mwindows instead of -mconsole)=
 so
> that no console window flashes before the mintty window is shown.
>=20
> Now, this strategy worked well so far, except that I recently found that =
Git
> Bash does not start in XP anymore, instead the mintty process just sits a=
nd
> waits for a while and after five to ten minutes, the mintty window appears
> with the message:
>=20
>     Failed to fork child process: Resource temporarily unavailable.
>     DLL rebasing may be required. See 'rebaseall --help'.
>=20
> (Needless to say, a 'rebaseall' does not fix it.)
>=20
> This problem does *not* occur if I call mintty from a `.bat` file or from
> `cmd` -- but as I said, I want to avoid flashing console windows -- and it
> also does not happen if I run a mintty from a freshly installed Cygwin (w=
ith
> cygwin package version 2.0.1-1) where the shortcut points directly to
> `mintty` which is a console application.
>=20
> This symptom makes me believe that the culprit might be that msys-2.0.dll
> somehow expected an attached Win32 Console, and spins in circles when the=
re
> is none.
>=20
> Now, please note that I do *not* run a regular cygwin1.dll but rather an
> msys-2.0.dll that I had to patch even more to support users of the previo=
us
> Git for Windows version (which was based on MSys1 and did things like
> allowing users to override their home directory using the HOME environment
> variable).
>=20
> Starting with the diff on top of cygwin1.dll's sources, I bisected the
> problem down to the commit "Fix OPOST for non-Cygwin pty slaves":
>=20
> https://cygwin.com/git/gitweb.cgi?p=3Dnewlib-cygwin.git;a=3Dcommit;h=3D06=
3e7da36fda3f42619d7df606d9f3d4920605aa
>=20
> With this commit reverted, on top of the MSys2 and the Git for Windows
> patches, the mintty window appears correctly again when launched on 32-bit
> XP via said GUI executable. You can see my current state here:
>=20
> https://github.com/git-for-windows/msys2-runtime/tree/aae52e6d23e92cf71e6=
f7777ff9bb49588be8fdc
>=20
> I would like to ask you for advice how to debug this regression further
> because I really would like to revert the revert and have a proper fix. Or
> maybe you have an idea how I can fix it directly?

Hmm, this seems to be another fallout from introducing different OPOST
processing (via spearate pipes) for native and Cygwin processes.
Does the patch from https://cygwin.com/ml/cygwin/2015-05/msg00282.html
help, by any chance?


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--gTtJ75FAzB1T2CN6
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVZb2DAAoJEPU2Bp2uRE+gacgP/Azmgyp6dYr90hp43Qd1Evey
Yl+Grv6vlvUrPLoxR3D2V7xKQ8aI3QjPnuFWGuX+wqYkU+Ozvm6x087Z98Siq1jK
DP6sVd7IKnrW5Jz1+vfYnItfQN9p5qiJ9Xt9j4wlDMSuzChz5qQhUJ4Z5CS+RYG8
oK/Ak9u9Uk/yGEjs/d2RsGar6riv0za4jf3pQMOrv7H+gjskZdFKfGKe5HzVijxJ
yUXRULLoQ3vm0mT44fq+vlVolGpaZL3Bn773+WTCBfX7+GjkOQvl5mb54o1hlpDD
qp/0ek3dguy/r8Ta5xVendB66sO+D3fQaKejGUCwboUNauy/nQC8vnYAXpTh7BMv
18lTnCuxHRmrhrcvcyw48D9JqMYg1E7QVZjU4kppT3lpiCFgBpPPJT3cVvWjF5kK
gD6iyCQENAH+zXINEBH8KVBkZqgq9pUrOlFIkm7W1nAJlaGXSd+5D2VbPdmRQQpM
120roKZqcKzDdhPO9dcoT8A43IkbikS0SOMjbIQcuKmQH7OkK9H9Q4tcdD3PU5uZ
uk5yDWEyoF1QEr0NGwKi020Q9CcYiofaqAgu/BWVZP/YCY3q4K2U0iuk9fCJcRQ+
G2Ewei/laDeESsL2SvkoqRLuGr5s1FHDr5TNkxFmfalFJJGWV9V7eOAm8kBm9A19
CVHjRg0xNBjGYmp4imTg
=wLSq
-----END PGP SIGNATURE-----

--gTtJ75FAzB1T2CN6--

- Raw text -


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