当流氓试图通过ssh保存文件时,Emacs 26.1挂起

时间:2018-08-20 08:33:27

标签: emacs tramp emacs26

我正在使用通过MacOS上的自制软件安装的Emacs 26.1版本。

在我使用流浪汉通过ssh编辑文件时,它经常挂起(例如,每20分钟一次)。 当我按Ctrl-x-s保存文件(或触发自动备份)时,tramp开始保存文件。但是,它挂了一条消息

Waiting for prompts from remote shell… \

如果我打Ctrl-g,似乎没有任何效果。我再次按下Ctrl-g,emacs进入背景并显示一条消息

zsh: suspended emacs

我尝试使用fg命令将emacs带回到最前面:

$ fg
[1]  + continued  emacs
Emacs is resuming after an emergency escape.
Auto-save? (y or n) y
Auto-save done
Abort (and dump core)? (y or n) n
Continuing...

并且emacs继续挂空白屏幕。因此,我唯一可以采取的方法是对第二个问题回答“ y”,并中止Emacs进程。

我试图检查流浪汉的调试缓冲区,但由于行数过多且调试缓冲区无法滚动,并且emacs除Ctrl-g之外不接受任何击键,因此无法读取。

我的emacs.el中有以下几行

(require 'tramp)
(setq tramp-default-method "ssh")
(setq tramp-verbose 5)
(add-to-list 'backup-directory-alist
   (cons tramp-file-name-regexp nil))

Emacs在升级之前运行良好。 (我不记得以前的版本了...)

您有什么建议或提示吗? 预先感谢。

编辑:

这里的回溯显示了emacs进程何时终止(通过对上述第二个问题回答“ y”)

[1]  + continued  emacs
Emacs is resuming after an emergency escape.
Auto-save? (y or n) y
Auto-save done
Abort (and dump core)? (y or n) y
Fatal error 6: Abort trapMemory^H^H^H^N^P
Backtrace:
0   emacs                               0x0000000100096b2d emacs_backtrace + 157
1   emacs                               0x000000010007e9cd terminate_due_to_signal + 110
2   emacs                               0x00000001000955ba init_baud_rate + 0
3   emacs                               0x0000000100087a98 kbd_buffer_nr_stored + 0
4   emacs                               0x00000001000965fb deliver_process_signal + 61
5   libsystem_platform.dylib            0x00007fffa595eb3a _sigtramp + 26
6   ???                                 0xb0e07c5c8dafe0b2 0x0 + 12745323682414452914
7   emacs                               0x000000010013d491 really_call_select + 88
8   emacs                               0x000000010013d42f thread_select + 58
9   emacs                               0x0000000100124702 wait_reading_process_output + 3244
10  emacs                               0x00000001001239f3 Faccept_process_output + 447
11  emacs                               0x00000001000eaa8c funcall_subr + 299
12  emacs                               0x00000001000ea16f Ffuncall + 653
13  emacs                               0x000000010011c258 exec_byte_code + 1563
14  emacs                               0x00000001000ea114 Ffuncall + 562
15  emacs                               0x000000010011c258 exec_byte_code + 1563
16  emacs                               0x00000001000ea114 Ffuncall + 562
17  emacs                               0x000000010011c258 exec_byte_code + 1563
18  emacs                               0x00000001000ea114 Ffuncall + 562
19  emacs                               0x000000010011c258 exec_byte_code + 1563
20  emacs                               0x00000001000ea114 Ffuncall + 562
21  emacs                               0x000000010011c258 exec_byte_code + 1563
22  emacs                               0x00000001000ea114 Ffuncall + 562
23  emacs                               0x00000001000e9dfd Fapply + 651
24  emacs                               0x00000001000ea16f Ffuncall + 653
25  emacs                               0x000000010011c258 exec_byte_code + 1563
26  emacs                               0x00000001000ea114 Ffuncall + 562
27  emacs                               0x00000001000e9dfd Fapply + 651
28  emacs                               0x00000001000ea16f Ffuncall + 653
29  emacs                               0x000000010011c258 exec_byte_code + 1563
30  emacs                               0x00000001000ea114 Ffuncall + 562
31  emacs                               0x00000001000e9dfd Fapply + 651
32  emacs                               0x00000001000ea16f Ffuncall + 653
33  emacs                               0x000000010011c258 exec_byte_code + 1563
34  emacs                               0x00000001000ea114 Ffuncall + 562
35  emacs                               0x00000001000e9dfd Fapply + 651
36  emacs                               0x00000001000ea16f Ffuncall + 653
37  emacs                               0x000000010011c258 exec_byte_code + 1563
38  emacs                               0x00000001000ea114 Ffuncall + 562
39  emacs                               0x00000001000e9dfd Fapply + 651
40  emacs                               0x00000001000ea16f Ffuncall + 653

0 个答案:

没有答案
相关问题