From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id B387B3858C56 for ; Wed, 4 May 2022 09:33:47 +0000 (GMT) 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 Received: by mail-il1-x12a.google.com with SMTP id d3so517127ilr.10 for ; Wed, 04 May 2022 02:33:47 -0700 (PDT) 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: <20220504002343.4345bfe1630fa904276f0d37@nifty.ne.jp> <20220504011018.7c455cedb38571f786d72ae9@nifty.ne.jp> In-Reply-To: <20220504011018.7c455cedb38571f786d72ae9@nifty.ne.jp> From: Orgad Shaneh Date: Wed, 4 May 2022 12:33:35 +0300 Message-ID: Subject: Re: mintty crashes on Windows 7 To: Takashi Yano Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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@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: Wed, 04 May 2022 09:33:49 -0000 On Tue, May 3, 2022 at 7:10 PM Takashi Yano wrote: > > On Tue, 3 May 2022 18:52:28 +0300 > Orgad Shaneh wrote: > > On Tue, May 3, 2022 at 6:23 PM Takashi Yano 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 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