GNU bug report logs - #50205
27.2; crashes or hangs when opening a specific file using tramp

Previous Next

Package: emacs;

Reported by: Mani Kancherla <kancherla.mani <at> gmail.com>

Date: Wed, 25 Aug 2021 19:56:02 UTC

Severity: normal

Found in version 27.2

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Mani Kancherla <kancherla.mani <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 50205 <at> debbugs.gnu.org
Subject: Re: bug#50205: 27.2; crashes or hangs when opening a specific file
 using tramp
Date: Thu, 02 Sep 2021 09:22:00 +0200
Mani Kancherla <kancherla.mani <at> gmail.com> writes:

> Hi Michael,

Hi Mani,

> Looks like the workaround for the installation issue is to run "M-x
> tramp-recompile-elpa", but it complains there is no such command. So,
> I just opened ~/.emacs.d/elpa/tramp-2.5.1.1/tramp.el in emacs and from
> the menu selected Emacs-Lisp> Byte-Compile This File. I am not sure if
> it does the same thing. After that I restarted emacs and M-x
> tramp-version shows 2.5.1.1. With this, I still see the problem (still
> hangs or crashes).

Byte-compiling tramp*.el files is right, but the problem is that Emacs
should not have loaded the built-in Tramp already. Tramp comes with the
file tramp-compat.el, which offers defsubsts and defmacros different for
Emacs versions. If Tramp is loaded already when byte-compiling, the
loaded version of tramp-compat.el would be used.

A recipe to cure this in your environment would be:

1. Remove all byte-compiled Tramp files.

# rm -f ~/.emacs.d/elpa/tramp-2.5.1.1/tramp*.elc

2. Start Emacs with Tramp's source files

# emacs -L ~/.emacs.d/elpa/tramp-2.5.1.1 -l tramp

This should not give you the error.

3. Recompile Tramp ELPA package *with this running Emacs instance*

M-x tramp-recompile-elpa

Now everything shall be fine, and if you start Emacs again, using the
Tramp ELPA package, there shouldn't be the error.

> Thanks,
> Mani

Best regards, Michael.




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

Previous Next


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