From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109414 invoked by alias); 14 Feb 2020 02:40:00 -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 109366 invoked by uid 89); 14 Feb 2020 02:39:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.1 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=Protection, UD:faq.html, faq.html, faq.using.bloda X-HELO: NAM11-DM6-obe.outbound.protection.outlook.com Received: from mail-dm6nam11on2130.outbound.protection.outlook.com (HELO NAM11-DM6-obe.outbound.protection.outlook.com) (40.107.223.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Feb 2020 02:39:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bk21kEUoEnF+uEMjo+tdJiOkcHcvKMcqOgwq/cixBs58997D9tYD3bwYUc3qKTTnyDzc9EBJ0A4J7PVn/1oMTp6hVvVABrQoXmOcCSLAaSUINbaU0igMu1DKxK/yL5ErLrrBdrk7Og0xe7YFsv/vn3WC64oH69DJeRhVjz/AxtmPo/r/Z0H/St9CFALQ2vSAB/AyfWTGEGiObyGSK5HyH8QXMmSsT7MWEW/8CKpBxsdMAl3xQnDE9p8HcaDTXunQQ9KmUtC/BPN5HlHS9ociH9ROCOrjCYyaZyqjNLvbqZkUrFeQtFJsh6945xFhZ0UfuYvxYRWwn5UwtYxXiKD6gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ng7fu1LTQuih5pKyDVM/ZQRV8NiHEDQ/bVOAx9yFQ38=; b=JkmmSC6iiYfsNQi+vknGHwG2/ULbsRXvRHx/1hi3DDSs76kW4Zhae9SudnDUqklO9tsEOErBI8fxj+FId3OJNG998ytVNChkoMcwWDGjWPAg0D8wQJ0AzJEdwE1WFMjbQeHVlEF+Deoh/dY823HR5wBRCCUKNgNxSL1ycj2pEIDfzh3TtWLLd2frxgcWE3CMIG11kSEEiSIBGFroTpgMwQJZeYzq7dArSLuYBGR/M1cTJYNYdryhZaYkF81xu4oX2jfu7cguNrTG3cDzzW2VZM/+A9BJF04C4APxLKzYNOp7kDe843fXGHQJz566cEkJFIHJerUYekON8u02vSOKUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ng7fu1LTQuih5pKyDVM/ZQRV8NiHEDQ/bVOAx9yFQ38=; b=IZctxzClXsKU/0ygPPO3ynlh5hSAq/U5rV6lQTrpKFb0TdAWO/JwxaaUwJZDDYPhfm/djW0jXQQSy0N5DNaH1DLb2XM98W9ZiHHai2cPpHeXMN6OoaelgjVWvJgb5/6sBTMTk5H5mq0+CtOiXEhWz0TQGRQvPZc/sknRB38N3jw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu; Received: from DM6PR04MB5738.namprd04.prod.outlook.com (20.179.51.81) by DM6PR04MB6123.namprd04.prod.outlook.com (20.178.227.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.24; Fri, 14 Feb 2020 02:39:54 +0000 Received: from DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::b9a2:bfae:2bab:2bbf]) by DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::b9a2:bfae:2bab:2bbf%4]) with mapi id 15.20.2729.025; Fri, 14 Feb 2020 02:39:54 +0000 Subject: Re: CPU hogging by dysfunctional bash or zsh when started via mintty Cygwin terminal link To: cygwin@cygwin.com References: <7c50f8ff-3eab-f226-7963-cd43478f68b5@fbihome.de> From: Ken Brown Message-ID: Date: Fri, 14 Feb 2020 02:40:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 In-Reply-To: <7c50f8ff-3eab-f226-7963-cd43478f68b5@fbihome.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-Path: kbrown@cornell.edu MIME-Version: 1.0 Received: from [10.13.22.8] (65.112.130.194) by BN6PR19CA0108.namprd19.prod.outlook.com (2603:10b6:404:a0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.23 via Frontend Transport; Fri, 14 Feb 2020 02:39:53 +0000 X-MS-Oob-TLC-OOBClassifiers: OLM:8273; Received-SPF: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-MessageData: JPb6PWlkbHdoO8gOkhkS5y3Sz+f1MzUWRrd/yUYOOCjLFj5u75BgPZatD7DpsJ7GooTrRu9kuksMn5giBSuTXI+C/olooTHUm+9F5wISDEPPBM8krSkguJRssy3J96Bui1RpenU5YLHU5T3gVLcC3A== X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HcrFUx9cl05hYGb8MoadVYNn6mAuJ26PraHysyZvQxpAXqWWtuYN2+JiQgQny4kiXM8KjeAOzr58yId44TOZxw== X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00113.txt.bz2 On 2/13/2020 9:08 PM, Jan-Marek Glogowski wrote: > Hi *, > > I've already been on IRC (jmux) and had a longer debug session, trying > various stuff suggested by MetaNova. This is a Cygwin64 install. > > Quoting from IRC: "After a longer time (probably months), I tried to > open a cygwin terminal, which now fails. It results in an empty window > with a blinking cursor and a bash process with 100% CPU load. The box is > a Windows 10 VM and also runs an cygwin openssh server, which I normally > use for development. SSH still works fine. I also installed gdb and > tried to attach to the CPU hogging bash, but I never see a gdb prompt > just some gdb startup output." > > The condensed version, of what I already did and didn't change the result: > > * updated cygwin install > * gdb -p -> hangs > - killing bash will "start" gdb with the message, that the process > already exited > * starting zsh via the mintty link results in zsh hogging the CPU. > * cygwin.bat works; same for starting bash.exe from cmd > * reinstall mintty incl. "rebase-trigger fullrebase" didn't help > * strace mintty from a cygwin.bat shell results in a SIGSEGV > - log currently at http://paste.debian.net/1130528/ > - expires: 2020-02-17 01:57:45 > * gdb mintty results in ~ the same result, then gdb -p > - it creates some threads, a bash hog window is created with all the > other "helpers" and gdb returns with "[Inferior 1 () > exited with normally]" to the gdb prompt > - quitting gdb and returning to the bash prompt won't happen, until I > kill the bash window, so basically the same, then doing "gdb -p" > > This all looks like a mintty problem. > > What else can I do to debug / fix this problem? > > Regards, > > Jan-Marek > > P.S. Windows installed some updates today, but since I don't know when I > opened a terminal the last time, I can't tell if that is related. Your strace output shows that sysfer.dll is loaded. This is apparently a component of Symantec Endpoint Protection. Could the latter be interfering with Cygwin? See https://cygwin.com/faq/faq.html#faq.using.bloda Ken -- 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