From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73159 invoked by alias); 27 May 2015 12:50:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 73144 invoked by uid 89); 27 May 2015 12:50:15 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 May 2015 12:50:14 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 49105A807CE; Wed, 27 May 2015 14:50:11 +0200 (CEST) Date: Wed, 27 May 2015 12:51:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Cc: Johannes Schindelin , Takashi Yano Subject: Re: Regression on XP with "Fix OPOST for non-Cygwin pty slaves" Message-ID: <20150527125011.GI16927@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, Johannes Schindelin , Takashi Yano References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gTtJ75FAzB1T2CN6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-05/txt/msg00348.txt.bz2 --gTtJ75FAzB1T2CN6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 3476 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 Content-length: 819 -----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--