On 2023-11-08, 09:25 +0000, Ihor Radchenko <yanta...@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 
  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`\\\"" 
  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))
  apply(tramp-sh-file-name-handler file-attributes 
  org-persist--normalize-associated(#<buffer test.org>)
  org-persist-write-all(#<buffer test.org>)
  funcall-interactively(kill-buffer "test.org")

Glad to share other info if helpful.

Thanks, cheers, Fabio.

Reply via email to