From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#39489: 28.0.50; On Emacs 27, 28, tramp hangs indefinitely Date: Mon, 10 Feb 2020 10:11:24 +0100 Message-ID: <87zhdq4xj7.fsf@gmx.de> References: <87v9oitf5i.fsf@lambda-y.net> <87sgjm5bfu.fsf@gmx.de> <87h8025as5.fsf@lambda-y.net> <87imkh5ssj.fsf@gmx.de> <87zhds4wpv.fsf@lambda-y.net> <87a75r6gxx.fsf@gmx.de> <87r1z3fac8.fsf@lambda-y.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119777"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39489@debbugs.gnu.org To: Benjamin Slade Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 10 10:13:28 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j158C-000V54-Cr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 10:13:28 +0100 Original-Received: from localhost ([::1]:58658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j158B-0002Dh-6t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 04:13:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42317) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j156p-0001BK-5E for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:12:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j156o-0001rr-1M for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j156n-0001rX-PY for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:12:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j156n-0001jw-J4 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2020 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39489 X-GNU-PR-Package: emacs Original-Received: via spool by 39489-submit@debbugs.gnu.org id=B39489.15813258956657 (code B ref 39489); Mon, 10 Feb 2020 09:12:01 +0000 Original-Received: (at 39489) by debbugs.gnu.org; 10 Feb 2020 09:11:35 +0000 Original-Received: from localhost ([127.0.0.1]:53663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j156N-0001jJ-6K for submit@debbugs.gnu.org; Mon, 10 Feb 2020 04:11:35 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:47645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j156K-0001j2-Hg for 39489@debbugs.gnu.org; Mon, 10 Feb 2020 04:11:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1581325886; bh=SYNRmqYMB93GSSjBZrYRKNAAOPdLpNHNUtGvdNy5lCw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VyLjn9nmYsM8wQCRH+jGag459bRN83/BTym3bBON+DXW4QfFqXQkC3Mr7a3cw6N78 ZjvY+zykM4/xLfLhGkrTtsP0/pNH4IV/r5hBcbFJaiquQun7o4D8zxgm209iGOgSdW HCh2Ypgcf6FCH8cn/0yw26+Xg+6We7eCm6JwFHug= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.51.13]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpDJX-1jrC5J1AJ5-00qigr; Mon, 10 Feb 2020 10:11:26 +0100 In-Reply-To: <87r1z3fac8.fsf@lambda-y.net> (Benjamin Slade's message of "Sun, 09 Feb 2020 19:24:39 -0700") X-Provags-ID: V03:K1:LS6xUJf/8ncn1cN8VWcH6xyS8fzGa0FmK1Soh/wRWZ296KcghmN sL7JG74y6QZq2Ivo3Kh+QwzL7mk0Fvn5HohBLt/In5o0YXZPKDXlvEatyxL27iTMU6JrkSm G8rW4+sZMUWZV/d+z8RtN+/sxheFVIaMDcO9q+1GppXDu76BvukeUI7Fm50VujRJNhY2GBY 2fKWy2QMbWw8xN0cgF2lg== X-UI-Out-Filterresults: notjunk:1;V03:K0:7uHzYiMlzws=:2BNvUu3GS5yKKCseGwT8cX 3v0Eds/Poe9G1QKP8/qx+9aQqVBeyiylwq/n7BMVjA1pO6BLo/X8+YPQPXaAQp+VVNssaZnwe 6Rn7KGtJS71eWeaJh4bs8dAaznJHzKv8Yc3LIelv8duwl/RYlM4bBbvUMj+2jvT59+Ngi3tz3 V1re/ts+WQt8LbioXnFxbUFQgd3X5SXMr0yS++1yDETZ7ShM7S8m4GM37maKVjjvcb+hIylXt h7mF7KlBtNOY4b6slWbrx7xn46atqzJKF0xGjqsfB66TdAmknxNQEWFCqyIlPh57Z7mS4gTu4 a+rcY0v2h9dmpGUkMi+gkvnueh1kF9OQympa5ywZmxr3b8/dWOyo2ep1Sa9EQL6NH6ZYcxOfx jXvlJa11mYR/SdSx0oTwqw4l5nCBtRWAeWyh/+rm6O3qMGYonngfJ5QWE9JMNjI94+ogcjszP Umy7n2h+mQ6lqnElkjgUZO8aY1YwnNLeMIc0EtGwR/eqVYiXCBKrRJsWbe9aiLEBGB6fybbjO MfVFiT7kWzJMwkW1eIuI73JNh2lsYUUxY+WUeDGrUn77CwOscuLYE4Uooz2Zt5yDzDSUu1nia +53mRiDn/eGyVAcP/ATNZLeCITQyL3WHk9WhzQDXDzahr517uHAiBYZY2MWm2CnCsdb4Lvh4G 3ePqb2wG/ZT+xVVyeLX9bE1GYtJnpM/owh/90zsKZhJStnib2yZ3OM+EbY7lIQHBTNTNpmP9d O9/b6dVS3ishRDzR2zf7Ka37IrAVwpDdAdzBrxhttG+2NBTlGDUXTNWyU0CCZvOn1/qOBvzH X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175862 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Benjamin Slade writes: > Hi Michael, Hi Benjamin, >> I don't know why `auth-source-search' needs to expand ".". Could it >> be, that it is part of your `exec-path'? > > It turns out my $PATH variable had an 'empty' field > (e.g. =3D/usr/local/bin::/home/slade/.guix-profile/bin=3D), > eliminating that fixed the tramp issue I described in the bug > report. (it's interesting that this only manifested was 27+) An empty entry in $PATH is taken as `default-directory', implemented as "." in `exec-path'. And this is a problem, if `call-process' searches for the gpg command, and `default-directory' is remote. I have no idea why this problem has uncovered in Emacs 27 only, though. You have fixed it yourself I guess. But since it happens also for other people, could you pls check whether the appended patch would have solved it for you, keeping the empty field in your $PATH? > [There is still an issue with the =3Dem-tramp=3D package on Emacs 27+, > which causes a complete lock-up (i.e. C-g won't work), but that > should likely be a separate bug report.] Please do. > best wishes, > =E2=80=94Ben Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment diff --git a/lisp/tramp.el b/lisp/tramp.el index 7e68b639..4c057703 100644 --- a/lisp/tramp.el +++ b/lisp/tramp.el @@ -4868,7 +4868,8 @@ verbosity of 6." "Read a password from user (compat function). Consults the auth-source package. Invokes `password-read' if available, `read-passwd' else." - (let* ((case-fold-search t) + (let* ((default-directory (tramp-compat-temporary-file-directory)) + (case-fold-search t) (key (tramp-make-tramp-file-name ;; In tramp-sh.el, we must use "password-vector" due to ;; multi-hop. --=-=-=--