From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#425: 23.0.60; Hang in wait_reading_process_output Date: Wed, 20 Aug 2008 19:31:41 -0400 Message-ID: <87pro3fele.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 425@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 1219276081 10386 80.91.229.12 (20 Aug 2008 23:48:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2008 23:48:01 +0000 (UTC) Cc: 425@emacsbugs.donarmstrong.com To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 01:48:54 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 1KVxQ5-0006VM-RM for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 01:48:54 +0200 Original-Received: from localhost ([127.0.0.1]:46323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVxP8-00063S-LN for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Aug 2008 19:47:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVxOo-0005wj-Ls for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 19:47:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVxOl-0005vQ-5H for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 19:47:34 -0400 Original-Received: from [199.232.76.173] (port=56314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVxOk-0005v9-Jv for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 19:47:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59024) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVxOj-00074B-VV for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 19:47:30 -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 m7KNlRjM030762; Wed, 20 Aug 2008 16:47:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7KNZ4kN026472; Wed, 20 Aug 2008 16:35:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 20 Aug 2008 23:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 425 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 425-submit@emacsbugs.donarmstrong.com id=B425.121927503025984 (code B ref 425); Wed, 20 Aug 2008 23:35:03 +0000 Original-Received: (at 425) by emacsbugs.donarmstrong.com; 20 Aug 2008 23:30:30 +0000 Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7KNURVN025978 for <425@emacsbugs.donarmstrong.com>; Wed, 20 Aug 2008 16:30:29 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 7033C57E32F; Wed, 20 Aug 2008 19:31:41 -0400 (EDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 20 Aug 2008 19:47:34 -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:19582 Archived-At: > As recently reported by Joakim, Emacs occasionally hangs in > wait_reading_process_output. I can confirm that this also occurs when > process-adaptive-read-buffering is nil, as David suggested to test. > Here is a backtrace and the output after holding RET for a few seconds > when single-stepping through the code (I entered the debugger when > Emacs started to hang and could not be interrupted with Ctrl+g). At > the end of this transcript, I tried to inspect the value of > process-adaptive-read-buffering using "pv", and Emacs got un-stuck. #1 0x000ee1c6 in emacs_read (fildes=0, buf=0xbfffd780 "\b", nbyte=4096) at sysdep.c:3378 The filedes = 0 is suspicious. Are you able to reproduce this bug? If so, is filedes always zero when it happens?