From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#57800: TRAMP insert-file-contents now fails for regions Date: Fri, 30 Sep 2022 20:52:00 +0200 Message-ID: References: <87fsgt4ynq.fsf@gnus.org> <875yhp4xyf.fsf@gnus.org> <87h719j5g6.fsf@gmx.de> <87sfkry80u.fsf@gnus.org> <87o7uyihq6.fsf@gnus.org> <87v8p6hyg4.fsf@gmx.de> <87r0zsiu5h.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e3f05505e9e97d81" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36512"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 57800@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 30 20:53:14 2022 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 1oeL8M-0009IX-Gt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 20:53:14 +0200 Original-Received: from localhost ([::1]:34454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeL8L-0007Z8-Fp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 14:53:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeL8A-0007Yf-UH for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 14:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeL8A-00088u-Ln for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeL8A-0007iL-Gn for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Sep 2022 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57800-submit@debbugs.gnu.org id=B57800.166456394129607 (code B ref 57800); Fri, 30 Sep 2022 18:53:02 +0000 Original-Received: (at 57800) by debbugs.gnu.org; 30 Sep 2022 18:52:21 +0000 Original-Received: from localhost ([127.0.0.1]:42955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeL7U-0007hT-Tl for submit@debbugs.gnu.org; Fri, 30 Sep 2022 14:52:21 -0400 Original-Received: from mail-ej1-f50.google.com ([209.85.218.50]:36570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeL7S-0007hE-96 for 57800@debbugs.gnu.org; Fri, 30 Sep 2022 14:52:19 -0400 Original-Received: by mail-ej1-f50.google.com with SMTP id 13so10908014ejn.3 for <57800@debbugs.gnu.org>; Fri, 30 Sep 2022 11:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=3S77PfVduhh8dbLqImEQW5tq2BaB6kowPz20ef4vjzs=; b=NJgOeEVzBshN9uw03X/IkuNe6XOJzAI779FYCjTFcPJ8tiDCdWy0TPKszvyBnCJQ9x 9R1+5BqDq+YBPcZDTwPBe6ZkI5hqAqOzeyV3yUCdDAOgvRf31BAJVfEmbAfhnQmMAu45 O/y68gkpbQYBBkvi7WKXOAMqaq2RwniUIamktL5w3VKbRXv+z9XnhDKNb7UH2xLAvO4m /zJrWD/1zXLY9ZiJPtAswtnT4Q/jzqVWCKc/OaDQwBMbxs9tQrTQafspX3JB//uy1cFd YC4vkopkj6y2wcjK4DEfANawwZ4pPvsAv9a0Z1u5930BvKFuKezntBcsDOH/0ipME0nf zeHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=3S77PfVduhh8dbLqImEQW5tq2BaB6kowPz20ef4vjzs=; b=DDlso9vmd7+5Z+nUibhixTE4fUYomQDM2W/4UeQ3BIVEpm3LdYCktTcffhMuj6oFOP eaABckZKWQ4irUX5l32U1TxXqpnODKILLb/jrd5L6o7NP+diXhPN3U9r9H1Cosnf88me Dge+JTkHvNtZq8Hkel0HdJlAoOyTAMISZ3boARB6VvkVLO7ikGBq7+8st22cp1m3QHAu 26JQtgKhaVLoKHvCPZQkqHILmckNCCXgkz+HH50asVH3Mp16/WBu8O+wXJBTv2NB6CbX 4T+9nm5rmai1Ln39jSNbEpXEWyDFqDb3dWs0yMcj3R9YtDTBwMZ37IKuDQliiTCP238p ty8A== X-Gm-Message-State: ACrzQf2WaIgrn3iCG4lgwFBI/EgkPiZEGeREqIUR9YakeTiWwVN/+iAP e85anixhk8p5nDASp2iIhJAHUPDneczycplRNw== X-Google-Smtp-Source: AMsMyM5fivSYN9BNEAdWZIThyTXlrey+QRi1YYriAaN3OP5uobJBQQ/miI17LR8R5TlReECRV/8Pu/5KncUoN8IDBvI= X-Received: by 2002:a17:907:b09:b0:76f:99cc:81cd with SMTP id h9-20020a1709070b0900b0076f99cc81cdmr7087030ejl.530.1664563932293; Fri, 30 Sep 2022 11:52:12 -0700 (PDT) In-Reply-To: <87r0zsiu5h.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:244050 Archived-At: --000000000000e3f05505e9e97d81 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, that fixes the problem. Does that mean I somehow have a mixup of sources from different commits (not sure how) or that the cache is persistent and can survive long times? Note that I also run Emacs 28 from time to time. Could it be that 29 reuses cache created by 28 that contains no-longer-compatible values? Paul On Fri, 30 Sept 2022 at 20:39, Michael Albinus wrote: > Paul Pogonyshev writes: > > Hi Paul, > > > Happened again. See attached `BACKTRACE' and `TRAMP-LOG' generated > > after evalling `(setf tramp-verbose 10)'. > > I guess you mean setq. > > > Note this suspicious entry in the log: > > 10:26:36.864700 tramp-get-remote-tmpdir (1) # File error: Directory > > /ssh:USER@HOST#22222:/ssh:USER@HOST#22222:/tmp not accessible > > Yes. And the debug buffer shows us > > --8<---------------cut here---------------start------------->8--- > > ;; Emacs: 29.0.50 Tramp: 2.6.0-pre -*- mode: outline; coding: utf-8; -*= - > > ;; Location: /usr/local/share/emacs/29.0.50/lisp/net/tramp.elc Git: > master/5fd8e1cc49d2ebd59219ddf3a691949a22b601f3 > > 10:26:36.638086 tramp-handle-insert-file-contents (3) # Inserting > =E2=80=98/ssh:USER@HOST#22222:/PATH=E2=80=99... > > 10:26:36.639033 tramp-get-connection-property (7) # remote-tmpdir undef= ; > cache used: nil > > 10:26:36.639200 tramp-get-connection-property (7) # tmpdir /ssh:USER@HO= ST#22222:/tmp; > cache used: t > > 10:26:36.639335 tramp-get-connection-property (7) # tmpdir /ssh:USER@HO= ST#22222:/tmp; > cache used: t > --8<---------------cut here---------------end--------------->8--- > > The value of of "tmpdir" is completely wrong, it must be something like > "/tmp" or so. Tramp doesn't set this connection property anymore; it > takes it from tramp-methods if declared there. > > It was set like this prior commit 9ea40b3ddfb of 2022-08-15, likely your > cache did offer this old value. Could you pls apply "M-x > tramp-cleanup-all-connections" in order to clean up the connection > cache, and retry your test? > > Best regards, Michael. > --000000000000e3f05505e9e97d81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, that fixes the problem. Does that mean I somehow have= a mixup of sources from different commits (not sure how) or that the cache= is persistent and can survive long times? Note that I also run Emacs 28 fr= om time to time. Could it be that 29 reuses cache created by 28 that contai= ns no-longer-compatible values?

Paul

On Fri, 30 Sep= t 2022 at 20:39, Michael Albinus <michael.albinus@gmx.de> wrote:
Paul Pogonyshev <pogonyshev@gmail.com> writes:

Hi Paul,

> Happened again. See attached `BACKTRACE' and `TRAMP-LOG' gener= ated
> after evalling `(setf tramp-verbose 10)'.

I guess you mean setq.

> Note this suspicious entry in the log:
> 10:26:36.864700 tramp-get-remote-tmpdir (1) # File error: Directory > /ssh:USER@HOST#22222:/ssh:USER@HOST#22222:/tmp not accessible

Yes. And the debug buffer shows us

--8<---------------cut here---------------start------------->8---
> ;; Emacs: 29.0.50 Tramp: 2.6.0-pre -*- mode: outline; coding: utf-8; -= *-
> ;; Location: /usr/local/share/emacs/29.0.50/lisp/net/tramp.elc Git: ma= ster/5fd8e1cc49d2ebd59219ddf3a691949a22b601f3
> 10:26:36.638086 tramp-handle-insert-file-contents (3) # Inserting =E2= =80=98/ssh:USER@HOST#22222:/PATH=E2=80=99...
> 10:26:36.639033 tramp-get-connection-property (7) # remote-tmpdir unde= f; cache used: nil
> 10:26:36.639200 tramp-get-connection-property (7) # tmpdir /ssh:USER@H= OST#22222:/tmp; cache used: t
> 10:26:36.639335 tramp-get-connection-property (7) # tmpdir /ssh:USER@H= OST#22222:/tmp; cache used: t
--8<---------------cut here---------------end--------------->8---

The value of of "tmpdir" is completely wrong, it must be somethin= g like
"/tmp" or so. Tramp doesn't set this connection property anym= ore; it
takes it from tramp-methods if declared there.

It was set like this prior commit 9ea40b3ddfb of 2022-08-15, likely your cache did offer this old value. Could you pls apply "M-x
tramp-cleanup-all-connections" in order to clean up the connection
cache, and retry your test?

Best regards, Michael.
--000000000000e3f05505e9e97d81--