From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mani Kancherla Newsgroups: gmane.emacs.bugs Subject: bug#50205: 27.2; crashes or hangs when opening a specific file using tramp Date: Fri, 3 Sep 2021 09:44:36 -0700 Message-ID: References: <83tujcu3f4.fsf@gnu.org> <835yvrs9sl.fsf@gnu.org> <87v93r9y8x.fsf@gmx.de> <8735qu9ecq.fsf@gmx.de> <874kb890kj.fsf@gmx.de> <87mtov5tnr.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000076285405cb1a045b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50205@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 03 18:45:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMCJX-0006Du-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Sep 2021 18:45:15 +0200 Original-Received: from localhost ([::1]:52598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMCJW-0008Vt-AD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Sep 2021 12:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMCJK-0008Vk-2H for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 12:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMCJJ-00087n-Q6 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 12:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMCJJ-0000qK-P3 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 12:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mani Kancherla Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Sep 2021 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50205 X-GNU-PR-Package: emacs Original-Received: via spool by 50205-submit@debbugs.gnu.org id=B50205.16306874973215 (code B ref 50205); Fri, 03 Sep 2021 16:45:01 +0000 Original-Received: (at 50205) by debbugs.gnu.org; 3 Sep 2021 16:44:57 +0000 Original-Received: from localhost ([127.0.0.1]:45836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMCJF-0000pm-AH for submit@debbugs.gnu.org; Fri, 03 Sep 2021 12:44:57 -0400 Original-Received: from mail-io1-f47.google.com ([209.85.166.47]:34407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMCJD-0000pW-Pi for 50205@debbugs.gnu.org; Fri, 03 Sep 2021 12:44:56 -0400 Original-Received: by mail-io1-f47.google.com with SMTP id y18so7533797ioc.1 for <50205@debbugs.gnu.org>; Fri, 03 Sep 2021 09:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TxMk2ReXoPE42/C7K8/LF6Jl1tZj3rHgKCV4U1TIz30=; b=pYqcdyVYivkBy1pFSiNgVzkKt39YD/OznRbROPdTp1+MffaVwJ7H7OagTFgVZs8paK ngeBU+d9GhDKY1gcn4hMWEQeODH/d0BohUNjXFyG22bNyYCmCxuHxWC/ZFhWd1UMp7ou ebEFSk+kiC3NyteCeqYnyqu6RNz282C1GH7SHSGxzhFKcDNQk4pYpcqWkhENelvWM/2f rz+6qLLJnt1Aem7uVvfy4snpvc2Mrg6Q55pZ8ZLKVbLKL20IaiH5GNKjQybde8WN+x2M GYqaCY82HuI5rO6bG38EJc88hMZnHhu6IoJC/I5YT4JT3JfWIJT2HIY2emHbRMw0xXN8 AYcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TxMk2ReXoPE42/C7K8/LF6Jl1tZj3rHgKCV4U1TIz30=; b=mNvl22YY1rfRfpy49+B5VY8kN+CfyOFRmTEHe2MgTVuEQgR6/lkBnv1Sfqfjyunm7o Js+f8y/KeN8Yh1wdPTN/YqMdaq+UT10YRkrmnNVJYei6aaBOnr5JqwCYkGwb+B2bWcrc 50Jjcfst6yxHKot05vyxZoT2pP6E4meq4D4juKPejVvaCEkFH1sZZG3SYoxdQ1lm746N Rilh3wxtrmEqmCsVOZDjHRPlJIuKRzZOQZSkwX6oRo1ho6NNpB+EPIhx2+pUo2cRLMl7 xTUscN8A00xDUREbm6D4NFiwZbls+eULjLgeeSy/u/b+QROn91Sr6qMsGW9QzBBZ9GQh z1dQ== X-Gm-Message-State: AOAM531k+pNyxvA/xa9k+/1O109Yo1/SLhTyr/4wpotc0CufKj4jxd20 kti+k56QleJWxjyZP/xWURx2BoYeVIqqY/Gv0ko= X-Google-Smtp-Source: ABdhPJw2MwWoT3PjakZXZA8CPCEWgXLfcpTXh8dNarAnMY0r2xRRkkCxEuC+G84mfXvFtsntQvf15BF9PH6qGKI0UwU= X-Received: by 2002:a02:374f:: with SMTP id r76mr580jar.24.1630687487992; Fri, 03 Sep 2021 09:44:47 -0700 (PDT) In-Reply-To: <87mtov5tnr.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213371 Archived-At: --00000000000076285405cb1a045b Content-Type: text/plain; charset="UTF-8" Hi Michael, I followed the steps and could successfully compile using "M-x tramp-recompile-elpa" and restart emacs after that (without -L ~/.emacs.d/elpa/tramp-2.5.1.1 -l tramp). I verified that it is running tramp version 2.5.1.1 with M-x tramp-version. I still see the problem with this. I open that specific problematic file and split the window, it hangs. Thanks, Mani On Thu, Sep 2, 2021 at 12:22 AM Michael Albinus wrote: > Mani Kancherla 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. > --00000000000076285405cb1a045b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Michael,

I followed the steps a= nd could successfully compile using "M-x tramp-recompile-elpa" an= d restart emacs after that (without -L ~/.emacs.d/elpa/tramp-2.5.1.1 -l tra= mp). I verified that it is running tramp version 2.5.1.1 with M-x tramp-ver= sion. I still see the problem with this. I open that specific problematic f= ile and split the window, it hangs.

Thanks,
<= div>Mani

On Thu, Sep 2, 2021 at 12:22 AM Michael Albinus <michael.albinus@gmx.de> wrote:
Mani Kancherla <= ;kancherla.ma= ni@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.
--00000000000076285405cb1a045b--