From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#84: Acknowledgement (23.0.60; Occasional hangs in flyspell-mode and ispell-word) Date: Tue, 08 Jul 2008 20:24:26 +0200 Message-ID: References: <20080327052040.002826434E0@mt-computer.local> Reply-To: Markus Triska , 84@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215542875 18671 80.91.229.12 (8 Jul 2008 18:47:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 18:47:55 +0000 (UTC) To: 84@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 08 20:48:40 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KGIEx-0005Gq-J9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 20:48:39 +0200 Original-Received: from localhost ([127.0.0.1]:41567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGIE5-0001yV-Vr for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 14:47:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGIDg-0001cu-V7 for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 14:47:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGIDd-0001Yg-LZ for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 14:47:20 -0400 Original-Received: from [199.232.76.173] (port=57088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGIDd-0001YS-Bl for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 14:47:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38684) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KGIDc-0001w6-Ox for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 14:47:17 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m68IlEHj028605; Tue, 8 Jul 2008 11:47:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m68IU4PY024051; Tue, 8 Jul 2008 11:30:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 08 Jul 2008 18:30:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 84 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 84-submit@emacsbugs.donarmstrong.com id=B84.121554148122741 (code B ref 84); Tue, 08 Jul 2008 18:30:04 +0000 Original-Received: (at 84) by emacsbugs.donarmstrong.com; 8 Jul 2008 18:24:41 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m68IObXw022735 for <84@emacsbugs.donarmstrong.com>; Tue, 8 Jul 2008 11:24:38 -0700 Original-Received: (qmail invoked by alias); 08 Jul 2008 18:24:31 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp060) with SMTP; 08 Jul 2008 20:24:31 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+WTwtKivmWsxc1abQtFleZmaUlAt/5G2YEBHCLZ8 t0J+Mrz8ncxOwd Original-Received: by mt-computer.local (Postfix, from userid 502) id 5ACEB94272B; Tue, 8 Jul 2008 20:24:27 +0200 (CEST) In-Reply-To: (Markus Triska's message of "Tue, 08 Jul 2008 15:25:20 +0200") X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 08 Jul 2008 14:47:20 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18676 Archived-At: > while flyspell-word waits for output; one can interrupt the wait with > C-g I've now seen that this wasn't the case in the backtrace, i.e., I specifically could NOT interrupt accept-process-output; also, had I been able to interrupt it, a subsequent process-send-string to the dead process from flyspell-word would have triggered an error and thus removed flyspell-post-command-hook from post-command-hook. To sum up, I think it remains valid that accept-process-output should throw an error (instead of waiting, as it currently does) if the process it is waiting for is dead, and an independent issue is that wait_reading_process_output can sometimes not be interrupted manually and can make Emacs hang indefinitely. So far, the hangs seem to occur when I have previously interrupted wait_reading_process_output when it was waiting for output from a dead process. For example, I'm using the following to enable flyspell mode when it was disabled: (defun reactivate-flyspell () (unless (memq 'flyspell-post-command-hook post-command-hook) (flyspell-mode 1))) (setq my-idle (run-with-idle-timer 0.1 t 'reactivate-flyspell)) then I continuously kill aspell with: $ while true; do killall -s 9 aspell; sleep 0.1; done Then I go into a buffer with a lot of text and move the cursor over a few words (to flyspell-them) until Emacs hangs due to accept-process-output from a dead aspell process. I can always interrupt this with C-g. I do this a few times, then stop the continuous killing of aspell, and then start Gnus a few times. This almost always makes Emacs hang completely; I'm now trying to make this test case shorter.