delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/04/05:34:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B387B3858C56
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=KhULYApuxZc8ZGJFJO8VH32N6lI8TyRNXYh2ICdt/cA=;
b=kP9h30cMI77yOiZ2LpnJW2+xG9eJ4evjSJe2YofzuCV17e9Zqj5qvPOv+MMPX3J2C4
xJ+nuXERZmbWkA/+ajKZll64gXUROLY6LdsU1VKMH8gNkRVnBLYoP3HB2+5+/ZxCNSAm
psNe/TjBi7M8UnOT7k/kTJuFNGDmIo1yV7Muie98qsrVHUdeTMNsX12n5aOguMzeUykN
zmgr5f6viuRXCHnDdAsveIv9gYq3iAF+ph9rifdrdrwMrOLpIN8COWJEm8r+YW4HH5zo
NtjyxyDyPH1OUiVIO5EKbCNfEmqyPdvdyYly6mVUE42m59+tWQmeahAtNNQ8r0DjI4Xk
EHQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=KhULYApuxZc8ZGJFJO8VH32N6lI8TyRNXYh2ICdt/cA=;
b=z2AYCB65hKirmwAls6Bk7oH/GzeE/wMNFG46KksAPMGxpsUgTPIddj1x/4QU3380s9
Gkxf/Rb6XYRivONhq8G4D88Lzi2VwWCFJTN+0Xajw86VHwj7j21mTopPpN+IVjgNyFA2
KfmAjdPvVqlj8CqRPleQ3pKvw9HQO/aIgqcT4OEaPqCOtg8QkrYBcYEDar1tre3pqKZm
acvM/eIrD3x8NRBZTZWqEAFbPK4D1DhQue1Gp7eydBPT9h5X3C6eT/PZGR+Xbinwug2/
Q5l9urn7rgX9pBf2/NRa+kI0exYbVYSLL8OqukdUUBP5yjE/nkOWFPQRs1KdHNRioGAE
ekRA==
X-Gm-Message-State: AOAM532YYIK8cr6FAf0YGwzH/sZqQ+EYYUIsSy/OSNhVM/HlhO8g3krr
nScNDwocRgOUAQVTuFIdL4CyoK7aFL98uTd0y30=
X-Google-Smtp-Source: ABdhPJyZFXzqvBS5uCdmTK/OitAU3su9eOUZvF/h//blt9zchjGX+woDH4tJ20BF4RJs4l6qbBw3lkB0OuWmsf1DsG0=
X-Received: by 2002:a05:6e02:1746:b0:2cf:af4:87f5 with SMTP id
y6-20020a056e02174600b002cf0af487f5mr6281162ill.49.1651656826854; Wed, 04 May
2022 02:33:46 -0700 (PDT)
MIME-Version: 1.0
References: <CAGHpTB+t+gCySabZZQvJstZSLresmoOTUUL8of9cwCdvmGySdg AT mail DOT gmail DOT com>
<20220504002343 DOT 4345bfe1630fa904276f0d37 AT nifty DOT ne DOT jp>
<CAGHpTB+3V98eWDaHv7DCa133KWS39FaDFMUo=8qOJjxTFon51A AT mail DOT gmail DOT com>
<20220504011018 DOT 7c455cedb38571f786d72ae9 AT nifty DOT ne DOT jp>
In-Reply-To: <20220504011018.7c455cedb38571f786d72ae9@nifty.ne.jp>
From: Orgad Shaneh <orgads AT gmail DOT com>
Date: Wed, 4 May 2022 12:33:35 +0300
Message-ID: <CAGHpTBJyOgYAzEvs3NLb8AzkiujbCKjaf+w-QSJAou47g-J-Cg@mail.gmail.com>
Subject: Re: mintty crashes on Windows 7
To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Tue, May 3, 2022 at 7:10 PM Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> wrote:
>
> On Tue, 3 May 2022 18:52:28 +0300
> Orgad Shaneh wrote:
> > On Tue, May 3, 2022 at 6:23 PM Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> wrote:
> > >
> > > On Tue, 3 May 2022 14:47:17 +0300
> > > Orgad Shaneh wrote:
> > > > Hi,
> > > >
> > > > Running `mintty ./bash` crashes on Windows 7 on cygwin-3_3-branch.
> > > >
> > > > Tested in MSYS2 on merge-3.3 branch from
> > > > https://github.com/orgads/msys2-runtime-1. It includes the tip of
> > > > cygwin-3_3-branch as of today (05827d2df8).
> > > >
> > > I cannot reproduce this with cygwin git head of cygwin-3_3-branch.
> > > Is this MSYS2 specific problem?
> >
> > You're right. I can't reproduce either. Only in my MSYS branch.
> >
> > Can you give me some guidance how to debug it?
>
> If you could identify which commit causes the issue, It would help.

0e1847fb87f5306cda6c022540560c5926627ae1 is the first bad commit
commit 0e1847fb87f5306cda6c022540560c5926627ae1
Author: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Date:   Mon Feb 28 20:25:09 2022 +0900

    Cygwin: pty: Isolate CTRL_C_EVENTs between ptys.

    - With this patch, unique invisible consoles are created for each pty
      to isolate CTRL_C_EVENTs between ptys. This is necessary by Ctrl-C
      handling in fhandler_termios::process_sigs() for non-cygwin apps
      started in pty if the pseudo console is disabled.

 winsup/cygwin/fhandler_termios.cc |  6 ++----
 winsup/cygwin/fhandler_tty.cc     | 17 +++++++++++++++++
 winsup/cygwin/tty.cc              |  2 ++
 3 files changed, 21 insertions(+), 4 deletions(-)

I tried reverting this commit, and it fixed the crash indeed.

- Orgad

-- 
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

- Raw text -


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