X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E34D13858D3C
Authentication-Results: sourceware.org;
 dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 2451Ka5U027485
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
 s=dec2015msa; t=1651713637;
 bh=YSmHSw784I+3sxMTDsVe0tz4+bgwbBEPjNGq55gQEnc=;
 h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
 b=ef/tobIgIunTqKQaERWOtR4zPwXEIgWXDwtiY+AjCdsGiwfrZoZ2bCMmgr8o1buAc
 x109uCiJkAyyT1mBajCxfQlV9BAI3+dA+vPWt6UD13BbCgb78KgmZbVdDg3sDRjgJY
 dKz6lorCYjHGAc+BVHEYoK026Y7VcYe41mdQrqPvC3Yxqmit3PM8VG6NHsPK1a40LU
 aNnu3yKbBKlpF0UE354+jA0zQKNbSs1vfUPZS0KM8cCCDnvjLsoxvDLavHS4PeXh+x
 CoZN1N4aciOUrzVACx5+srsDvlHX2SzKsF5BqWbxMVGk5t5/DuPrPPmYKChEYp0+vZ
 z1yAPYrVZiqBA==
X-Nifty-SrcIP: [119.150.44.95]
Date: Thu, 5 May 2022 10:20:45 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: mintty crashes on Windows 7
Message-Id: <20220505102045.fd6bfd46732e2eab0451e28c@nifty.ne.jp>
In-Reply-To: <CAGHpTBKphe_jSRS+9ihygODYGYYyzPfLPkt9H4rTDm9u7pMexw@mail.gmail.com>
References: <CAGHpTB+t+gCySabZZQvJstZSLresmoOTUUL8of9cwCdvmGySdg@mail.gmail.com>
 <20220504002343.4345bfe1630fa904276f0d37@nifty.ne.jp>
 <CAGHpTB+3V98eWDaHv7DCa133KWS39FaDFMUo=8qOJjxTFon51A@mail.gmail.com>
 <20220504011018.7c455cedb38571f786d72ae9@nifty.ne.jp>
 <CAGHpTBJyOgYAzEvs3NLb8AzkiujbCKjaf+w-QSJAou47g-J-Cg@mail.gmail.com>
 <CAGHpTB+tZX+z0ZkCNG-42bp4Pw+YKUXkccnnNqwN_tHRekk=UA@mail.gmail.com>
 <20220504201610.125888f234ffe063fa6773c0@nifty.ne.jp>
 <CAGHpTBKphe_jSRS+9ihygODYGYYyzPfLPkt9H4rTDm9u7pMexw@mail.gmail.com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, NICE_REPLY_A,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: Orgad Shaneh <orgads@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Wed, 4 May 2022 16:27:43 +0300
Orgad Shaneh  wrote:
> On Wed, May 4, 2022 at 2:16 PM Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
> >
> > > Reduced the revert to this:
> > > @@ -979,16 +979,10 @@ fhandler_pty_slave::open (int flags, mode_t)
> > >         code does not work as expected because it calls Win32
> > >         API directly rather than cygwin read()/write(). Due to
> > >         this behaviour, protection based on attach_mutex does
> > >         not take effect. */
> > >      get_ttyp ()->need_invisible_console = true;
> > > -  else if (_major (myself->ctty) != DEV_CONS_MAJOR
> > > -    && (!get_ttyp ()->invisible_console_pid
> > > -        || !pinfo (get_ttyp ()->invisible_console_pid)))
> > > -    /* Create a new invisible console for each pty to isolate
> > > -       CTRL_C_EVENTs between ptys. */
> > > -    get_ttyp ()->need_invisible_console = true;
> > >    else
> > >      {
> > >        acquire_attach_mutex (mutex_timeout);
> > >        fhandler_console::need_invisible ();
> > >        release_attach_mutex ();
> >
> > A few things about this.
> >
> > 1) bash exits with exit code 127 for 'mintty bash'
> > 2) 'mintty bash' does not work, but 'mintty ash' and 'mintty tcsh' work.
> 
> Right. mintty dash also works.
> 
> Notice that I did *not* set enable_pcon (not supported on Win7 anyway).

Even without that commit (and also with msys2 3.3.4 release),
something wrong with msys2 in Windows 7.

If you run script command (/usr/bin/script), bash crashes in
similar way. typescript file generated by script command is
as follows.

Script started on 2022-05-05 10:12:28+09:00 [TERM="cygwin" TTY="/dev/cons0" COLUMNS="80" LINES="25"]

Script done on 2022-05-05 10:12:29+09:00 [COMMAND_EXIT_CODE="127"]

bash also exited with exit code 127.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
