From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id 2E9B73858D3C for ; Thu, 5 May 2022 01:27:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2E9B73858D3C 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 Received: from Express5800-S70 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 2451RGOi016447; Thu, 5 May 2022 10:27:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 2451RGOi016447 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1651714036; bh=rDjX3hazkKyleEwSLlDfBXweTtu+bAyO0/KEQahXml4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=c6DYyO23yQ4SHTAgR6G/VH+v6DGjH/gPFDX0aAPU5I4EY4TV/tA8Ja/gjTsuE6kyC pbEWmWrZxPxp0lJb/gPttr3r69NdZSI8NCVAnGc3gFtwYZI6gyEXImTWFssLfewRzA x15BzIw81pMv8shXK7t1KleLs9knjhuYQwzgdsDCxbO2J073qcCYgif0ciYHmnuj70 BBoYMNY5Nz3NpwfNnuvYqIWJIn852da0qrq1v8DiGYzOmS9Z/mfyNPuLEsbZiKraLs a7/QHYFiMiTwct5fsefK0b2hR2GhELWEW0JCUnbW5XF2BAcPqUZWPPeudW9JKhQgUU ucV+Jc193P3eg== X-Nifty-SrcIP: [119.150.44.95] Date: Thu, 5 May 2022 10:27:24 +0900 From: Takashi Yano To: cygwin@cygwin.com Cc: Orgad Shaneh Subject: Re: mintty crashes on Windows 7 Message-Id: <20220505102724.11b5675450f2b4f723a8b70e@nifty.ne.jp> In-Reply-To: <20220505102045.fd6bfd46732e2eab0451e28c@nifty.ne.jp> References: <20220504002343.4345bfe1630fa904276f0d37@nifty.ne.jp> <20220504011018.7c455cedb38571f786d72ae9@nifty.ne.jp> <20220504201610.125888f234ffe063fa6773c0@nifty.ne.jp> <20220505102045.fd6bfd46732e2eab0451e28c@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 01:27:43 -0000 On Thu, 5 May 2022 10:20:45 +0900 Takashi Yano wrote: > On Wed, 4 May 2022 16:27:43 +0300 > Orgad Shaneh wrote: > > On Wed, May 4, 2022 at 2:16 PM Takashi Yano 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. Ah, this only occurs if script command is started in console. -- Takashi Yano