From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13932 invoked by alias); 21 Jan 2020 02:31:04 -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 13920 invoked by uid 89); 21 Jan 2020 02:31:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=sk:newlib, sk:marco.a, sk:marcoa, U*marco.atzeri X-HELO: mail-lf1-f65.google.com Received: from mail-lf1-f65.google.com (HELO mail-lf1-f65.google.com) (209.85.167.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Jan 2020 02:31:01 +0000 Received: by mail-lf1-f65.google.com with SMTP id r14so902504lfm.5 for ; Mon, 20 Jan 2020 18:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=5ROYD7RgcxjMKQlXpDjy/3CewpA72XLNzcv7vuiSjTU=; b=qzqPNehX21pLerlVaNsc9tz9eGzcjPgWggLTBZV2a/7N+ufajKfjArm3flQipziwhd jbkiL3y1Kh2uqyJMRBjMvV/RT/JwjcA7RZhiVXb54w6+RMznYqaL+Ez/8N5l+LTVh69z plsNBQnDG6BAqPNDu98nE8ac/YOj0A2vzs77iDNW3Rsht4HBcm63VRGry15fb17Mw+JS agaOkgDUMfP/MSdYsOXFmNwH3zj27wPDmoqK/aGHdd5l1OAg44mrW7oM6O8/i8nKOxLx Roh75fRmwbup22x6ZzdLfz7HKwyoZYgMDFfzpKatEovkzGdA8t1lycFi6viPdHGxkR1h H5rQ== MIME-Version: 1.0 References: In-Reply-To: From: Koichi Murase Date: Tue, 21 Jan 2020 02:31:00 -0000 Message-ID: Subject: Re: Cygwin 3.1.2: Every call of exec(2) in the session starts to create a console window after some TTY outputs from programs compiled with "-mwindows" To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00170.txt.bz2 2020=E5=B9=B41=E6=9C=8820=E6=97=A5(=E6=9C=88) 15:17 Marco Atzeri : > > I can not replicate with latest snapshot > > $ uname -a > CYGWIN_NT-10.0 LAPTOP-82F08ILC 3.1.2s(0.340/5/3) 2020-01-14 16:33 x86_64 > Cygwin > > $ mintty --version > mintty 3.1.0 (x86_64-pc-cygwin) > ... > > $ for i in {0..99}; do date; done | uniq -c > 6 Mon, Jan 20, 2020 8:15:49 AM > 18 Mon, Jan 20, 2020 8:15:50 AM > 19 Mon, Jan 20, 2020 8:15:51 AM > 16 Mon, Jan 20, 2020 8:15:52 AM > 20 Mon, Jan 20, 2020 8:15:53 AM > 21 Mon, Jan 20, 2020 8:15:54 AM Thank you for the information. I found that the locale also matters. The problem is not yet fixed in the snapshot and also the latest commit of the git repository. Repeat-By: I update the steps to reproduce the problem: 1. Open Cygwin Terminal 2. Run the following commands $ LANG=3Dja_JP.UTF-8 $ mintty --version $ for a in {0..99}; do date; done | uniq -c Locale: I found that the problem is reproduced when LANG=3Dja_JP.UTF-8. I tried LANG=3DC and LANG=3Den_US.UTF-8, but the problem was not present with these locales. I tried several locales as follows. It appears it is related to multi-byte character sets, and also the problem does not occur if UTF-8 is not specified. * Not reproduced with: en_US.UTF-8, en_GB.UTF-8, de_DE.UTF-8, fr_FR.UTF-8, ru_RU.UTF-8, ja_JP * Reproduced with: ja_JP.UTF-8, ja_JP.utf8, zh_CN.UTF-8, zh_TW.UTF-8, ko_KR.UTF-8 Next I tried to find out which locale category causes the problem, but the problem is not reproduced by just specifying a locale for one locale category. I tried the following, but none reproduced the problem. $ LANG=3Den_US.UTF-8 LC_CTYPE=3Dja_JP.UTF-8; mintty --version $ for a in {0..99}; do date; done | uniq -c $ LANG=3Den_US.UTF-8 LC_COLLATE=3Dja_JP.UTF-8; mintty --version $ for a in {0..99}; do date; done | uniq -c $ LANG=3Den_US.UTF-8 LC_MESSAGES=3Dja_JP.UTF-8; mintty --version $ for a in {0..99}; do date; done | uniq -c $ LANG=3Den_US.UTF-8 LC_NUMERIC=3Dja_JP.UTF-8; mintty --version $ for a in {0..99}; do date; done | uniq -c $ LANG=3Den_US.UTF-8 LC_TIME=3Dja_JP.UTF-8; mintty --version $ for a in {0..99}; do date; done | uniq -c $ LANG=3Den_US.UTF-8 LC_MONETARY=3Dja_JP.UTF-8; mintty --version $ for a in {0..99}; do date; done | uniq -c Other interesting observations are 1. To reproduce the problem, LANG needs not be set to ja_JP.UTF-8 when "mintty --version" runs, i.e., it can be reproduced with: $ mintty --version $ LANG=3Dja_JP.UTF-8 $ for a in {0..99}; do date; done | uniq -c 2. Once the exec starts to create a console window, the problem persists even after resetting LANG to a non-problematic one: $ mintty --version $ LANG=3Den_US.UTF-8 $ for a in {0..99}; do date; done | uniq -c $ LANG=3Dja_JP.UTF-8 $ for a in {0..99}; do date; done | uniq -c $ LANG=3Den_US.UTF-8 $ for a in {0..99}; do date; done | uniq -c Cygwin Versions: In my environments, it is reproduced with the latest snapshot as well. I also tried the latest version of the git repository, but the problem has not yet fixed. I tried the following versions, but with all the versions the same problem occurs: 1. Cygwin 3.1.2 $ uname -a CYGWIN_NT-10.0 letsnote2019 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin 2. Snapshot 2020-01-14 from https://cygwin.com/snapshots/ $ uname -a CYGWIN_NT-10.0 letsnote2019 3.1.2s(0.340/5/3) 2020-01-14 16:33 x86_64 Cygwin 3. Commit 85aff2830 from git://sourceware.org/git/newlib-cygwin.git $ uname -a CYGWIN_NT-10.0 letsnote2019 3.1.2(0.340/5/3) 2020-01-19 15:12 x86_64 Cygwin 4. Commit 4261a8f5c from git://sourceware.org/git/newlib-cygwin.git $ uname -a CYGWIN_NT-10.0 letsnote2019 3.1.2(0.340/5/3) 2020-01-21 00:57 x86_64 Cygwin Also, this is not a specific problem of one computer because I tried with two laptops and both reproduce the same problem. Best, Koichi -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple