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 15:25:20 +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 1215524869 13786 80.91.229.12 (8 Jul 2008 13:47:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 13:47:49 +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 15:48:35 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 1KGDYI-0004oI-7N for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 15:48:18 +0200 Original-Received: from localhost ([127.0.0.1]:39293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGDXR-0004gI-2G for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 09:47:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGDXL-0004g0-9O for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 09:47:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGDXJ-0004fc-L5 for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 09:47:18 -0400 Original-Received: from [199.232.76.173] (port=51358 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGDXJ-0004fZ-Fu for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 09:47:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34495) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KGDXI-00039e-Um for bug-gnu-emacs@gnu.org; Tue, 08 Jul 2008 09: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 m68DlEuc019255; Tue, 8 Jul 2008 06:47:15 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m68DZ3E2015785; Tue, 8 Jul 2008 06:35:03 -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 13:35:03 +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.121552353814486 (code B ref 84); Tue, 08 Jul 2008 13:35:03 +0000 Original-Received: (at 84) by emacsbugs.donarmstrong.com; 8 Jul 2008 13:25:38 +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 m68DPUYf014480 for <84@emacsbugs.donarmstrong.com>; Tue, 8 Jul 2008 06:25:32 -0700 Original-Received: (qmail invoked by alias); 08 Jul 2008 13:25:24 -0000 Original-Received: from pnsgw1-client235.demo.tuwien.ac.at (EHLO pnsgw1-client235.demo.tuwien.ac.at) [128.131.200.235] by mail.gmx.net (mp055) with SMTP; 08 Jul 2008 15:25:24 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+60EU0c5S6xI8t/mQ7WbCkhNqec7WHPuGF0rLGtM FituJV1PrwL6IY Original-Received: by pnsgw1-client235.demo.tuwien.ac.at (Postfix, from userid 502) id 4A51B942124; Tue, 8 Jul 2008 15:25:20 +0200 (CEST) In-Reply-To: (Emacs bug Tracking System's message of "Thu, 27 Mar 2008 06:55:08 -0700") X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 08 Jul 2008 09:47:18 -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:18674 Archived-At: Here's a test case which I think illustrates part of the problem: Let hang.el contain only the form: (with-temp-buffer (insert "test") (let ((n 0)) (while t (setq n (1+ n)) (when (= (mod n 1000) 0) (message "%s" (emacs-uptime))) (condition-case err (ispell-word nil t) (error (message "error: %s" err)))))) and do: $ emacs -Q --script hang.el This continuously spell-checks the word "test". In another terminal, kill the aspell process: $ killall -s 9 aspell Different things can then happen to the Emacs process, depending on its exact state when you kill aspell: a) error: (error SIGPIPE raised on process ispell; closed it) b) error: (error Process ispell not running) c) Emacs hangs, waiting for more output from aspell In cases (a) and (b), Emacs continues as normal after it has automatically restarted aspell. Case (c) seems to be part of the original problem, which I think can happen as follows: Aspell crashes while flyspell-word waits for output; one can interrupt the wait with C-g, but because no error was risen, flyspell-post-command-hook is not removed from post-command-hook, and is still triggered after each command (including pressing C-g itself), thus resulting in new waits. Thus, instead of waiting for more output from a dead process, doesn't an error seem preferable?