From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60468 invoked by alias); 27 Sep 2019 15:09:19 -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 60460 invoked by uid 89); 27 Sep 2019 15:09:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=briefly X-HELO: NAM05-DM3-obe.outbound.protection.outlook.com Received: from mail-eopbgr730097.outbound.protection.outlook.com (HELO NAM05-DM3-obe.outbound.protection.outlook.com) (40.107.73.97) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Sep 2019 15:09:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oFfyxIppZpIwxQ00dt9IGOsJYhB5bcL2pAzplWb2q5v+2zo3QtNYEsLavhwWZuBWzOxfThMYPxjGdfrde6elY31utZfrgajGHgAKcms/2bOajUarACn3hdXukPv4DAMRwdOYiT4w0I8l5UwYFMJ3MJo3A+sfD4lfpeyj/GzTbkv9ZZ0H48XyPbW3+74wC9IpexoXHMmJere7jE9ueKKDo5mxLcCEliXmAyaJEXb8Ekdvr5oWW9EcNJdL/oXc46EQ9XcHdXHlAchP2CxSPYxzJOCE+xkZOC2HX8EKi1AF6gNOr9VW9MhFYXcak44D9LfPdypoIcsFaKGq8ZU2UopeOg== 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=LZOM+4m/nF0YhyUzygcYOZ+qfO8BnhI7sZkdl6UWSKM=; b=AK/sJ5m7JBJf4aTgoH35tVyWep/Vh6Civye04GvrzPPpVm3iyX14On8lQWpGAGtmH9C6cVyHnwr8oqiN/sYTIklIt2ZBtDTVezM9FjieNOF4Xa6zGTcUpfXwww5t1Czj8G4nEp8zAq/0rdD1z6PhhiFK4GjhdBQwKXJfEpuvLh6lsoKiZvc3wVKbHjcR+1io2uOPEEprUNrNkmWHLMJhS8hN68sBGiLWOtGbkIexellBhAvSG+xfYiSNTSxcDW5kNcBa6N2hslz2wI6X7EE2djiAylDyErPm5bJ4m3x2Ncdt3nAk/v5ucFPyDaV0S5/ZZD67CC7LzZdpvFYLPwADoQ== 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=LZOM+4m/nF0YhyUzygcYOZ+qfO8BnhI7sZkdl6UWSKM=; b=NGGwQ6Y32zfrg8nyg8Qa6h3eRgsudeVFbXdb02AAcI47ygTgrIeYhsjve3C01AJ9GwgvCmVpSZYc18Gw6I1HSB5Q8lSze11GTBOYdw3dykfgUzh3v8A7bi3fjPAkCy0k4ZI2+XYlfaREuy0T6o4Ln8IyJucFe3GEOO2xj8I4gH8= Received: from DM6PR04MB5738.namprd04.prod.outlook.com (20.179.51.81) by DM6PR04MB5834.namprd04.prod.outlook.com (20.179.50.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.23; Fri, 27 Sep 2019 15:09:14 +0000 Received: from DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::998b:a76c:fc2b:1473]) by DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::998b:a76c:fc2b:1473%4]) with mapi id 15.20.2284.028; Fri, 27 Sep 2019 15:09:14 +0000 From: Ken Brown To: "cygwin@cygwin.com" Subject: Re: ssh-agent doesn't die Date: Fri, 27 Sep 2019 23:18:00 -0000 Message-ID: References: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> <5b225738-c2d7-fbfe-48a7-8c2a38c3398c@cornell.edu> <0ccd17b6-c22a-1a18-9409-1ebcfae60868@huarp.harvard.edu> <9f7a14bb-f81b-c566-bb84-8da7fc6d0fad@cornell.edu> In-Reply-To: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu; x-ms-oob-tlc-oobclassifiers: OLM:8882; received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-ID: <1D8E19163C39FB40B7F90F98EA93F282@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Btwgh2DKoFLxCcB5L1RAoNv0aIz/g0ku2+4N6jhv7lZK67ZD5lrCUBA7kcYZFV2hYpuUk6Rs30WXlQLQrYkqcg== X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00275.txt.bz2 On 9/27/2019 10:27 AM, Vanda Vodkamilkevich wrote: > Le ven. 27 sept. 2019 =E0 16:13, Ken Brown a =E9crit= : >=20 >> On 9/27/2019 9:37 AM, Norton Allen wrote: >>> On 9/26/2019 10:50 PM, Ken Brown wrote: >>>> >>>>> As a simple test example, consider: >>>>> >>>>> /bin/ssh-agent /bin/sleep 10 >>>>> >>>>> While the sleep is still running, ps shows: >>>>> >>>>> PID PPID PGID WINPID TTY UID STIME >> COMMAND >>>>> 1694 1693 1694 1576 ? 22534 00:01:10 >>>>> /usr/bin/ssh-agent >>>>> 1653 1 1653 11740 cons1 22534 00:00:37 >> /usr/bin/bash >>>>> 1693 1653 1693 1552 cons1 22534 00:01:10 >> /usr/bin/sleep >>>>> >>>>> One oddity is that ssh-agent is listed as a subprocess of sleep >>>> ...but this isn't a bug. ssh-agent forks, and then the parent execs >> the command. >>> >>> With the salient difference presumably being that the exec is done in >> the parent >>> instead of the child as usual? >> >> Yes. The idea is that 'ssh-agent command' should be more-or-less >> equivalent to >> running 'command', with ssh-agent running as a subprocess. >> >> The ssh-agent subprocess periodically checks to see if its parent is sti= ll >> alive, and it exits when the parent has died. Someone should figure out >> why >> this is not working on Cygwin. >=20 > Hi, > this may probably be not fully related but I see from time to time a > strange behavior of ssh-agent (running in the background and initially > started by keychain launched in .bashrc) : the agent is running wild (25% > of cpu and never responding). It seems to occur (not systematically) when > network is disconnected and reconnected (this is on a laptop often removed > from the docking system). Do you have any idea how to diagnose the issue > more precisely? Sorry, but I'm not an expert on ssh-agent. Everything I said above is base= d on=20 doing an internet search and looking briefly at the ssh-agent source code. My only suggestion would be to attach gdb to the process when it starts run= ning=20 wild and see if you can figure out why it's inf-looping. If you don't know= how=20 to do this, someone who does know would have to be able to reproduce the pr= oblem. 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