From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Date: Sat, 24 Jul 2021 11:15:48 -0700 Message-ID: <87zgubr31n.fsf@secretsauce.net> References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.0.50 Cc: 49714@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 24 20:17:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7MD3-0001qW-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 20:17:13 +0200 Original-Received: from localhost ([::1]:39602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7MD2-00073J-3f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 14:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7MCs-00072k-9o for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7MCr-0005MD-U6 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7MCr-0002WM-OK for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49714 X-GNU-PR-Package: emacs Original-Received: via spool by 49714-submit@debbugs.gnu.org id=B49714.16271505619595 (code B ref 49714); Sat, 24 Jul 2021 18:17:01 +0000 Original-Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:16:01 +0000 Original-Received: from localhost ([127.0.0.1]:46964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MBt-0002Ue-7k for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:16:01 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:55651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MBo-0002UL-FL for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:16:00 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 86DCE320090B; Sat, 24 Jul 2021 14:15:50 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 24 Jul 2021 14:15:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm3; bh=+CFxMpdTaU8Pxll4l08mHEwBHC QrAxwYUGG/C2bPqF4=; b=uvbjeaa9hPIMs3y/kwI0TtbDiC9LGp6F09P57/J18m XrFQ+0JlS4ZBjdJ7gJMWoNPm8JZi51+o0CywKEAATAE+k0c/KDmMTGRfuDsgqABY qqL0Qjcry8QC+Hv7QEudTWcgUfzT94jMsPbcAuUSTZT9HCvosbeYS2Lg/43+jvW/ 6uTiwfU4JPmR8E3iHrUzbu95zQf09GlYcm8PPYTPBavIOALBrZpuMm+yiXq3/20N nFB41fbdra9RBhdQuckMF0FCxR/LUYjArjenImLTGkEUpg1gK9VU/dqoelcxUvZx f/MRwEB1gE7cTvZiE1TkEmB9OIqjX0puaQBGv31HZ9GQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=+CFxMp dTaU8Pxll4l08mHEwBHCQrAxwYUGG/C2bPqF4=; b=H9MFqzxgZy5xk7hmx+wZPq URkRhrU/SN+o3z0gozkGZrltfceQtxaMyrycRgoWmyqw9CVMpZ5CqrISvMFY5NcB f/qcyP79QVow/L/TkTl87h1SRgOpaWoAj+N8lwCx7t5hp94J6tCjS7LwwdMUdHy7 sH/Xz6EAnOkCmwiD9REMx+Ogqi6r93j6lxk5KYrwhYIyK7EdLTqkpKc5NvtqSHfq dIP8eJpZUdWvKhQA1FvqqvBtY9lzjJp62bJy2YRoXanuLhZ/PN52nbUCmMipHcey rZv5QpoyKb0Ktehx4vmhsHvkOXmYdWtcxMaGtTCQmiUMunH+kjVxDQXDrwCl1rdw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgedtgdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 24 Jul 2021 14:15:49 -0400 (EDT) In-reply-to: <87sg03apj1.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210654 Archived-At: Michael Albinus writes: > Great! I'm planning for a while to implement support of yubikey, but I > never started to buy a device. I herewith declare you as my tester :-) OK. Let's get this running! >> 1. Emacs should not be spinning the CPU. This is actually an old bug. I >> usually see this with normal SSH connections, but it only happens >> during the login sequence, which isn't very long. In THIS case the >> login sequence could be longer. In any case, we shouldn't be >> spinning. > > Not so simple. Tramp is in a loop, reading the process output, and > checking, whether there is something it has to handle (for example, > password requests). This loop runs until Tramp detects the remote shell > prompt. There should be a loop, but emacs shouldn't be using all my CPU cycles while waiting for user interaction. Emacs can select() on the ssh process file descriptor, and sleep until the ssh process has stuff to say. >> 2. Emacs should relay whatever ssh is saying (i.e. "Confirm user >> presence...") to the user > > I've implemented this for yubikey, pushed to master. Could you pls try? I just tried it, and there's no difference in behavior from before. Debugging suggestions?