GNU bug report logs - #42706
27.0.50; commands breaking on unreachable remote directory

Previous Next

Package: emacs;

Reported by: Ken Raeburn <raeburn <at> redhat.com>

Date: Tue, 4 Aug 2020 13:57:02 UTC

Severity: normal

Found in version 27.0.50

Full log


Message #8 received at 42706 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Jim Porter <jporterbugs <at> gmail.com>
Cc: Ken Raeburn <raeburn <at> redhat.com>, 42706 <at> debbugs.gnu.org
Subject: bug#42706: 27.0.50; commands breaking on unreachable remote
 directory [was: Re: master 3e4d4f472d: Rework `abbreviate-file-name' in
 Tramp]
Date: Sun, 13 Mar 2022 10:30:34 +0100
[Changing subject and adding 42706 <at> debbugs.gnu.org to Cc]

Jim Porter <jporterbugs <at> gmail.com> writes:

Hi Jim,

> On Fri, Mar 11, 2022 at 12:45 AM Michael Albinus <michael.albinus <at> gmx.de> wrote:
>> Btw, while you're at this: could you have a look on bug#42706? It is
>> related to abbreviate-file-name and Tramp. When it was reported,
>> abbreviate-file-name wasn't handled by Tramp, so nobody did any action
>> :-( But now we have tramp-handle-abbreviate-file-name and could do
>> something, perhaps.
>
> I tried, but wasn't able to reproduce that issue on Emacs 27.2, so
> it's hard to say if things are any better in Emacs 29. I tried by
> starting "emacs -Q", opening a file over Tramp, and then turning off
> my remote device. While I couldn't connect to the remote host anymore
> (as you'd expect), `list-buffers' seemed to work fine, and `cd' showed
> the prompt correctly. Actually trying to change the directory timed
> out, but that's normal.

Well I've tried to reproduce the scenario of the OP with Emacs 27.2,
which wasn't trivial due to missing information. However, the backtraces
show invocation of tramp-archive-file-name-handler, which gave me the
idea, that the OP has applied a remote file name archive, and from
within that the problems happened.

Remote file name archives, handled by Tramp, are possible only on a
local GNU/Linux machine. See the Tramp manual for a description.

In order to reproduce the problem, I have opened a file archive 123.tar
on a remote machine, like

emacs -Q /scp:user <at> host:tmp/123.tar/

The trailing slash is important. Afterwards, I have disabled the
LAN/WLAN connection of my machine. Then I have called "M-x cd" in that
buffer.

With both Emacs 27.2 and Emacs 29 (from git master) I've got the same
backtrace as reported by the OP. So I guess we have to dig somewhere
else.

> - Jim

Thanks for your investigation, and best regards, Michael.




This bug report was last modified 3 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.