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#11273: 24.0.94; quitting gdb Date: Fri, 20 Apr 2012 00:47:41 +0800 Message-ID: <87k41bhdn6.fsf@gnu.org> References: <87y5ps99xp.fsf@gnu.org> <87mx68yvlm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334854137 1620 80.91.229.3 (19 Apr 2012 16:48:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 16:48:57 +0000 (UTC) Cc: sds@gnu.org, 11273@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 18:48:55 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKuXO-0000GW-7H for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 18:48:54 +0200 Original-Received: from localhost ([::1]:37600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuXN-0000vc-FV for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 12:48:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuXI-0000vT-93 for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:48:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKuXC-0006bq-UO for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:48:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuXC-0006bk-R2 for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:48:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKuXW-00048j-7z for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Apr 2012 16:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11273-submit@debbugs.gnu.org id=B11273.133485410015836 (code B ref 11273); Thu, 19 Apr 2012 16:49:02 +0000 Original-Received: (at 11273) by debbugs.gnu.org; 19 Apr 2012 16:48:20 +0000 Original-Received: from localhost ([127.0.0.1]:42072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKuWm-00047I-Hl for submit@debbugs.gnu.org; Thu, 19 Apr 2012 12:48:20 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:59436 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKuWh-000475-SE for 11273@debbugs.gnu.org; Thu, 19 Apr 2012 12:48:16 -0400 Original-Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:35328 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SKuWL-0003sK-UZ; Thu, 19 Apr 2012 12:47:50 -0400 In-Reply-To: (Glenn Morris's message of "Thu, 19 Apr 2012 12:17:22 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59270 Archived-At: Glenn Morris writes: > Chong Yidong wrote: > >> In the meantime, I installed a workaround to explicitly call >> delete-process on the pty in the sentinel of the main gdb process. > > Maybe you fixed bug#4437 then? Aha, looks like the situation is this: In Bug#4437, Nick Roberts proposed a patch to process.c to avoid sending a SIGCHLD to itself when it receives an EIO errno. However, he noted that this means that status_notify isn't called from wait_reading_process_output because this call is conditioned on select which returns a positive value (presumably because the pty's file descriptor hasn't been cleared). which is the problem I noticed. Nick didn't commit the patch at the time. In Bug#10933, Troels Nielsen independently proposed the same patch, which was committed by Stefan on 2012-03-23. The question is what to do about the problem. I didn't test this, but it may be that the patch causes ALL process sentinels to be blocked while the gdb process is running, which is kinda unacceptable.