emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabio Natali <me@fabionatali.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Issue with org-persist and Tramp
Date: Wed, 08 Nov 2023 17:40:57 +0000	[thread overview]
Message-ID: <87a5roi1na.fsf@fabionatali.com> (raw)
In-Reply-To: <87msvofvgx.fsf@localhost>

On 2023-11-08, 09:25 +0000, Ihor Radchenko <yantar92@posteo.net> wrote:
> May you please share the backtrace?
> In particular, may you (1) M-x toggle-debug-on-quit (2) try to close the
> problematic file; observe Emacs "freeze" (3) C-g and post the obtained
> backtrace.

Hi Ihor,

Thanks for your email. Sure, glad to share the backtrace with you.

This is how the issue can be reproduced on my system.

- Enable debug, `toggle-debug-on-quit'
- Open a remote file, `(find-file "/ssh:<remote-machine>:~/test.org")'
- Bring the remote machine offline
- Try to close the remote file, `kill-buffer'
- The system hangs for a while as it tries to reach the remote machine
- Quitting (`keyboard-quit') produces the following backtrace

#+begin_export ascii
Debugger entered--Lisp error: (quit "")
  signal(quit (""))
  tramp-error(nil quit "")
  tramp-signal-hook-function(quit (""))
  signal(quit (""))
  tramp-maybe-open-connection((tramp-file-name "ssh" nil nil "<remote-machine>" nil "/home/user/test.org" nil))
  tramp-send-command((tramp-file-name "ssh" nil nil "<remote-machine>" nil "/home/user/test.org" nil) "echo \\\"`getconf PATH 2>/dev/null`\\\" 2>/dev/null; e...")
  tramp-send-command-and-check((tramp-file-name "ssh" nil nil "<remote-machine>" nil "/home/user/test.org" nil) "echo \\\"`getconf PATH 2>/dev/null`\\\"")
  tramp-send-command-and-read((tramp-file-name "ssh" nil nil "<remote-machine>" nil "/home/user/test.org" nil) "echo \\\"`getconf PATH 2>/dev/null`\\\"" noerror)
  tramp-get-remote-path((tramp-file-name "ssh" nil nil "<remote-machine>" nil "/home/user/test.org" nil))
  tramp-get-remote-stat((tramp-file-name "ssh" nil nil "<remote-machine>" nil "/home/user/test.org" nil))
  tramp-sh-handle-file-attributes("/ssh:<remote-machine>:/home/user/test.org")
  tramp-sh-file-name-handler(file-attributes "/ssh:<remote-machine>:/home/user/test.org")
  apply(tramp-sh-file-name-handler file-attributes "/ssh:<remote-machine>:/home/user/test.org")
  tramp-file-name-handler(file-attributes "/ssh:<remote-machine>:/home/user/test.org")
  org-persist--normalize-associated(#<buffer test.org>)
  org-persist-write-all(#<buffer test.org>)
  org-persist-write-all-buffer()
  kill-buffer("test.org")
  funcall-interactively(kill-buffer "test.org")
  command-execute(kill-buffer)
#+end_export

Glad to share other info if helpful.

Thanks, cheers, Fabio.


  reply	other threads:[~2023-11-08 17:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 13:58 Issue with org-persist and Tramp Fabio Natali
2023-11-07 21:08 ` Antonio Carlos Padoan Junior
2023-11-08  8:56   ` Fabio Natali
2023-11-08  9:25 ` Ihor Radchenko
2023-11-08 17:40   ` Fabio Natali [this message]
2023-11-08 18:01     ` Ihor Radchenko
2023-11-08 21:30       ` Fabio Natali
2023-11-09 12:17         ` Ihor Radchenko
2023-11-09 13:11           ` Fabio Natali
2023-11-10  9:26             ` Ihor Radchenko
2023-11-10 11:13               ` Fabio Natali
2023-11-10 11:26                 ` Fabio Natali
2023-11-11  9:48                   ` Fabio Natali
2023-11-11 11:06                     ` Ihor Radchenko
2023-11-11 19:38                       ` Fabio Natali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5roi1na.fsf@fabionatali.com \
    --to=me@fabionatali.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).