From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Hang in Emacs 21.3.50 Date: 04 Dec 2002 21:57:15 +0000 Sender: emacs-devel-admin@gnu.org Message-ID: References: <20021204110122.84CA13FE33@server2.fastmail.fm> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039118702 5376 80.91.224.249 (5 Dec 2002 20:05:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2002 20:05:02 +0000 (UTC) Cc: "Richard Stallman" , "Emacs Bug" , "Emacs Devel" Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18K2F1-0001OI-00 for ; Thu, 05 Dec 2002 21:04:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18K2NJ-0006Ek-00 for ; Thu, 05 Dec 2002 21:13:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18K26Q-0004l0-00; Thu, 05 Dec 2002 14:56:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18K263-0004OK-00 for emacs-devel@gnu.org; Thu, 05 Dec 2002 14:55:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18K25X-0003tB-00 for emacs-devel@gnu.org; Thu, 05 Dec 2002 14:55:42 -0500 Original-Received: from tungsten.btinternet.com ([194.73.73.81]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18K25X-0003qt-00; Thu, 05 Dec 2002 14:55:11 -0500 Original-Received: from host62-7-86-73.in-addr.btopenworld.com ([62.7.86.73] helo=nyaumo.btinternet.com) by tungsten.btinternet.com with esmtp (Exim 3.22 #16) id 18K25U-0006wg-00; Thu, 05 Dec 2002 19:55:08 +0000 Original-Received: from nyaumo.btinternet.com (nyaumo.btinternet.com [127.0.0.1]) by nyaumo.btinternet.com (Postfix) with ESMTP id 800714AAB6; Wed, 4 Dec 2002 21:57:16 +0000 (GMT) Original-To: "Dhruva Krishnamurthy" In-Reply-To: <20021204110122.84CA13FE33@server2.fastmail.fm> Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9899 "Dhruva Krishnamurthy" writes: > I did some further debugging using MSVC 6.0 debugger. I would like to > report another scenerio which causes a similar HANG (infinite loop) in > w32fns.c:w32_msg_pump() > > 1. I use Aspell (latest : 05.3-2 I guess) > 2. When I do "M-x ispell-buffer", it goes to w32fns.c:w32_msg_pump() and > gets into an infinite loop (GetMessage()) It is normal for the message pump thread to spend most of its time in GetMessage(), and the loop is intentional. The lisp/redisplay thread is more interesting in cases where Emacs appears to be hung. > PS: > Emacs is multi threaded. Am I right or am I missing something. On MS Windows, there is the main Lisp thread, a message pump thread (which simulates asynchronous signals and allow C-g to interrupt the Lisp thread even when it is performing a blocking operation), and a thread for each subprocess to handle I/O from that subprocess. The latter thread normally exits when the subprocess exits, so the message you see about a thread exiting is probably the thread handling I/O for aspell, as you guessed. The question, I think, is why does Emacs appear to hang when aspell exits unexpectedly.