[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

[MD:6591] C-g kills emacs



堀口です. Meadow3.0-dev で以下のようにすると突然死します.

 原因はよくわかっていませんが, Vquit_flag が絡むタイミング系のネタ
のような気がします.

meadow -q で起動して, 以下 *scratch* で,

以下の関数を定義
(defun hogefilter (process str)
  (with-local-quit
    (read-char-exclusive nil t)
    (clear-this-command-keys)))

以下を実行
(progn
  (setq proc (start-process "bash" (current-buffer) "bash" "-i"))
  (set-process-filter proc 'hogefilter))

C-g

 ほぼ100%の確率で死にます. デバッガ(VS7)が捕まえたときには
mw32_start のスタックがきれいに殺されているのでわけがわかりません.
hogefilter を edebug-defn してステップ実行すると大丈夫です.

# 元ネタは Mew の PGP パスフレーズの入力に対して C-g を何回かやる
# と落ちるというものです.

-- 
ほりぐちきょうたろう