From unknown Fri Aug 15 16:19:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49714 <49714@debbugs.gnu.org> To: bug#49714 <49714@debbugs.gnu.org> Subject: Status: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Reply-To: bug#49714 <49714@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:19:44 +0000 retitle 49714 28.0.50; TRAMP burns CPU and has insufficient user reporting = when using xxxx-sk SSH keys reassign 49714 emacs submitter 49714 Dima Kogan severity 49714 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 23 18:06:12 2021 Received: (at submit) by debbugs.gnu.org; 23 Jul 2021 22:06:12 +0000 Received: from localhost ([127.0.0.1]:44822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m73J6-0003gF-Fd for submit@debbugs.gnu.org; Fri, 23 Jul 2021 18:06:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:32928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m73J2-0003g6-ES for submit@debbugs.gnu.org; Fri, 23 Jul 2021 18:06:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m73J2-000407-6T for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:06:08 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:56907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m73Ix-0002Kv-Id for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:06:07 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id CD1DB3200911 for ; Fri, 23 Jul 2021 18:06:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 23 Jul 2021 18:06:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=H3FflpOSNecpkKbjssymnN17VLJ2sUWBbLy+s6z6A2Y=; b=EfmruUU/ de/aiNGMol4uAzqba0zo8VrLvLHWlpp5OwRNi/xvtmzH28+Gzt4XvCLA9S5QOb0R SWGm++ntI88jRHt3SfSb6/eBdO9zkP4t7RiRppbXmRmPur8H15QaH0gy48Wxm+N7 n90dG8X1Cjd4szq1QT2dPADjMCuLRnSJ73WGutWmFEoqMm5L3wkiXDguTkxvRdcK XVPUEal7UhhaxhkR/5W4y68o4cWesWopkL/bsIQxIJ843uTOi19p9hDDhiCvU9+X ZNkNEewguCpCnZczOAQOpb/mSeBpxfcKbFM6G9+MzSaROIQjAMyFfLLP+oQwdG18 FFKeah10BPrFPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=H3FflpOSNecpkKbjssymnN17VLJ2s UWBbLy+s6z6A2Y=; b=jCgnbxbckjnQ2AqwBPuAzZp/FctxwG1hqYyVJle6ghlTx 3vTgE4SY47stZ7BT+5Wmp9tWRrR6XwOgUvZdsnk8VUabsk0YjJ2JrUmmjWxY0flz EnxvVZJs9H0XAPsBV+fAorx4TUHCHjmmBtIeccKG79j0VHk1ZpYMEyz95C5ddvrp Tn5DGzHQ+0vxQGpdO7VGDxGZkiXTBqnsUDr41Q6wRPrjLYyJtMKr9UGuK6xA0SSC +3EndwMdAnY1790b7Rjf69po7XVq5T3DrLqrDWG8Ww/I+7aidO1F76SYptdeBxNK e6c0i1IG6bjiDTtvhyFNhBHVv0SxEhVPhxx2G9HFw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeelgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddquddtmdenucfjughrpefhvf fufffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhm rgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepffdvffduhf ekfffhieefhfffvddtgfefjeevuedvfedujeejudevfedtgeeguedvnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughimhgrsehsvggtrhgvth hsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Jul 2021 18:06:01 -0400 (EDT) From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Date: Fri, 23 Jul 2021 15:05:59 -0700 Message-ID: <87o8asu1mg.fsf@jpl.nasa.gov> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=dima@secretsauce.net; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) Hi. I have a yubikey, a hardware encryption device. For the purposes of SSH, the SSH private key is split betweek a file on disk (.ssh/id_ed25519_sk) and some data on the yubikey. When logging into an SSH server, the interaction generally looks like this: client$ ssh ADDRESS Enter passphrase for key '/home/dima/.ssh/id_ed25519_sk': [the user enters the passphrase; not echoed to the console] Confirm user presence for key ED25519-SK XXXXXXXXXXXXXXX [the user physically touches the yubikey with their finger] server$ [we are logged-in] In TRAMP it looks like this: C-x C-f /ssh:ADDRESS: [Emacs asks for the passphrase. This is good] [Now we have a problem] Emacs now spins the CPU, saying nothing. Internally, ssh is asking for the user to touch the yubikey, but TRAMP is not communicating this information. I know I should touch the yubikey, and if I do that, TRAMP succeeds. There are two bugs here: 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. 2. Emacs should relay whatever ssh is saying (i.e. "Confirm user presence...") to the user Thanks! I'm using emacs built from source on 2021-07-16. I'm pretty sure the From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 08:02:23 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 12:02:23 +0000 Received: from localhost ([127.0.0.1]:45332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7GMJ-0005Rc-6w for submit@debbugs.gnu.org; Sat, 24 Jul 2021 08:02:23 -0400 Received: from mout.gmx.net ([212.227.15.15]:37155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7GMH-0005RP-Df for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 08:02:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627128132; bh=RyNkNQYuqHfMMa5Bs1oKc2dRXsEKycYcDv/Xux9579c=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=jhoWKipMOC4bdSUTqE+l09LY407X7WrD48E2742J+0slJKD5SgWEgcZdCEFUiTSYT CivpWXAIA9V9c+SYUU7zxgk/SLRcP17ZagkklPQnDzgVlfk0ZpQ0m8Xu2br2d2qbD6 TKBKcLY7q2edkJSCPhebZdAMUOa8lkVlRjTRds2A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.149.95]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmlT2-1lOtWs0Wk2-00jonO; Sat, 24 Jul 2021 14:02:12 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> Date: Sat, 24 Jul 2021 14:02:10 +0200 In-Reply-To: <87o8asu1mg.fsf@jpl.nasa.gov> (Dima Kogan's message of "Fri, 23 Jul 2021 15:05:59 -0700") Message-ID: <87sg03apj1.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:abxTdpS55B019j8bddwH9/R6hOhpqbkqZi2EJZy9hxGM9nbRx32 SsCJGU41tVdcwzKjVuLkotmfbaLk9xVp6F8dQ633d7Xq5ZCjXQSdL+rya4BMqG9zzHPhbWK DZUjHs/8gCKpkrnOKxYcCWoCMIGjAQYZsk/81E+vltLc+CKogzPsc59PHE4LThv5ppjPi+9 Uqf2uJ6x/++aXYSv/1wRg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hhBkAshOlT0=:mI5rUB2Zc1Tl7NrWbPghUI OTVCsmj21KXEk3dkk60Stme5dj5NCOGMzsVpBjZ+yF9Sj4Oxd5rH+2D2TVjJssQl4sSZpzuPO sedg7MpPjQKh68XNCE5kL+fUJoanEGU1f+lcf9I1dHdi3873D0+C2YK9SmTZnCi4wCXkaeSIp HzQ+/VktbGd/KclGDajB5qYVfMpEtXS/JOy8R7tOK/IIFfHxPnsrjmI6nqHHXQzYAhkyjlVAy 05Eh4tT+4VZGS4KZqTzHTnsLEbGfM19llMCRYO0f4me/hL6nX4jokUD/jh23HvTeRhObG/Yd/ iYV0q3UE00PxT+G6C2LTH0WW8EqVfBRnRkfcmZZnFO15UU64kR9z78KNMEBvdgtBI4/Wwy+ZN TRllqG7tLLgBZhDaL1FP6z8WHkmhEZIGcCRNim1ABKIFWDJu0gURrIbH0tMknoJHHe+G8Fe8F 53YPMBAas1t9V9Jv19Ra7oTn2K3cn/gnldUZB8ZKNah8fNEzYG1xT8TUhi2u56Lg1PSmB2ZOz l0lptLujaWxrtaddm1mfSyuw5IZ+3uW4C/tpRIPR3Or+aHyKvwzbp2ywXVhsPMdgdjhBtsOXG tF4UpytkIXgjLg7XRSL5yaQRwrVM+2PjEnpU1AbaWc9bnRjF7g8eIEeADbXfWPOmUtNJWFPPT KlAeIUOZgzinmwkwSV9GOyOsJV70BHK/zYj3Ln9ZpNThhTpFX1scyWeFIlwfBylfC9hAhRRae /Ra9Ws+4gGJnCNdPfplIhBHV7Wh+4KgPmpeFnx0ik2B+jMZ836TjNAGVsaV17Mk0hOTjpY9PZ weXefz/xu+abLD+TuB7JvT5iknYrGL8Nw3h0KeU09T5acnWCOyDuE3LCrlm5JzUYsI5oag4Rf 6ZO1t4jx/4DYUnUmGrZbdCEpfs/RRari7Alnu6Bb8IYHcaDgWUGNRFAnrawyXayZXx6omxUmQ WtLkehTEm9z//Q1XehxWZrKB1IKgQr2+EzeUM2eLr8ekAZP7VbQLA7GklsDKLP3OVB1wT+WxB F1y89FNBcVySPxM5wIwQ5VLh3LfPJCJjd8STdjILCP3YJgR2tsrt2Kh6PIhLRY3LyWbBg9YTj dTp/ag2BY6eUDAOwa1y0FdWmqYYwMDv0UC2mDJn0mVWHBXlmtW13OHydA== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: > Hi. Hi Dima, > I have a yubikey, a hardware encryption device. For the purposes of SSH, > the SSH private key is split betweek a file on disk (.ssh/id_ed25519_sk) > and some data on the yubikey. 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 :-) > When logging into an SSH server, the > interaction generally looks like this: > > client$ ssh ADDRESS > > Enter passphrase for key '/home/dima/.ssh/id_ed25519_sk': > [the user enters the passphrase; not echoed to the console] > > Confirm user presence for key ED25519-SK XXXXXXXXXXXXXXX > [the user physically touches the yubikey with their finger] > > server$ > [we are logged-in] Good. This should be sufficient information. > Emacs now spins the CPU, saying nothing. Internally, ssh is asking for > the user to touch the yubikey, but TRAMP is not communicating this > information. I know I should touch the yubikey, and if I do that, TRAMP > succeeds. There are two bugs here: > > 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. > 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? Showing everything during the login handshake wouldn't be helpful, Tramp is doing TRT in the background for the vast majority of actions. > Thanks! Best reagards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 14:16:01 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:16:01 +0000 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 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 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) 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: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 24 Jul 2021 14:15:49 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87sg03apj1.fsf@gmx.de> Date: Sat, 24 Jul 2021 11:15:48 -0700 Message-ID: <87zgubr31n.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 14:25:09 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:25:09 +0000 Received: from localhost ([127.0.0.1]:46968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MKj-0002iJ-66 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:25:09 -0400 Received: from mout.gmx.net ([212.227.17.21]:53465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MKf-0002hh-MM for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:25:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627151093; bh=ACDumbvVzW8aZDvFFj7ckJmIw392X1cR2WVZNmoea/Q=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=jPSzsNrFpHU3tsPWu9QTjXQQ4DmfD6mCpfJ9DHple6HIcA64AjBV4vH5zehNjFiEc 2IdVvZH8Nrhlp7+7qvNWS7I8OAm+0QxSU+qw7arRzJLMRmzfGVAWwSXXNcwtxuAaua QLMdn7KRJgzoL3fBVWJBFMvq8dPLfHmMdgBNEWjc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.149.95]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpDNf-1lIdUg2eLP-00qmcV; Sat, 24 Jul 2021 20:24:53 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> Date: Sat, 24 Jul 2021 20:24:52 +0200 In-Reply-To: <87zgubr31n.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 24 Jul 2021 11:15:48 -0700") Message-ID: <87pmv7o9hn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:2fDyWy64f8HOefqgp+K8CsC2heCJXaH+EGbkkJpt4Lyte1oPw0U 346nYuHCKo9oaV2zADU/S8aIYpVUvGbGrZ54M/0lei0Q43+FQWOjfago8/evOOrFLlS58Ne tKoLMYgO7eiWnoTFHjlBsNFR1ZWENX3q9+G6ylQPqzlDf0uhMY7IAYWIKBmpl+9xPEvcfSD j+1IelugCQdKRPKZ5ZzVg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MXPAnzciYzA=:UDZ7BwJkDlAWV67VP8E8Qy QLQmj5LQkcTZJn/nfvibFcSr8JxTA7l0brELiCSIVjw/dmYK8iq2X6arwz+Q9+zbxF9nzWool bwhagapN6HHhSIbnVeNQY+GX7nQFRlpbqQ6pfg8JIlvWHeMnhnnwAzRLdKtVWEg90NIspa4ou U6mPfhc5PqGrtu0IRW5bcTfV+TzNTDoI3E8EPqILOv26rWsyh7qcMLQdrsJRKkJrASrNQovXf 2fRs3kgqKeIsVpbco3ujPM84ZeGFZ+hInZwbvBUGNf29Zuvj5/V3C167C/KQf+GGb5gfODVCX /8hE4X1VNeTurTLy7u/W5pg/mQxF3KO+y3VuAPlXzDUsJ0/pUtHCgn/0G4G2nvWJ52VaucEEg GdT7S+65OMaZoST7oNABwDrJLYAcWVBgUBeu+qBH1zkIZft51Fkj8mMq6ivKbp5sBS7R39Wcs xc8PKfhzRTGbkXuykDQJ/SeHfU3Fz0FIUtz1Z4TOt9r4fK/06eqaebaiQce2eaTxW6bx/920T GeQVDMWVeSf1CrJHUVVwDBZV4tSx/JAiLkmUxqHTOIxnlsH6QXlVNmpXbsxlSPQkBRSSvyXmv WA/DOp5b0LvfoApNKiTsKpnPydZgdqoLsHfkWfpVUe5a1Z+G6JcTC5jj5rmwT17D3R1xK2o9h /E343aQ0i/yuQ4t35sxVbK38K993wX+9q8YUL5XpWatRS7p80OWExbvEWxCmyxCpL7e4AvoUD dcgDZh4qwlcfWqYrDC9cujerkKqRj8Zt6UVdsEvR/GLa98m+KuaXI1mB3My6OwPLXGboQ8nyF Di8owjTyiPMgj231PM8kYsDHE53MNiWiDOaKask0UFuh+GKzGBGCLmDX3/FzbBhBvvgVsA9Lv I613o53vnugET9WJqF/oXEGCnK6/f7uWTaNC5Sv6HH0CY9O4rb2e+kSjQUdePcIpm4t5QjWiK qRI1IoMxHzvqwbWDoq9iHlWaUb8FKRUGkVcWP1fyTjIXlLR7kHSqUHEg50sa6HnKh1Ie/OXJX Ntz7j4HOT1uoOvPxfTXedxIGHlxcmB61yzqD7ybNZY4zc7UfeCDU4T6JQ2vGph2OQ4mU+oX56 CS0lSnwALearqCxUAr47S1LnwSKqxct2QQm+KPU930YBSNyf0ChjSHipg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: Hi Dima, >> 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? I made an error in my first commit, pls try at least 0c77d1d2ca. If this doesn't help, set tramp-verbose to 10, and send the Tramp debug buffer after the test. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 14:30:19 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:30:19 +0000 Received: from localhost ([127.0.0.1]:46981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MPj-0002s0-E5 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:30:19 -0400 Received: from mout.gmx.net ([212.227.15.19]:41133) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MPh-0002rn-K4 for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:30:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627151408; bh=be0ggs0xuriRHOJeha/grABRaE7AXU2D6V28dFM5gx4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OAeg26M/k6b1ccEkAirjxSliQQE2HXuhCSFDOBpjfKlD4IxYSVk5r6ER8EQhQUryC OK0GRYcLEQ7BIIBxnwmTHMD31YGanrcJEfOLqDf9rrkuUgTRt9OZpWFN1MMOLScfqf Pv6ZPZpxoX/SMCayr55G/wzC5VrEtRV+0WT7R/8M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.149.95]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1HZo-1m5hik1YV8-002l4G; Sat, 24 Jul 2021 20:30:08 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> Date: Sat, 24 Jul 2021 20:30:07 +0200 In-Reply-To: <87zgubr31n.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 24 Jul 2021 11:15:48 -0700") Message-ID: <87lf5vo98w.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:jPWIhPvHnBjaYMyKamkH/gQcraegjwPgPEN2zH7htpFJl0x9qb6 VFeh+NBLsFM8KMipoAWZKAxqThm0zC+SABwX55W9oXh6Nm8veb0CwIB1hA+epjasGrPdBoA hkHhTIde47Jrnf3oaJOiEMZAPAcM0vCbU/FfP6PqCzUPUkuvCOGImkVt/3ynL+f5MeqylTH VZqqo0xwkFmXzRzx+1PRw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:irNVWKq43+M=:wizx9cinhUbC7GC3VauyUY +nXsHkcw8xkes47xUf+iDVqq8i3aPRn9DhizfO2sXYhHFj57TjDRxRv5df0IHLY0Ovd2NIF2A ibFIpyO/8oPEWUMlMh+7Czs+kaNcdsQwBvPJDDrT5YYHpNv+wwTj9/hWYIS7BtEInS6lm/frE eFCGfO5Lcn9Ra4C6NWlPrAMbvXhB9cdzUXkdGdGGhFmqrIMoUIn//nGox/LEDfm9wDOksIqHx KuN3d8TyZuns9/ghtrpg0OUOw102wYp4heDuKR0et26G40o1QnVhH0MTrff0hCsHoWItL96AL 3GXmQv3FkAWIYwY094cYSi1uacp3y+UxpCw6TG+AAZFrFsgh4wY4xTZo2FZ8dH6oI5TD6iM4o M96ptA8NvSvTa1D8OyHjgMygPl/f2XkoF0yeyfOAoTurOpRADYn67G4JHcTwH40WbL10vJlth AqLUphOW24n6YckJ7OQetz1di+NDEc+y+Kua6EDT4W8O43cjVWsCdAV/BzfN8YDLCtzmBU6qf /cWM6sEQ7DFuPgQy81Efvt/aULZZxVgZATtBxNSoBl4exrYNmN/t9CudxD2xLFCRqCt7YUM65 bZrfrM0usVlivd9uKEz+Ba7+y41HKKEI+KvlTk3vkLtWvjTsjora8agQuA3E3kRGNceKs2V8J /AjQ16kVCqkwyrjyJ/0X4iwmQdkVCq/jc6wJM1cohbw2WUQDmzcEr6ooT1MIxlU8xSmAkN5N5 vITozIabmGFP+4tR2o7NRuX4tL4Uv2m86fsNjZ8I8y+DTYltQjkHEGS5w7g6ELo12U3HIemAp Td4lxku9onTc+2LxeRWX3KxrMaI5u1ajtG4FvE1DZ6ohfzej9x4BuzNvFHWScHV3ZrQZk9iAa ryLk8j6gLiz9dGXy/8W+KsSfbsFWg+mEqjopWioVsu/VG9bnyn16/jw73iv3jBY4h8d1uytq5 mVbP4YuOMZe6yBAhUiys1qa5n0eJzY9YG2pnzu5VrKdHlwxFJqV0bwFsR2J2oOmXnZ6oGcD9J liSBTt52bajQLDxleHIowBwWPg3tD6i6OzdV4bLzZlJw7izWb35PaOkRyx43YQjKwP0M0eppq uEZu31pXAJEZX5DptQD9Ah1hguQBpgV4HvQ1JAk4tL9rhCFW3wVaHtD9Q== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Dima Kogan writes: Hi Dima, >>> 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. Well, I'm on Lisp level. I just have accept-process-output, and in my loop I check whether there is new output. There's no low level API to let Emacs sleep for the ssh process file descriptor. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 14:35:18 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:35:18 +0000 Received: from localhost ([127.0.0.1]:46992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MUY-0002zv-9e for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:35:18 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:54715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MUV-0002zV-C4 for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:35:16 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B6FFF3200905; Sat, 24 Jul 2021 14:35:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 24 Jul 2021 14:35:07 -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=noINPOIII9H5d/JXYH9uPrO9RO WhyaeI5LHlN4Ecjsw=; b=kjLDhfekjXJFDGSTLc+5E0bf1oNv3bH5JbP97IcM07 VZD3ik8FhgK6JY4Orhr7PE1xmdsP9SDDHbdxcT89eil5BK9fDC+HhZ6TyH/VKGmp 9gBv2LM8BdCscM8BqMbhCLJ5eAPvXaH/METS3EpQblc2RlDhf/qs1vvCdMCvXuBF wSwuSK1kuVqTEnYNvPRxB1RHpv23nWDJNw47zkjpvTctta0YkvtdB8dLJvFQxB4M T/YEr/OPlL3f4qV44LBk2qbFOmPgNlo0Js69S1b3knVId/KwNIletpt7jFpPhVta 8QOhmperp5JfTEfTlEdrC2/sgJsHt64bdzswuOJZfI6w== 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=noINPO III9H5d/JXYH9uPrO9ROWhyaeI5LHlN4Ecjsw=; b=ktXMkNFqGomxYRPXFwwbHr u7YkzSNI1FB2WJ0oZJ142stL8VzuFFibO4VuGGo651A/wgZMMtD08+GmtGncuVmH X/UTH46Mibwr6g+azzTXc4oJ+uEvlhB7YVUw/RBsQWsUAfxlP+ldngx+GPr1OXSv ENGOcTTz6fWEE4CVRwd5J1nDA5Go8IhSmVx4TINU6qISEWKXm1jgE/hI7xIMq6TK 4YVFeXSQMcHCAJgYEeR/167xMST1fRtaYPgeYSW8iYjKoDRgg2ekfcw4HZL6BLU2 LHaCmBfqnidq6gg+GzUDZhNxWeYIxqJ8qL41CkALr/UHxJ1eq9RFyOP0HU223WTg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgedtgdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 24 Jul 2021 14:35:06 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87pmv7o9hn.fsf@gmx.de> Date: Sat, 24 Jul 2021 11:35:05 -0700 Message-ID: <87wnpfr25i.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > set tramp-verbose to 10, and send the Tramp debug buffer after the > test. I have a log. It's large. Do I need to sanitize the credentials out of it? Don't see anything sensitive at a quick glance. >> 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. > > Well, I'm on Lisp level. I just have accept-process-output, and in my > loop I check whether there is new output. There's no low level API to > let Emacs sleep for the ssh process file descriptor. It just sounds unbelievable that emacs can't do blocking reads from the lisp level. Let me look at (accept-process-output) From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 14:44:28 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:44:28 +0000 Received: from localhost ([127.0.0.1]:47006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MdQ-0003F0-Lx for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:44:28 -0400 Received: from mout.gmx.net ([212.227.17.21]:42649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MdO-0003Eo-S2 for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:44:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627152257; bh=iiSdWfdA87NB6WrCC69AXWPhghLyJY2Dp1pnv8+XehU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=BJfWqTEDwpp9yhh4Mqtn05J07P18Gp+LCVDw02XFncvskYxpyq3bNY4kNlp04WHuP Lkb5IqyBwGMUZKsjFLWsAj7BHiTNHllayTBV1ZRb7bRrWQV+ZSyvh+k3AKDutSuVY+ WtiNl9ICJUkAmp6XuB15wBoZYrV36tGA8OGwy26I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.149.95]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9Fjb-1m2fH40JJn-006Lp2; Sat, 24 Jul 2021 20:44:17 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> Date: Sat, 24 Jul 2021 20:44:15 +0200 In-Reply-To: <87wnpfr25i.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 24 Jul 2021 11:35:05 -0700") Message-ID: <87czr7o8lc.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:KT+X/gS/SQWt2/rY7LsjNUf5QVdvDITD9Fl3Qq15xP2MkkBVlUP Vd2X8CphexjOF+9aCiTv4g7AKt4EjBmsrHAxSvZfQk7ZA5/pxfYmhbVqN6MB3WzVHhzL7Mj EwyR87mxISs/7ue6bRu2XoP7Ury3klOkxS3/D8YQF9CGcecRsPTSJ3oB4pZeX/pM+TU+sFn AHRk6FyjH1g6io751fpUQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Oa24C3wH7yk=:y877gx6D9FkV2SqBzaznKF gurRuX7v3ylmk0GB+kPNSG2r8wJvn26WEgeFP9DgeaI70srpntTjSzTE0BpxKPep54owAAlNc Z/jvhrB7XMQnzc9PQ+yXCkkWvglRkN33d3T7Q21JzNxByUqDE1WHw2F6/nLNAwMXYqcdJKLbm p10bTckB4yyMVmAYC+zV1XKh38mXANZhVuYBQ6tFhXmussREFQdv4SpN3ofQjUCI0bVpXHlfA 2Jy/SZ4JvGwZ3X9y6VOWKx8ez0Rg/LWRrjEgQCQbtXSkNrf64wG0PdMN05Nd8Un2mPqMtQ2UG 04hLdj6Sc6hp7mYk6H2TaQ6S6PCBiFw7RgYdrBOmparwqqGwgLloj0PAv99+zOZljyxlEvpG/ 25Lcy3KKvTmyGiNlJZa+hHD9vePZLMj6OJM/E8Ws1e6rn1C7J7Vlji4s9hcK+Ukg4npiwkUiJ LG0RcpfuJHon6kZ8b28MP1XOJF6cqyYQzTudgx2s8VBrjq412h+2GIaa//Z2bjdTXH+ShqaZR WgTcWwdXUgKappWUzZ4PKprnls3vtoyvwpDGLIlTU4lOzFK3/LVRWj4qLOqwz9+lDASJJAIrz JWIPwxVzE6qiPEICVoLdeF0RcWaGcuDI2Lt9/bAq9KFXXxrUr6LEM2VB5Vg4qIVMDrD82OeH9 9bFGk6Wp4YVaGUYB9c6njFCWaV7anBTlOFlM5wL+WW7YBfeeeet3xAt17fCEWQ9992dCu6FK8 c5pOqDx1kBW22pq4EzxL0Ji3wEwiNFLb6Vqcw06CRfIQixmBfKWRQv0vm3Bvb/K/LBScDZUxv 4b1aV1lkJuGpsRnBqWMb3OH2Ng2N/usFARNRAsAkTu9qBu3QP5qhTLmgxYL25dvaWkteWB1hk dlICxEm2B6nXdUa5EmpionuP0WOWpVqwmo3jiy9Go1/anN0deSSxqLyi8AFmVyj+SzMY02iTK LTV56gFQvuMJ3J+uEjywgNduGWysFuZouOjF8P+sahq28A6JgZmzz0WzwtiW/iQHYbyTpqfgD qaOKlPZzRwu7jyoGWrynGfpQLMigA2QYPZbtxUvMQ+RQhDk70VD0XOtRiQRs9i2Jpnj/fvBoB Tiwnxvx5IpHlN1/+mJ2/gT16DRsfuZvGqgrE8RFvGo/GEA5pmVr8KFGbw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: >>> 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. >> >> Well, I'm on Lisp level. I just have accept-process-output, and in my >> loop I check whether there is new output. There's no low level API to >> let Emacs sleep for the ssh process file descriptor. > > It just sounds unbelievable that emacs can't do blocking reads from the > lisp level. Let me look at (accept-process-output) accept-process-output could block. But it blocks the whole Emacs then, which isn't what we want. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 14:52:43 2021 Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:52:43 +0000 Received: from localhost ([127.0.0.1]:47024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MlO-0003Th-TZ for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:52:43 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:39277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MlM-0003TQ-Ms for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:52:41 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D622D32008FE; Sat, 24 Jul 2021 14:52:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 24 Jul 2021 14:52:35 -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=su75uClqmSlwxIc6VGp52/tF9A AO6pzqahnWLRjlDRg=; b=l8rpxAadSxt/S3wFbvZy1BdBgkVOSOc17WhDNOWH2F uFlPuQDJH7zi8Q43tl9j9QSRkUKshY08PLA697ERxUs16MltvRgfVeBasWU5MumT AsCYO8FkuZgYLixuc4sn4TcZvYfA8A0cy3kQNI6c+BpfXhyjcflMC4+mue6r0aJ/ R2AlXSihINSCj+w1VD2edyNzzNdIdLJmKF3VzWpwSX5wZfxn9VsTs45tDSGu2MUH rX2uQdRQtHt79o/y9032Rxk+/ipSpqDscJOCGcrqRxKT4TNuoL1uZFLYrNjXqd9Q 3EXD4VkKUW+8NR6xWVT2zcypIPosX5mRP+KK8bB9errQ== 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=su75uC lqmSlwxIc6VGp52/tF9AAO6pzqahnWLRjlDRg=; b=NfGruLu5d+gcFtnhIN+llv +av0NlXt1D3AqrHpBeJU6SDh4mZiBYMpi7hVBOU6PuoHpaBswSVPUYVtAKLVHzyX rIfeo0NfqC6lY6cZRvl6cTnZYmBpoGvYx6WEPVlyX6aWdZmuwJuK2/8XpmjHCQKL RO4h0CIEa6mjKAyfCOrWbev7SePbz8PWKh0ZOX8RqQu42+OCeJBBo7lNQPRjFd1C DSUpDNrh+Wx3srsyt0IcTdlyYBS4VFobOnvzcgUuAeGb2Jx3iUGzS9t8+1RL3Yuj 3Up4pewnq9l81UYlgphEcr+wLKg5CF1t/9+6Ld5eCeQby7yjqFbAH+C+G5fHkwwA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgedtgdduvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 24 Jul 2021 14:52:33 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87czr7o8lc.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87czr7o8lc.fsf@gmx.de> Date: Sat, 24 Jul 2021 11:52:32 -0700 Message-ID: <87r1fnr1cf.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > Dima Kogan writes: > >>>> 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. >>> >>> Well, I'm on Lisp level. I just have accept-process-output, and in my >>> loop I check whether there is new output. There's no low level API to >>> let Emacs sleep for the ssh process file descriptor. >> >> It just sounds unbelievable that emacs can't do blocking reads from the >> lisp level. Let me look at (accept-process-output) > > accept-process-output could block. But it blocks the whole Emacs then, > which isn't what we want. But emacs is blocked anyway. At least with the code as it is today, while TRAMP is spinning the cpu waiting for ssh to respond, emacs is not responsive to any user input. In a perfect world we'd block on the read, and then go back to the emacs main loop to do other stuff, but that's hard for all the reasons you know. If we don't go back to the main loop (as we don't today), then we don't lose anything by a blocking read. You know much more about the internals than me; is there other work happening between the checks during our non-blocking read? Thanks! From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 25 08:38:08 2021 Received: (at 49714) by debbugs.gnu.org; 25 Jul 2021 12:38:08 +0000 Received: from localhost ([127.0.0.1]:47771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7dOS-0002oK-Ki for submit@debbugs.gnu.org; Sun, 25 Jul 2021 08:38:08 -0400 Received: from mout.gmx.net ([212.227.15.15]:49627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7dOQ-0002nl-1b for 49714@debbugs.gnu.org; Sun, 25 Jul 2021 08:38:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627216676; bh=7JSIx7DGRjnEFJ4LWzOqn37KRn3k+Y1jT4+SEmqqb+k=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=XqTHjixRIr7IsQuCyyeS1ZUnmWDFSMRuCkZ1nPRqeOCOT1dgvh0MG43j4D3MqTfdG NXclmcPMomtX873V2EoirVnKhAmluUJh1wh2H1i/Rv3N9/jUdvs+Vi1MuM8FMxvazN G+0LKKF4hl1Zr/oGjRoZbiiRKDxSxJw+IivCJX34= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.91.249.69]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8QS2-1m3DXw1XN2-004WAq; Sun, 25 Jul 2021 14:37:56 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87czr7o8lc.fsf@gmx.de> <87r1fnr1cf.fsf@secretsauce.net> Date: Sun, 25 Jul 2021 14:37:55 +0200 In-Reply-To: <87r1fnr1cf.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 24 Jul 2021 11:52:32 -0700") Message-ID: <87k0lewov0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:5QFAw12HC6ViYPHcFUJV1ttTYIXdu9nlJIOlmh4kBdI5LMDPE8e Jx5p8g0OrKWl37xqkoD/OEYrU0NqzI/Njx6pQhxpUuhIBgng+0tdIItDy5AnGV2GkrgsvD0 FVcxMG0Rt2OVZDd2wY6UBtBGN0HI5DAm4TlEk3zXGrSKHvQfZ1NHxhjX8Wu6Mz+7l604yTT NoI+78v8rRssZHx4dlBcQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vjP6kcn3kqY=:zYATfJewQw6EK0DdGyatdd /WQGDcH4WJtCj6JRV7XMowYjIgZld5RUf6Z9uXPAZ3kOZmC01F0HplDPxfFLZG6SaiCgpHkwc tbKpEoLaRvbi0AlfOiqKpEB6kc3v9Ip3JT6MkSctDaywnZlQhsWQJlZKXNXGlAkNAl6OkqFhn X4oqEsOlLT6ZbkiK4ic7sMhOBR+ZzB7i3xdfTvW4nkTdal1wANQcvexPuH2eId6Chw6t3jEyB C9+VAosAcaq080tfVIBaBTiHSsX6hEPHL4VB9B5d32jKBzB63szOofhRZAbWAXAkOr/7yh+ZE UjRUDBpcLgPFzwwk6uS90eaMtmCf5qceSolZItQoFrfKRxBkOqus82RRrSFw7DTZ7Frt8tRYr wrY5vRoDQ5Cf9leDJ5TLyL4vlCk6xSndedsmH3dJqrD8vY0z/HU5gtE9xN0VwmNmxiY0LH05q VzpJgNWtNc61myX2okCRNaCT5tFNEi5U6ttG+a/OoD3f6vsZrGdL8u8jDpkG5ON6odZsSV8tb w0oAk9z8FBzodlcrd2Od/7M4veR3g3AWS+YSQl2Y9rv0v/8lyKTog4C245Kl5K4BuWzDEzzI7 HzF9ybtcVW0kwECWjMz/BaM+92M7bCiAzaTAf0ihQ+i4cPaylIZr/aFxsQHUI6dUIjp0SOwah woiwr3V7+h8Hyfm5WRV07c9GSzubWTEI0DhQbIohHs+TR5ob5oq3+OhQ8G3YQmisD5LW4uxy7 ls1FrxepU2gzOpxJ0vo0dzfiZ5lhYAD/SiZ0mzYOfbX9KNo73vRVihzDysdSk+zr58f4EtSjJ 3xxQlyZQerQhn3VR4rtFP7qNSgV+K1WkRzIfMMRd4kEojI1/OJ1jaILoc4TS6jwqKtgZNR6z/ gQFEiFZN7l+Tc0gZi6t7afIX8qQB00leNRn9JRfNtWKu7D16kVyIJpxyVB4ZVlfNHQ4yRy1je +OAO49IFsomE+KKwynigShoOI5i1EEA9lV4TKKg/r53TZvxuOdXNPhaCY4SxsKZV127hgDreU WWtxudNW1EPw7CjvaV0DXOc+aJ5lryBIpXxponcOqzMHecOi3aUpJVipiKRZNRkFAPOmUQ3oj ftzJD3rlioZGIme3hnWtKjjtI03OAqtqlaSg4yknnItNMwA9mNzr6aDkw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: Hi Dima, > But emacs is blocked anyway. At least with the code as it is today, > while TRAMP is spinning the cpu waiting for ssh to respond, emacs is not > responsive to any user input. In a perfect world we'd block on the read, > and then go back to the emacs main loop to do other stuff, but that's > hard for all the reasons you know. That requires a Tramp with thread support. I worked on this years ago, but this is stalled. > If we don't go back to the main loop > (as we don't today), then we don't lose anything by a blocking read. You > know much more about the internals than me; is there other work > happening between the checks during our non-blocking read? Other processes could provide their output, process filters, process sentinels, timers could run, all these asynchronous tasks Emacs runs in the background. > Thanks! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 28 03:18:46 2021 Received: (at 49714) by debbugs.gnu.org; 28 Jul 2021 07:18:46 +0000 Received: from localhost ([127.0.0.1]:54544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8dq2-0004Iw-5p for submit@debbugs.gnu.org; Wed, 28 Jul 2021 03:18:46 -0400 Received: from mout.gmx.net ([212.227.15.19]:55739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8dpz-0004Ii-Ei for 49714@debbugs.gnu.org; Wed, 28 Jul 2021 03:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627456713; bh=L06TjAtsmOfbGITk0Bl4/NdGyoJdEJSlHP/QqwxNFSU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=K2ZDXNjRSaTwfxwdur2wpS/yEYOugwlQAyUPk/hHC5O1PAae8ffFKdOHEws6S9LlW tBVDgMvCzSJ+xnskiZXnrTLJYH2U5RuHNNDHBNbfdq7g4FKKN8MlHxRF+E39il2hjn VhtnrsoU+E3ueX2c1Vj+oYZytoudKEkB7MhBOuB0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.119.254]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N6siz-1nGTcU29C3-018MOR; Wed, 28 Jul 2021 09:18:33 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> Date: Wed, 28 Jul 2021 09:18:32 +0200 In-Reply-To: <87a6m7nzv0.fsf@secretsauce.net> (Dima Kogan's message of "Tue, 27 Jul 2021 15:41:55 -0700") Message-ID: <87zgu6sy7r.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:v3iDA374oNBsbI9mIbF67AWKReN3CMLjc1KzE1iKEseG8rDt1W3 WSuNFzDfQvwt1KFG4GK+kyOJvMs1eqKgcU5I+7+yAmX9nIUrT2VzeefM/2MlKA6j7qFuQaC f2/CtYX1/Gq26SxpQCH3pCmNQR5vsFo2VI02WVtZH87XPrFAjHEwAdWnuRkPqhR4BqSGHp6 mZFZlfRgZu3kVr6CghPKA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:R4qLG/+0Xr0=:gkpUfhdnnEQtBqpl6K1WGr hf4g1mXPKMgsTxl6ffZyuyW2CIufPfw3Z98lRX7h1WVsK365bmzB30X/G3xcMydI0kynJ3z4s G8bZPxhq67XWHREERejuyWvi87b7W17h9p0XlSQVpmaDVO+liNmIFezW4lSqix76TEGiWAfnT mkWyG6fIxo74DWEXxV8uudVnXiGkbK7ku62Yoq/50GKzRP/CQLPkztGEwT0nBirSmdG4XNMoO K0xKuvY2UU2T+4dzURRIl7fypmAPG5sgzIH1WEC1ilg2ptB3Sc/2FwMo8wQzKecW6Qks8uwDN 58Opl8WSYBKNGdC65sb99VuPO5TyNch1zPmzTxt0wUuKT4ahCfWeH0R+xpNO8OXjgA9PO2FMG vkrM3tRAMHxBc0Th2853xOtP8GkjYPyvCQGWwuAxKRR2ZRVr8d0wTZoO+UcBYriWn/NZ8lkJb Xtj+gB69+NdeuBxD4TAxcSErgqtxweGX2BUtc0i2NbPZsbL2xl5kVlXbG8uOYr9UeaYJpH6uH l4efQJDvF7QfONSOvkgRhf6ApqZLlutcyoiC1sRtPTPc9zjG68mlPlOgMDHotgopOY8cl3Z1r /qf+ncnitsj2593tbG/PtuQHtuq16CrTzN5IAjyNwc3bYZPLBA8NF0N6ytDIGgzFoJakwmd+K Z0SyBGBsrW7mnLH5C+98yxp3Nz/iFWB9ipLBYWJ/oaX3gvkqN10Mv3dGjxb4Z/svyOP0grZ5V 5zsJuw5mnf9ll7kOkWJj0s3AplbOQ8apJaMYhhNe96MdAwicJw18sMlhDj2BCNBBsHCSeiJZ6 mFkxgZ0rLCIk41LYC90S0TtpTfTIMl0sV5EN+1i+Cq3jxWGzfR5grX0pioUIm+IHcuhAI+gm6 eFK4T05/vXTCBiYKn7W1/ho0nA+FM2tJENhKL+cSF3H5aDoNvlxE5bq+OSIgqDTg7fhrApiTw l4v1m57gvG7HHBJiyfA5P1eVdWY7LOu3lHMCuH9J57ktLhHwsumNapaTbcqnJuxr1Hlgw/WT0 qLvnImHNghlHn+kwjqXBumyl4uZwBOYN5wTcxK7wJs5JK9UwQ0SXfKuxtVK9zr7NMIaR+4ghu BSkJrOn4+N+BlP9hHXvUz/i8Ipk/kqryI2COKbJfA7SbiUcy9dk0oNsEg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) [Adding debbugs to Cc] Dima Kogan writes: Hi Dima, I've pushed the recent changes to master (slightly modified). > Really close now. Everything works generally, but I see one issue: > > The state of emacs during the "Confirm user presence" request is odd. > The "Confirm user presence" text does appear at the bottom. But the > modeline, point and margins are not rendered, and emacs generally isn't > responsive. Visually it looks like the program crashed, although it > hasn't: I can C-g or I can touch the yubikey. Well, while you see the message, Tramp is looping with accept-process-output in order to check, whether the yubikey has been pressed. This is not different from everything else Tramp does, until the remote shell prompt has been detected. So I don't see what we could do otherwise ... Btw, there is a timeout of 30 seconds. When you don't press the yubikey during this time, Tramp shall cancel the authentication process. Perhaps you could give this also a short test? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 28 15:59:17 2021 Received: (at 49714) by debbugs.gnu.org; 28 Jul 2021 19:59:17 +0000 Received: from localhost ([127.0.0.1]:55905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8pht-0000lK-1o for submit@debbugs.gnu.org; Wed, 28 Jul 2021 15:59:17 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8phq-0000kn-3X for 49714@debbugs.gnu.org; Wed, 28 Jul 2021 15:59:07 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B44AC5C0126; Wed, 28 Jul 2021 15:59:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 28 Jul 2021 15:59:00 -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=ga2cZdrIVN58kTHEzy4LZrDTg3 lKAjMB3IMLRe0ahBU=; b=pZrPjMpkEaC9yYxoNEK4+Y26EwTj5IBF0EtXw3nVW3 itDNLHdAnMuSHOkCzs80J57Ykb9nkr3SFzEAQn1fWLc6wCODRNuPTeZUPHmIFIFo p0kGA6oExIwuRkSBGynP21hbdFvT86JrCScW3SAB4jxbjge7kH8tx8Sk0lhIYRYL mRds3ypPZautdleumjlr12MH8oMguzQLa/blGcPinvo3icgkqr+iTcoOS8K7/xw8 D6Ik7bhZ+xem9fKU20rgV1l0SIi2FUYgvOKp5i9dfyHI7cbAVMehFjDfIqgJfiOk gviCw2zmjqURJkQMqsvYM3S7Aa3Npieq+Xwb8dAm8Y2A== 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=ga2cZd rIVN58kTHEzy4LZrDTg3lKAjMB3IMLRe0ahBU=; b=DeQkHArMQ90yO2OXchelhL ylYFZQrU8CwCPE8FzypHQ9YOa/6Zk6OB5cVXc2X5bP5kKpgGe9w6gQOsnzd/+R4P lyufMXN08PWCsFEf2g+1ye6phR+ugQwqoTPW5TUlYZoT6D9L9KNGKvV6GQSdUHCZ DNlI5J4R1Qmj+UVgIdFJVn/sjExa3z3SQBMMOibmFZExKO6+fEF0RCRmyhJElIKI NZFBOTRD8tI3Yvm5Czg/442eh9HszBDXWfHdUOUQK4U003l3CgnN0cOxKANLrNGi yqJA9phxPQtHzYASgwV7Cg85Cjse0aDSiNQVLwnBH5qmOcP59xRFK/Vf3cvGLipQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgeelgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jul 2021 15:58:59 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87zgu6sy7r.fsf@gmx.de> Date: Wed, 28 Jul 2021 12:58:58 -0700 Message-ID: <87k0lamcql.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > Well, while you see the message, Tramp is looping with > accept-process-output in order to check, whether the yubikey has been > pressed. This is not different from everything else Tramp does, until > the remote shell prompt has been detected. So I don't see what we > could do otherwise ... I understand this argument. However, as a user, I would fully expect emacs to behave the same way while it's waiting for the passphrase as it does when waiting for me to touch the yubikey. Currently the passphrase input stage feels normal, while the wait-for-touch stage feels frozen. On a deeper level, in both cases we're waiting for some specific data to come from an OS file descriptor: either something ultimately connected to the keyboard, or the ssh process. Maybe this isn't worth the effort to fix, but it is a problem. > Btw, there is a timeout of 30 seconds. When you don't press the > yubikey during this time, Tramp shall cancel the authentication > process. Perhaps you could give this also a short test? Yes. Let me do that later today. The passphrase query itself (from ssh, unrelated to emacs) has some timeout too, which maybe expires before 30 sec. I will check. Thanks so much for implementing this! From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 28 16:07:25 2021 Received: (at 49714) by debbugs.gnu.org; 28 Jul 2021 20:07:25 +0000 Received: from localhost ([127.0.0.1]:55918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8ppt-00010y-5m for submit@debbugs.gnu.org; Wed, 28 Jul 2021 16:07:25 -0400 Received: from mout.gmx.net ([212.227.17.21]:48013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8ppr-00010i-6f for 49714@debbugs.gnu.org; Wed, 28 Jul 2021 16:07:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627502828; bh=TvFtHT/MmOGIv4c3mAIVqHwDT1QcjeSR87omNDhIPIA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Zw1qz+C/BZWZYenZd6mfLpf1FA9rx2VsfsBaqgKeqw5DSyi1WRd5v+2YbCezCrxT+ hN1Om8tEEF/Tlt2BJpgWNc668cig2zCQlg4iz83R9P4wDnBvXm6KRI2a/FasL+eQmn rJEpHfuWijsM+wEdmBg8gdxDthtEtUq0+gUeIo4o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.119.254]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mk0NU-1msqod3YTo-00kOfU; Wed, 28 Jul 2021 22:07:07 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> Date: Wed, 28 Jul 2021 22:07:06 +0200 In-Reply-To: <87k0lamcql.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 28 Jul 2021 12:58:58 -0700") Message-ID: <87mtq6rymt.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:peXLpzuUuCquiAmz7Sg7hw/Dq3he/nJTf4glBDTU+/KbwkQI2MO xqO9M+5QzYhVPbOCOmGR6PkE12wuHvzgO+h8pV86dW4PQLeNGW843y1KEUjY+jcSV1uTQNw s2H3TwS0/3ewlMQaUBFmWgs+8Htzg6hoydi0n8km6ZoJOY9DJyPS1ZMh4CWcNvLJP9he7Pp PZd/FW6CeqcRjeix3qBdw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:EzcUBqHNKRs=:FKL8vodxE20B4bIpCTTpYE 9f944HOBd+Sg/jjGRU+pvCAovfZrHVyMH3QGJkY8jWhV0qvUgxTwefvi6k0/HMZKBunhiPBG6 XdPcOKOdbfJ9RJfXYIYOIFkPVekcXRP1EeIG46UIl1bdwK4pmIECPg4ezrOvyLa4QoJp9UdSc TjrgC4gSQrigVz4HpBZ9g6WuPv+Fprws8UNrVtDwh0cqEZaae0GGrZ14Dk8k78rr3N3H64UGP L8TkFW9Oa8qoED9gkBGkoBI9IoBs3z6aruChrjXRhKmzQoXbpqYcGBp1JvlsBDjGA8Y8IHrWI +UCYsawGSijShjfxtA1BcjJQ6/oh3BQ/MNAPv8uWc3RM6bhwooZ/6V8gVb5f5JZW14DRVK+FH rFnqoQJdqauflF7OVsGrPl0fzncerT2J3vJy4HZhr45hckZOG59858WzEEJ1tnJC8okozUQ+I jCzxMKuZVAYWefV6pjRu0kJDvLuFssAyWYbzZ6NDnzNQW1IOCj8qUsuQdC/2sBtM+WISqPrVo gadJj15Ytf1eVfh8lWr833X7tpYr/TnH027kbX+pkfGROGHJ9T146o+mzpYJCTfEc77juv4ii P4q1cWWCOR2fFD8l+nAYjzkra24cRZpV8enzCK7toyO9cOgVDrrdQ3x1S3gnWq2g/rSVJ+Ine HpTnIsRaHipEJMrFw6fD6f5kWjPY4wR+WrYhU7sUDx3VUpDG+9y1oKHR0DcYx2Zb7gFUc0Z9j y+wPDFk8Qe4gddq1L1u2sH4ZdWcTSzUc0fjAjInPWufshYk6gokZW8Aopbd/cJU/MbnIudybl faChZ+TpmJf/Pepb6f7q9nbY/otFunS1uRjzg9CFwiKIZCZ2GT9244bEiJF/c0c7bfOgoLiRx VLVbvzkt3NAluP37eIJ4DvmsMd4EBNPXKbFXtq0Rx4tcSa1MNM0dQXSR49tD8s+bclnlPpOiH rn/IUI1pgea0IlYkxI+mprJV63f8SxA1hzmbdo4a1k7hoSySnswUpg3SdJqcgW0kRbDffosLG oPL7L5ggguYoFguMdooYcmmX56ShunDWPZWB8g8p9SVcFT6zfnjLCAcCZrR2J4Gd/pPZx+4WG RHhnNjf1IA7tWl1NEG8rMQoLNN6EEYx5FvLYljh9ZIFcOC7fjQS80tN/g== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: Hi Dima, >> Well, while you see the message, Tramp is looping with >> accept-process-output in order to check, whether the yubikey has been >> pressed. This is not different from everything else Tramp does, until >> the remote shell prompt has been detected. So I don't see what we >> could do otherwise ... > > I understand this argument. However, as a user, I would fully expect > emacs to behave the same way while it's waiting for the passphrase as it > does when waiting for me to touch the yubikey. Currently the passphrase > input stage feels normal, while the wait-for-touch stage feels frozen. > On a deeper level, in both cases we're waiting for some specific data to > come from an OS file descriptor: either something ultimately connected > to the keyboard, or the ssh process. Maybe this isn't worth the effort > to fix, but it is a problem. I have no idea how annoying this is. I plan to buy a yubikey next days, this will give me the chance to play with. And maybe to fix it. >> Btw, there is a timeout of 30 seconds. When you don't press the >> yubikey during this time, Tramp shall cancel the authentication >> process. Perhaps you could give this also a short test? > > Yes. Let me do that later today. The passphrase query itself (from ssh, > unrelated to emacs) has some timeout too, which maybe expires before 30 > sec. I will check. Thanks! > Thanks so much for implementing this! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 28 16:13:05 2021 Received: (at 49714) by debbugs.gnu.org; 28 Jul 2021 20:13:05 +0000 Received: from localhost ([127.0.0.1]:55924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8pvM-0001CD-Ud for submit@debbugs.gnu.org; Wed, 28 Jul 2021 16:13:05 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8pvK-0001Bg-38 for 49714@debbugs.gnu.org; Wed, 28 Jul 2021 16:13:03 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BE0865C0043; Wed, 28 Jul 2021 16:12:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 28 Jul 2021 16:12:56 -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=wJUBgU3BRJs1Q+MHX0vf/yEU7A R8iCRFQZlHzE/RAE8=; b=g2qZ3QdORoeuN0coeOq34PPivIT40pJZffNfi8FRha 5sREqnGyHTdkvAy9QpRSC9kAio1ZvSSZyI+WIDDrYEHTsbIn7E1PY9HqShZvAWHE hMFffy1XWcBEgQUCn4CwaNrzMFaMTXr2FE4AuQjSOb5cZvuYsKwaoHlTpqboEspK CgSS18znXyie61alIFg+8/8MAIoSFWfWXzse13PvCulNkpSj2/mjb7Nrj5FkoEcQ bi+2S11tFLZzMRF2r7XADEzD3+S+4/xc7JHEi+wc4ayN6qv2OYplJcyYImvyEJ/N ekLo8wIgInyh0O/0pDA8afeLc7CtrMfBQ2bSEkqbC09A== 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=wJUBgU 3BRJs1Q+MHX0vf/yEU7AR8iCRFQZlHzE/RAE8=; b=AjPQHNF+6b+2YHbkmRB8ny NiKAGbdG5H7M+v+xRg1UGMAsTrZ20oY+tysNaNk96dEwg7zurO77xh2O5ou3aqHD R1aFOESgl4u/KGqAk5cDMl/+1SJqEBdD1KkfVvQ5sCdliLsMvI7sI+URFBBNERdE 6Oj4sF+TF4W96e7llcBFAK2+olQzKZYJrr59eTI3JRaIq0t1kTi2eQcqFFiBXByq aG5NN3uhP27T+LinxZt34/hdiKxXGHkxK7Xu0Sn4gVPywwJe9Edof8OQT1XC0yUW eEqTniB/Taj5hgLXxZjhLu+fuw7N4My6rKCfZlHWYJeILhP9IeRw/PIVt/Vl79SA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgeelgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jul 2021 16:12:55 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <87mtq6rymt.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87mtq6rymt.fsf@gmx.de> Date: Wed, 28 Jul 2021 13:12:54 -0700 Message-ID: <87eebimc3d.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > I have no idea how annoying this is. I plan to buy a yubikey next > days, this will give me the chance to play with. And maybe to fix it. Honestly, it's probably something that's jarring and wrong-looking the first few times, but I bet it'll start to feel normal very quickly. If there's a mental list of nice-to-have improvements somewhere, this should be on it. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 03 16:16:48 2021 Received: (at 49714) by debbugs.gnu.org; 3 Aug 2021 20:16:48 +0000 Received: from localhost ([127.0.0.1]:41635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB0qF-0004x6-TV for submit@debbugs.gnu.org; Tue, 03 Aug 2021 16:16:48 -0400 Received: from mout.gmx.net ([212.227.17.20]:41335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB0q7-0004we-3V for 49714@debbugs.gnu.org; Tue, 03 Aug 2021 16:16:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628021789; bh=barmALBCkxFF7BA5u8iZ33YNw1URvs5FEiYJU8OamlU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=J2wk6Y5T5fQy870ga5kslE+W433FsbMz86Di+Hw5DzajZ0AiFWa4WD9TUiUIy2wT8 rFYWJhzUfqk/MmE+pAb4tTsqKrme7DyCI9aFGn6XyyTXaIbv/fMEkEbjyPdpGlqgI1 EvTi2JrsEZT13km8Pq+dePPbRnKjGpJyBbJaPS+c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([217.70.140.133]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MK3Vu-1mS8Xq46YQ-00LWBw; Tue, 03 Aug 2021 22:16:29 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> Date: Tue, 03 Aug 2021 22:16:27 +0200 In-Reply-To: <87k0lamcql.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 28 Jul 2021 12:58:58 -0700") Message-ID: <875ywmp9lw.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:ls5KtwzamlrYcY9O4MJFoOnwJyEFWKrldrISo9UeIyaQRO+zOws U8zq+/5/5V8yykQqV/dBMTwZT7jHq+js59Zn4v1KT3rgqTrljrGEGCd4wQPnEUvGaAWsyUD bPK+Dr6a/nOiXA1wCXtj8ERcHTdlXH7lpFtto4HHwIcdOW/TUSB3E8Q9LoajuvbOBFuIHto 3XojKhnoUSKdn2fyWYINQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ryqlM8WzDHk=:MkzP/7yYbu8QT+l/KtiFMh vDmYjLm0pcC4dJ/0nKxSG06XNS0m/hvU9t+WYcpBkVM8+blZ6+n61gacsyVc5FXioR9mmMkN5 h0kBVZjSzIGuLVyzRoTUkOOYALKbGIJ82yrfdu/HfZsHtiWjICz7BDe40MTbg4RfYKVIyb7S4 /OJogqcmAh4I4D+tgovJRzPRwK1Q5jiHkeTuFNvvSqPASUQcDuksp6ug7lV5lpx+pMyd9R733 fJS1BDt8lR7cHTijkdgnQis/UPf5Bu+OdI/ivHxVtXI1aCfdPApLonUX+gSYo2YFceCzqa4Qn LY/utP9Y2xUe9qU7qmij7GiUdWYTp8eW6cZghx1dFBufa/9S9RIP1V0/54Jp5e5zzDqliTvNr XCTxOPdI6V6BYAPVwSn8u0SMzVHpVRBS3FwcBwPkL0eY1bgxguw6yrKEp3RMy7AaSIdm+s3Mt N1x9GM6sVHgQliulUMsj8y7WsN/ohJNKE3vlXCY2a6rwG8oDPsQ79BhWKUWDelNOKbOl9r05R mjOA18IpWP61GY3/QQP4ko5pOwJOcCFdUtqkbkIUzCBOC9JoY1sb62zD5NxTeN6NBjLoSVH83 2pDS3f96UlaZ6M9ZI3+/DWu2kKN0IQg/B8NTiVorrET9H8lQqYQJGIUL2zV+eSTntEeoUA63c AquJrnLQUhCDJpRiGKlkokrvUSO64gWD27sp+HlG3sLCf0annttFjjznqWJG6UYO6dCdztqz6 qP3RffcQqCeqJ2HISKacBBQGojs/TPCjCNNNgMOJPsO2ECfwRC8qE5jUOUlnqEbwrIhZmQyiy v45SAWhe1fWuANPRDja1CoT5FYQ4E11woDGSu9LonF/gUuv5vaHqG9rqxiQJirq7B2Y9vsDV1 lJj4OnxMM/Dqod8TPKqYQHrDYBaTzql0ZUcAzPdcFRI+UMV0sFjvynzjwpI8CKbtucetjnsdY vZ/xNJbRImyhAEtVkU8aUlHKw2YfMDyZFKa3e+7dUoBeqfSpENikjzVhxnRQ2XNYwwNI8gbaE z/F3gKIx2FTjAefFjyf4wKN7YJW4FLFzooksqp5Fk07xX5L+UhiaCravRjmuVsk+DnFyrETiR Ewoh5b6mQBdkEOPrQyamv11NqnxdeKiQz5jtw6aTRPH7mqBMHs62QZX9g== Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: Hi Dima, >> Well, while you see the message, Tramp is looping with >> accept-process-output in order to check, whether the yubikey has been >> pressed. This is not different from everything else Tramp does, until >> the remote shell prompt has been detected. So I don't see what we >> could do otherwise ... > > I understand this argument. However, as a user, I would fully expect > emacs to behave the same way while it's waiting for the passphrase as it > does when waiting for me to touch the yubikey. Currently the passphrase > input stage feels normal, while the wait-for-touch stage feels frozen. > On a deeper level, in both cases we're waiting for some specific data to > come from an OS file descriptor: either something ultimately connected > to the keyboard, or the ssh process. Maybe this isn't worth the effort > to fix, but it is a problem. I couldn't resist, so I've played with my new yubikey. When it shows the confirmation request - I cannot reproduce that the mode line does not render. I've added a (redisplay) (due to another problem I've experienced locally), maybe this makes it better - Yes, Emacs is kind of frozen while you see the message. Simply, you have to touch the yubikey. What other action do you expect from Emacs? It is the same behavior as you see when you have given the password/passphrase, and Tramp waits for the shell prompt. There's nothing to interact with Emacs during this time. I've just pushed some cleanups to master, could you pls (re-)check? What else do you expect from Tramp? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 01:41:42 2021 Received: (at 49714) by debbugs.gnu.org; 8 Aug 2021 05:41:42 +0000 Received: from localhost ([127.0.0.1]:53502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCbZ8-0006Cu-Hq for submit@debbugs.gnu.org; Sun, 08 Aug 2021 01:41:42 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCbZ5-0006Cg-BI for 49714@debbugs.gnu.org; Sun, 08 Aug 2021 01:41:41 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CBB925C0077; Sun, 8 Aug 2021 01:41:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 08 Aug 2021 01:41:33 -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=fm1; bh=7SkmG+wNlsilyu9Do2/Y+tSmg6 wxloVor7FpTyFAzBM=; b=UEmvwu5v03LmgXKrOXx5KOa5EWAXB7O4lAle3+LYde l7b25VvJwG8CayE0HZ38DuW7E4XqPBKKnaG9xDC48XRIWlHQ7WGzvtVqMnb4Cpv3 gtz0qdhSdM2aYJL5zlmiW7l38wZZuf4N+HHSQEf+t0ExPDZbZYY3HPBgwDeOEjDb mjAYNYI7Qp8wQqo/IfPG4D4Han1WSgidRsB8cDEzDTHVjMrA5fwbr3XaD4yhgq0T QXICrFixf6Q5AAG9KEGMPw+PrbdJWLiKkH7HPi8oJJpOzGO+ig3BUFWTE5/WFt0o F7UMOJEciGK2Eefi9qBGvGo118guyfjU9D26MqtONYxQ== 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=7SkmG+ wNlsilyu9Do2/Y+tSmg6wxloVor7FpTyFAzBM=; b=Cd0DXyR17iG0n49jsB3Ru/ lTHBaywgTG8cEiqS0D+C4WmT95AHosrsrxCR3xaGf17/IVsGWNC5llWKdxZIfHoX oWLJ7h/2D6JIXbCJXJzKwFKqcf2rOq9h2FTxHhO5Kxv0x79e0tAfm4hFiCLPsV1n hBqxk8di2Pmlo6DEgXac2lJKE+dZcPQoR5Q71EToDhzCscUYJ/uVzVoHL6ssTHD5 vAfR68kTAqS5rfwzxGQPiZWFoluZOpNBJQA+Ow/8OBQ+AZRNCqLLGBoFtcYy0RO0 fUhq+owIhO9jpThmrkokghnDo9sYlhfbiRk8tiZfYqIiveJZL7Vgv1ot9cBxtekg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeeggdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth gvrhhnpeefveefgfettdefvdetgfekvddtffevhfevleelhfejheelgfduffdtieduueek heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguih hmrgesshgvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 8 Aug 2021 01:41:33 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <875ywmp9lw.fsf@gmx.de> Date: Sat, 07 Aug 2021 22:41:32 -0700 Message-ID: <87eeb4a3xv.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Michael. Thanks much for testing. Give me a few days to try out the latest, and I'll post what I find here. I suspect we're done. Thanks again! From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 10:21:18 2021 Received: (at 49714) by debbugs.gnu.org; 8 Aug 2021 14:21:18 +0000 Received: from localhost ([127.0.0.1]:54683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCjfy-0004mj-8N for submit@debbugs.gnu.org; Sun, 08 Aug 2021 10:21:18 -0400 Received: from mout.gmx.net ([212.227.15.18]:50429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCjfw-0004mT-6q for 49714@debbugs.gnu.org; Sun, 08 Aug 2021 10:21:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628432467; bh=DXCXnqLdCqdyVhxLEqoYF7KzcFaNWLInsqK0GAKySok=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=e5btM0vIMj+2xbr+4sODVZsSYQ2DcUPXi5uYpdzpJKuQDyOjLwslmLXt8E2DVA7+D XId/zBChwxmGVdHvz3Pyb2oDW6V/UIbMkUTOH08Qgorbm576CwIc9fKjWnpp4Oizza IFe0YgxHoGih/14Nzz73UDHhVDIoHrN343JdOQhc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.91.238.138]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MnaoZ-1mtByQ0if7-00jX0I; Sun, 08 Aug 2021 16:21:07 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> <87eeb4a3xv.fsf@secretsauce.net> Date: Sun, 08 Aug 2021 16:21:05 +0200 In-Reply-To: <87eeb4a3xv.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 07 Aug 2021 22:41:32 -0700") Message-ID: <87v94grp9q.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:lnCWo4tXRRAsUQjGDRAnDIfTUTGaxAzjVUMG5sZhmHeBSs5wIt1 lrBpLInPHUGsJm1xoEymyMBpt3jcDziceKXv0AJ7JgnfRvsd+4V77gl5DTPt/SJhmKjDowm +ILA596Sz7yq43/xerJ/+fr0RNUSe+k4HMV4X+dIwB3WH8l0YugEO+oP+8uAspYRnRuBqwr 8FrMA1fjsGFa11f+CINwQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:C/2KKY0MAvA=:OrBSTmTfjq0C9L9qSd9J6s jMpO0X59eh8MVL/jWeqzedqLvAyVIMep7lu0dbSlwhOQOU5lAzMMfdUe3qED+yOtm3VrSdsRE 6AZ3mDHTH19c9tWoR94mERf5CqjZIDDgpeuxrqqto7ZHdYbTC4okJGkUICFv62SWrLnZjh6+8 ioJim+YpFnOexT3a134ay10rYTzxbxQKv/eOA7moAG9gPvSN8eYgFwBzvZWtU6ZXMb9FuHK0z B7yw6pUhvGC7ba3wpy/7xzd/PLn8sXxTwqCmC3VovTsTI0ZcfCK7QYhYQxqR+8UwqFwSBrNd0 BojzrcjHBRDXIszBm1TCdTk8TmIGXiI3tGUEhZ0xIBDJXNtSmCzv9u2MGD59+KQE0kt2l8be4 PI3HAYbc/X4BJ3aWLcgQEqDQEN6+D/SWBjZko1O0s41up6EQU3VnkgN9XMXhOwbkPTheH5X08 pNGF4yZT7ddocHL5pCL3ot8zAQk3U+9faXHFyHc1hoOQAH3+FygbW/6t5C8QI8kQ86mgVTYi5 /GKlZlUJIbOtX27PVw2Ll4n/Hr9geIMKYzg0yzlNV+Gu0OGKR3RtodY6xDykNtFh7Mld4LQ+M 7pJ8wZOijWWiakM9uu6sT2XwOxhaqDNpzzvIWYlTJntHKjtPZ/VeUXdT5rK4LvfySzRI6Aa8l hFVF8VcmN61Nchw/SXCtRIjYepIF8CDlBhwPqNjrI22RkuTjqqvLLPRJhfMr3yBB5YOo2wMUu uSJfHKJBJSeD8bwTwQdc3et2PyBIs4Ri7Dvc8UmulU9g4XtS7FMkQ2K/SVGmOv0PkjczVKa1K +0fsTdP91OHQM3aj3N+khomIB83l4JGH1Z3Ipg10vwpZLoNWSCsPPxwz6iz3JI4nJt4N8ulSf 8IZcqws9SaGAG76j9DObrbWVGwGkvhpb4C8fdcvUGppXCR2npsmw6XXKZigC6ekJuhJpiap/9 lOUkiXni+OriCTQ+qNDaKX2gyw059XKd31QXohYTsBr5xsz0XDyOV5nnDRr3+T7iyF/hdd/RQ CNM/maLvbdKkM6lPWkWepRhBLpI3EaWJX840fukdPYWkNt7yhnAJwnq4qaDiUTwLBwT1FA9/9 JKyNRjMLrW6RFLV4PdAL8FUpyDXMqWDTSxm/QGHikm6ucuD6YSZcrC5qg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Dima Kogan writes: > Hi Michael. Hi Dima, > Thanks much for testing. Give me a few days to try out the > latest, and I'll post what I find here. I suspect we're done. Thanks > again! There's no rush, take your time. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 13 15:18:33 2021 Received: (at 49714) by debbugs.gnu.org; 13 Aug 2021 19:18:33 +0000 Received: from localhost ([127.0.0.1]:43088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEchM-00031q-Sb for submit@debbugs.gnu.org; Fri, 13 Aug 2021 15:18:33 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:59433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEchL-00031b-0O for 49714@debbugs.gnu.org; Fri, 13 Aug 2021 15:18:31 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id F18D33200995; Fri, 13 Aug 2021 15:18:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 13 Aug 2021 15:18:25 -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=fm1; bh=KXibIoPJz3XEVzLReiHSsH23dK Ckgud6/Cas14+OPT8=; b=ZmwtyI6u7M/bkbt/3LHeTued91L2T8FXcNIk+k0yfn lwc3f8PowNXCuofa8Q82qDLOvc1UXcEFtpCkc7MiuFwAAnTO0WS9cpJemiOlCFXI +/2r6mpqR72L5XSxlkVKVx4XeQCCCmmsv8PSQEvgktkLVWvVzp5o4eXcZkFptsGY Nw3WoSIVQdAFSSiFRao+YCcyvwHAcUsc+6HCEcT1bJ3hu0WUnAsmk91UR0612J07 xDztPcepT1oMb8cKLEvHBir0nbSvmYcDlAcecjEtWrOxFKWe/Y+XgKEhhQ539cAZ qGdU6qlPr5a8vAD1kfEOmfS457Q9fdr3QqwvLwFLWNEA== 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=KXibIo PJz3XEVzLReiHSsH23dKCkgud6/Cas14+OPT8=; b=p+DiCqrbXJJZSsVJfdeMqp H3Na4MxetE3d4ng8MNqzaLE/bpNxwbf8mdGlXtXYj6DctuL3VBM0SUU+eSXD1t/0 nopawpGzL4v+lCOLZKB5T9KEJAnh1QCWpM/yGIgUgVQ9q00nLRKWBZyHLwUUEARZ 8sDykzv05FUYU3vUEC7Me4bWTTnfQWr6SdZHM+VU7+SasHCb7vTMjJasC96AvYeD L9lQCrkIFeVd5d7yi9MYhwfDvmhFw6l/pTJZpNM3OBz5basaWDCumroiaMYk1pEu 4tWnYup1je2T/KlbkA2DVKXRGxnoXkr7scvnYB5tKSS+5EbhhkqdvSmvB6sLvueg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkeehgddufeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Aug 2021 15:18:23 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> <87eeb4a3xv.fsf@secretsauce.net> <87v94grp9q.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87v94grp9q.fsf@gmx.de> Date: Fri, 13 Aug 2021 12:18:22 -0700 Message-ID: <875yw9b1c1.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Michael. I just updated my emacs to a recent-enough build that has all the fixes: 0b049fe71d7 from 2021/08/06. I see the issue I described earlier. Specific steps: 1. emacs -Q '/ssh:whatever:' 2. emacs asks for the passphrase. I enter it 3. emacs says "Confirm user presence..." in the minibuffer I can touch the yubikey, and emacs completes the sequence. While it's waiting for the yubikey to be touched, emacs is frozen. The toolbar is rendered, but the modeline and scroll bars are not. The point is not rendered. If I switch to another window, and switch back, the toolbar is redrawn, but nothing else is. Most notably, the "Confirm use presence..." text in the minibuffer is not redrawn. I can follow slightly different steps: 1. emacs -Q 2. C-x C-f /ssh:whatever: 3. emacs asks for the passphrase. I enter it If I do this instead, emacs freezes right away, and I don't ever see the prompt in the minibuffer at all. Again, it's not "frozen", since touching the yubikey works properly, but the UI indication is missing. You don't see this? Thanks! From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 16 15:50:55 2021 Received: (at 49714) by debbugs.gnu.org; 16 Aug 2021 19:50:55 +0000 Received: from localhost ([127.0.0.1]:51071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFidK-0005MD-U9 for submit@debbugs.gnu.org; Mon, 16 Aug 2021 15:50:55 -0400 Received: from mout.gmx.net ([212.227.15.15]:44197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFidI-0005Lv-QR for 49714@debbugs.gnu.org; Mon, 16 Aug 2021 15:50:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1629143442; bh=/kaAALNMld0r9JeiuMGgWo2c1sfXxUyQAlcqUJG/Fh8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Q82aL8JZpRwlDlQi6u5dY7j9fhY3bLN09Zg7n2bpfdL9FnCSGfI+KyynObA59bs7W BXhpozpcVqptzFzrK4MGQ6NdTLgjywCpvWw6K3qd9eF1kZA8aGAjSO2qGRHLMuECxG bR4CBkg54pbvOASkx1Pa3MVWLvV1kC+kaF/JyaHo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([217.70.140.1]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWzk3-1mZmci43dR-00XMd3; Mon, 16 Aug 2021 21:50:42 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> <87eeb4a3xv.fsf@secretsauce.net> <87v94grp9q.fsf@gmx.de> <875yw9b1c1.fsf@secretsauce.net> Date: Mon, 16 Aug 2021 21:50:40 +0200 In-Reply-To: <875yw9b1c1.fsf@secretsauce.net> (Dima Kogan's message of "Fri, 13 Aug 2021 12:18:22 -0700") Message-ID: <87im05419r.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:bkmqgNP3q4fEfR1CsV192FSEkkUpV8fBSL13dgx9OkHOH8N7BBV O5EjaciUsl7fkjbvaUeMv4WkvyrcZcAhG0n1Vz4/u+KuZ9m8ViBffXOQKk8qTJ1wUmwdJcK NRxiGTGHRClk0jUeIymqZv0LZT8QZpwqP7eFQ4N56jSSbjWjCQtXEORnrToK1LJbTCtvD9a u9v9DRgVZKhkwi3Tf1Pxw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:y60U5va1JFg=:+Y8u9inMO1DDgZ/9TLoxLM gKISfQgup8iixf+qlRfwL6IfBiNbaDmkibmcC+byrRio3hlNlb/purtQILReP9RYMraxg/3m9 TyPIcyQQ1Vm6AdpEu3gQq7NUZ8UH5BX5tcuvtt15GI4mqZCAp94QrBmg1oL8xJiUJQW7BVhDj OZO5kzihrqFvoTu9+PLB9GdLgWjCKQA1rWFtHfcwXfMTLOVzYib+rOv7LpzGVN7ezfmGOxRbR S9SYmUF7NXafs3RtOPTxPnKHvWGgut7CQ7U6DPY5OhmmTAQhzx05fuaniRa5l6rj0o7tK0+iS QL3pw2RoEDDyc2ZcMM/3TNhUYWGySYtOdwZ95wG2NEWYGy4+9CejD9UryhldeVCKAy15CunWG wtO/tQZ8Qac449iuFSk2b3X2qlKE5TmmElARtd4jnqn16LDUmGlAa3QinmWcCXuxRt7CAGIH5 viKEvG3mBTbC/PNt1ljs3lOE+76zIK2ZDPbZ54R3AsjO0ogpj5zo3MTpebRIIK6b054089qzP 36Sy9VRipRbdSGe6N8kQeXoXU+g+PueGx5imzNQS2Hw8EmcBpIEdHCWi81aT3MuNR771gFC6I cTRleav7KdWCiJy0ZZ8jENR9AlIljU1l4crJ3JvJtKSWdyz0u2+jGKDh4pFck3H+SthgYb/LP R2uoAoPWCTgDRmUJxGmjSnHhoq7wOATDKEjqrYTajeoZFUCuO7Ob05lvriys1tnGd/AxObzoc KVKGR4eMnHfDfOdk+AfbEEoTxAsfz1ILc11bh90yLOoJnQckDg/tdDZc89ufzkA5tGHefMLOT RITfxT93PSCBFhjSarzcJj5A/958pwLNpDb8vd4JTnl4dkTYXWHe4aaM9YYaUAUWEFz1aqAUr u3nwsulifcZSYp2wlSKzN+ZqnGa18lom8Hy6zl2MK3H2TIIRpFBTStoDMQwC1FMJyMyimg03p i60M+USIBkYJJAAxnc0M3bVW5ZV2u4NZGWo5n3xE2jHBxrtVvvgeXqHOJDwTJlOpH1UJxX27E Sl1p3wuM+hDkAs/gZWiRkIZBkt+G5u/W/TJjtZC66QWX64ireUIS2/uDOUYKnGrw0v8Knddzo MD2M95V3Ikw7GUxRbZkzEB9B/IAyDswGPxs1EjyKju0ETkHAOljqhoeWg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Dima Kogan writes: > Hi Michael. Hi Dima, > I just updated my emacs to a recent-enough build that has > all the fixes: 0b049fe71d7 from 2021/08/06. I see the issue I described > earlier. Specific steps: I'm following your tests. > 1. emacs -Q '/ssh:whatever:' > > 2. emacs asks for the passphrase. I enter it > > 3. emacs says "Confirm user presence..." in the minibuffer > > I can touch the yubikey, and emacs completes the sequence. While it's > waiting for the yubikey to be touched, emacs is frozen. The toolbar is > rendered, but the modeline and scroll bars are not. The point is not > rendered. If I switch to another window, and switch back, the toolbar is > redrawn, but nothing else is. Most notably, the "Confirm use > presence..." text in the minibuffer is not redrawn. But that's expected. Emacs *is* frozen, it waits for you to touch the yubikey. Alternatively, you can cancel this operation with C-g, or you can wait 30 seconds for the timeout. While Tramp is waiting to complete the connection, you cannot do anything with Emacs. What else do you expect to do? > I can follow slightly different steps: > > 1. emacs -Q > > 2. C-x C-f /ssh:whatever: > > 3. emacs asks for the passphrase. I enter it > > If I do this instead, emacs freezes right away, and I don't ever see the > prompt in the minibuffer at all. Again, it's not "frozen", since > touching the yubikey works properly, but the UI indication is missing. I see the prompt in the minibuffer. It is the message after your file name /ssh:whatever: , which is placed in square brackets [ and ]. > You don't see this? I can send you screenshots, if you mind. Honestly, I don't see anything wrong. > Thanks! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 09:06:50 2021 Received: (at 49714) by debbugs.gnu.org; 22 Aug 2021 13:06:50 +0000 Received: from localhost ([127.0.0.1]:38309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHnBa-0000f6-3w for submit@debbugs.gnu.org; Sun, 22 Aug 2021 09:06:50 -0400 Received: from mout.gmx.net ([212.227.17.22]:54545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHnBV-0000eq-3u for 49714@debbugs.gnu.org; Sun, 22 Aug 2021 09:06:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1629637596; bh=6yXMRD/ozDOYtHFU22E/zyd0B/7emip6uGbn7jS5gGA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=T84vS6qdbMV2BOtHBq056MUYLMEx2kXUXIDz7KEutd47bOL7lT1y8NOBnKGyGpCOf S/Ja98dAD4/y0aBcS34y7Ok+HPfQh/IhrRfTZKbQQlx5b1TkU1/N176gNNbicvyITF xEhj6VvXb8+/UDowv5zySSfAPA/q8Ic/p+WZ/TKE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.157.218]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N17UQ-1n1Wz80FmE-012Up6; Sun, 22 Aug 2021 15:06:36 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> <87eeb4a3xv.fsf@secretsauce.net> <87v94grp9q.fsf@gmx.de> <875yw9b1c1.fsf@secretsauce.net> <87im05419r.fsf@gmx.de> <87eeat414c.fsf@gmx.de> <87lf4x5ork.fsf@secretsauce.net> Date: Sun, 22 Aug 2021 15:06:33 +0200 In-Reply-To: <87lf4x5ork.fsf@secretsauce.net> (Dima Kogan's message of "Thu, 19 Aug 2021 12:26:55 -0500") Message-ID: <87v93xvdba.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:FE/bm8iwratUv1lvmsi/PRicA66F5HlYTVsbAE5V65IiS8eJl7E B5QajSjxyrvjpUR7EyGb5HlhXUsM+LtHojnCssvlCnPqBqZ8+8kzXR2C9Gz4mWAwZDfkAnf a4qAHXVwLGLB/MfW6i1yrh25MMNOOppxGWjEn93wq15XLvnd+cNy3t6UiwnW7MFJLkTsFDt nKMI7zZqPr05233hrvxIQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:w4OR7W02m8E=:1OFqsWI9Vgk7XFtcWw0ZWb 9L0iM1C2X3HAeCoP0JPQTFKd6PHnJQjIWE+/HbIZeBeVz2WYNaiMijOhXRo48q74565L0Y4Vy vZCtSdQE26eKfdgSOzZExp2kl/m+/G7Lfn0fOYtEcZ9FUbvxiNjZuwOiWqNaa4QH8aWuUUXuU bB03+ucxtrDqan0X0ks2pRpQxmMVnOL0PZwy5udyd05nCy61IP+bkmL6jTWnwSxN8aMkv2+h0 oBIifxWIlJ//ebpuNPkM5NH9jzxiwgABdpGTXsiclxOa/Gm2+JIPiTPHr5R+SaphFSq6+7xcC FpWydIm4kIa3oaddMrgVxKMGuQQoLbEQohUQJ4rEGWh0zqcOPy7cuHiVX2RXQ7TprAr8xspNB CiGYXz1NMdS/t6YPvKSN5YusYKY4tR+NH3Cr8NC7rioYl0EbHtFkFNxO8vI29v6iutCM4TsAW /w6u16HMpXHwzkioRj9GYX4+SMlbUtEPxddx/veSD8KLDTpmu/l7zY64lQZJWk7yGXUEkch5l kLWTVAxZjC83O7azHtT3Qp2KwU5NHpUgomG0QLcOyW93b4OJ9zuxois/IPmE0YxIm7gmnFgeu QUNS7MW2yUi7lBMoOm8Qx6Z/Ai7IuY2TTsLZnxe2+rzxnf5z6DeXUWQqwwqgqwPPDgxcHOlUi dl+LaIuCucAaxp6lxAfceMsz27gLLLlJk2aWHMSF+6ukJT6kR0Vzhk/b/GcJHYAdRnoBEhPJq 2K+3E5YUGA8ZAHa2uVyufiTtcC9sakpRgmCTn0bNul06a6Ar0bZ9sZvrmEqsOjNv793QCp3Wd mT1j2MxuoQBw90LRWkCEHwOVBjkGWRgpq3++ug7S/M3pH+NUgmXvM4sgLivVreMKnzZZLCTG3 9IUFxevHkz/nOGp+MPGWc9v/F7+CgKBxdUxegKH8i+N31SXEgsYYySuljSxda+K/Q65e+ZNp/ p7Dq8R2sSVOHbcnImqIe/sixi/3VjGbf3bVcaPiRlbbNFwxvkeS4QqR+VP9Sak47Q0PLFpIbn vbl4hCHYXJ223AalpQcSSChW9ZuH5oNFh8S9HU5JsMhBZSlZl6javrgXZKGS2c+9bjRMVbI3T G44pJluUbKvVi/olH1ZDHQcQHMygLEf1qiHxcj189VfgchSUhCPUVqEPQ== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: > Hi. Hi Dima, > From what I see, the rendering is dependent on what the window > manager does. If you switch to another window to cover up emacs, and > switch back, is there a redraw? I'm observing no redraw, and that's a > problem: emacs is frozen, and I don't see the prompt text in the > minibuffer. Sometimes due to WM quirks I never see the prompt. emacs > should give control back to the main loop while it waits for user > interaction (i.e. exactly what it does when asking for the passphrase). It seems to depend on the window manager, indeed. Running "emacs -Q", I always see the whole rendered Emacs, including the message in the echo area. Whether I move another window on top on Emacs, and move it away afterwards, doesn't matter. I'm running Fedora 34 with gdm (GNOME) 40.1. > I realize this might not be a simple thing to implement. Would it be > simple to wait for keyboard input OR the yubikey touch, whichever comes > first? If so, we can ask the user to "touch yubikey, or press enter to > quit". Then the same console input code used for the passphrase input > could be utilized here. Not so simple to implement. We have the ssh security key message, which must be displayed. I've adapted the code slightly, so it doesn't wait 30 sec for the confirmation message to appear from ssh. Instead there is a loop, which waits for 0.1 sec, checks for the message, and calls (redisplay) if it didn't appear. Pushed to master. Does it make a difference for you? > Thanks! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 09 09:58:12 2021 Received: (at 49714) by debbugs.gnu.org; 9 Sep 2021 13:58:12 +0000 Received: from localhost ([127.0.0.1]:35857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOKZ9-0005Ap-Sj for submit@debbugs.gnu.org; Thu, 09 Sep 2021 09:58:12 -0400 Received: from mout.gmx.net ([212.227.15.19]:36789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOKZ7-0005AV-Tb for 49714@debbugs.gnu.org; Thu, 09 Sep 2021 09:58:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631195881; bh=JMgszQ6tUvMR6oq7W/Gfk/xTsGEfEF1sxKEE9gxH4FQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ERYoVWyXMqvfCyYshYyNhx51EjdA43yyz7gT1hFcy4c8e20ZiiPi7x4JjkNNcgmsh KGmiyzCgdPWa2vpbcLfRLWbktA9Foq9L1/tdWua+x2pYupQ50/ffW3W8RRpOVMlAj8 yPrIxKXjkX31r68HC1AyWmdwCsp1qbAkVyskDu1s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.148.40]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M2O2W-1mMgw30YAQ-003sXH; Thu, 09 Sep 2021 15:58:01 +0200 From: Michael Albinus To: Dima Kogan Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys References: <87o8asu1mg.fsf@jpl.nasa.gov> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> <87eeb4a3xv.fsf@secretsauce.net> <87v94grp9q.fsf@gmx.de> <875yw9b1c1.fsf@secretsauce.net> <87im05419r.fsf@gmx.de> <87eeat414c.fsf@gmx.de> <87lf4x5ork.fsf@secretsauce.net> <87v93xvdba.fsf@gmx.de> Date: Thu, 09 Sep 2021 15:58:00 +0200 In-Reply-To: <87v93xvdba.fsf@gmx.de> (Michael Albinus's message of "Sun, 22 Aug 2021 15:06:33 +0200") Message-ID: <8735qdu9zr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Da7OL2W8zkEb75Nw+3u8V6jw2qmaMrI5L6wfllh+eOSNdHl74Mj L2Pft8WLV2kj2IWssGzPZ+tXtk9nhpvMCOL6mRsfbXcZHk3zgr+P+DRd80AMcDvYTbuDp+C HP0RXvkkbdw0F2DgHxebO/IHhbK5tSpZi7ZNtTILUnZAZcCbBay6rMInIfenJnj6BG8cxfu l2RaxzOyc1Xh7CP98pAsQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:jo6ZPd4PU+c=:2OLXcc9l+2nNjCo9XmZgjG ZgfCU0uqEax8OWTTlw7LhuQattxgjc7xWazr3wi7zWXJyJA3LphiCbzwzl9oMXLUGLHMOEaCN t0qIxk+L++mpQh9FYgUEjdvEwcR3NvHibrm+QyuVJprf03c7hViIOTWUzbSw8yoa4Ssnxv4WU jCBDniL7S+n7XYSaQLn0Mt2yPNJcio8Tev5thQlrTIj/w2t03S/g/RPQtsxxnnvUumLtDaqyy w8ZVStumc1WwV1OhUrXQl5NRld3J7IWskKQS2JFuMkWIFf8ipPEZNUxrHwBYrLAvxVUbxn7QR I1tp89JSwgGE09nbv/xmmKQ4/jqmqm3KmuBBYt9/6otPCD3tRr2J/xSMYqRqHsR0i2BbJfQEZ JOrol/VJgx+9BVIvXXYabO6ncYn3xBC6FJ57NxfIq0bqW6Gi3XlIxV1QCYn5BoI2b51lA0+05 lV6Ql7cq/cKIisa961izsZ7l3CfiaTEWtj5iqJUNL1W6kwf6KQwAKdSZGjohPhssQz4ft+0/4 2UNNER2lIIZmU+3rhrs2bDgjFcWQHAXL18SGgqnqJk0FzgtekU7cSsPEyF4x5hWiZ/dnDc9Ob yDuEUQhJYFUqof0/K3YBgtdDW04bd2sUk0bnoBCBZzDqn/zGEGg5zKl4s+rr5rRYwZPGEtL7l JoysFef3XLT8yiu+g/Ig0jwK+kGWAOhh8bqCbgg74f8bcK8Z3lCshAMv06kFMW47jClrZlmyp 8PCBukhsumk7w3U+wEsWmaiYMAdcAXUhDtLOghUoT5PNRtzXxJ+/iJFyzwKJeb7bEzhChXipu mQixGY0S5VTkibUaaGNX0SUF8VJoNhpjaZtAGX6Meh/QqqXRO3Q12aBFnARTal5l8Hqgo8OPh /vSwtpjCFsGUhM+DULodPqBxawNKdc9UOwb/gEQJXZN5ALu7xK5A6jsMwSvAAcPFH8OyXX9kR b7FCGANJbFXAT9vgfu9KK6kxv4LQ3J6XDC+ssOVfw6Kc+BLFoKGh/MTeMYN3gKxyzserOrvA8 MgPkznAVHSukA11nXeJwWp0RfNVXDHPBdUSlAb4+nUVXrCUcqbWFYWzGySKnDeQqLxHIawaEw kTK1DjTIxi68WE= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714 Cc: 49714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: Hi Dima, >> From what I see, the rendering is dependent on what the window >> manager does. If you switch to another window to cover up emacs, and >> switch back, is there a redraw? I'm observing no redraw, and that's a >> problem: emacs is frozen, and I don't see the prompt text in the >> minibuffer. Sometimes due to WM quirks I never see the prompt. emacs >> should give control back to the main loop while it waits for user >> interaction (i.e. exactly what it does when asking for the passphrase). > > It seems to depend on the window manager, indeed. Running "emacs -Q", I > always see the whole rendered Emacs, including the message in the echo > area. Whether I move another window on top on Emacs, and move it away > afterwards, doesn't matter. > > I'm running Fedora 34 with gdm (GNOME) 40.1. > >> I realize this might not be a simple thing to implement. Would it be >> simple to wait for keyboard input OR the yubikey touch, whichever comes >> first? If so, we can ask the user to "touch yubikey, or press enter to >> quit". Then the same console input code used for the passphrase input >> could be utilized here. > > Not so simple to implement. We have the ssh security key message, which > must be displayed. > > I've adapted the code slightly, so it doesn't wait 30 sec for the > confirmation message to appear from ssh. Instead there is a loop, which > waits for 0.1 sec, checks for the message, and calls (redisplay) if it > didn't appear. > > Pushed to master. Does it make a difference for you? Is there anything else I could do for you? Otherwise, I'd like to close the bug report. >> Thanks! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 09 14:00:18 2021 Received: (at 49714-done) by debbugs.gnu.org; 9 Sep 2021 18:00:18 +0000 Received: from localhost ([127.0.0.1]:36186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOOLR-0007mX-Tj for submit@debbugs.gnu.org; Thu, 09 Sep 2021 14:00:18 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:55425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOOLP-0007mF-NG for 49714-done@debbugs.gnu.org; Thu, 09 Sep 2021 14:00:16 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9045B320091D; Thu, 9 Sep 2021 14:00:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 09 Sep 2021 14:00:09 -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=fm1; bh=QEOhiqZBK5uhoVh0Ag4tFRimtR O+8fMY4yEXlO2S6tM=; b=Qg+WHyLICFlH7DOGySYyscinVccazgicSLBfchHPsw R+L7IviPpHwq5rsHBboyOcd1CIpwO6wpLg2lCviWIiVYeZVq1D//B5gcumV+TNno KuT6b7wjDuv7vDfY9DlifnDMpj3J3x4y1v0z6QNrrUu+qLC/G+WFNMiWSbsKz3U2 wma3qvj/obdwq5pHLRvqDINzm5lMfMFmpQ/IT4/0BxxFnPRavShEThwUXQugQhXP B36dUlfsBfvbFYqYeuPZv7ASsPVXxysaooID3HRH7dz8nsKuTDQhP8ferszUgsMl b+wvObHIWDPK/3rDHUdp6f/mU9Cqya/Kla05Thwfzlxw== 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=QEOhiq ZBK5uhoVh0Ag4tFRimtRO+8fMY4yEXlO2S6tM=; b=sIbJAHEl1C0sD9R9i7/Idq qERMVluHUvdr5nc7vK/wTekQFR2kl3Xkk8xgPz+44hp0xMfgx7abUnNtTqk3nyiT AnhXCsaQJ0IWGG0ZU/YND2lMsOXpnXJHegTUSTc3Tc+d4MhcfpHyq1GYHF+ETe03 Lil4OrULvP+17ycc05PaRrd/I46s5vHnBpQVmgsxwW96zFEG3DErFl1WEHFiwTIM pV/JCkv2Gv73mcdkRHM7LaTlC9DQ+oIFKluHH9fsIwtLQuRi36K42LSR+iEhvRFA xjzVZm4qi26rt7wq9j4N6q68daqmJxmYk0N6Fk2VhX3l3gmwuU2fpTBILajFlPdA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudefledguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgr ucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrg htthgvrhhnpeefveefgfettdefvdetgfekvddtffevhfevleelhfejheelgfduffdtiedu ueekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe guihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Sep 2021 14:00:08 -0400 (EDT) References: <87o8asu1mg.fsf@jpl.nasa.gov> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> <875ywmp9lw.fsf@gmx.de> <87eeb4a3xv.fsf@secretsauce.net> <87v94grp9q.fsf@gmx.de> <875yw9b1c1.fsf@secretsauce.net> <87im05419r.fsf@gmx.de> <87eeat414c.fsf@gmx.de> <87lf4x5ork.fsf@secretsauce.net> <87v93xvdba.fsf@gmx.de> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys In-reply-to: <87v93xvdba.fsf@gmx.de> Date: Thu, 09 Sep 2021 11:00:11 -0700 Message-ID: <87y285ljdg.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49714-done Cc: 49714-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Michael. Sorry I haven't replied to this. I think the current code is good, and I'm closing the bug. If anything else pops up in this area, we can use a new ticket. Thank you very much! From unknown Fri Aug 15 16:19:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 08 Oct 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator