From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Troels Nielsen Newsgroups: gmane.emacs.bugs Subject: bug#11273: 24.0.94; quitting gdb Date: Thu, 19 Apr 2012 20:22:56 +0200 Message-ID: <20368.22528.385744.874377@gargle.gargle.HOWL> References: <87y5ps99xp.fsf@gnu.org> <87mx68yvlm.fsf@gnu.org> <87k41bhdn6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334859839 17790 80.91.229.3 (19 Apr 2012 18:23:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 18:23:59 +0000 (UTC) Cc: sds@gnu.org, 11273@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 20:23:58 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 1SKw1O-0004YW-3c for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 20:23:58 +0200 Original-Received: from localhost ([::1]:43097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKw1N-0000eQ-Ey for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 14:23:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKw1H-0000e6-AN for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:23:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKw18-0007cH-CD for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:23:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKw18-0007c1-6A for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:23:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKw1R-0006Oq-Iv for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Troels Nielsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Apr 2012 18:24:01 +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.133485980024541 (code B ref 11273); Thu, 19 Apr 2012 18:24:01 +0000 Original-Received: (at 11273) by debbugs.gnu.org; 19 Apr 2012 18:23:20 +0000 Original-Received: from localhost ([127.0.0.1]:42206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKw0l-0006Nl-Lf for submit@debbugs.gnu.org; Thu, 19 Apr 2012 14:23:20 -0400 Original-Received: from mail-wg0-f46.google.com ([74.125.82.46]:62708) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKw0j-0006NZ-Kr for 11273@debbugs.gnu.org; Thu, 19 Apr 2012 14:23:18 -0400 Original-Received: by wgbdq11 with SMTP id dq11so9273632wgb.15 for <11273@debbugs.gnu.org>; Thu, 19 Apr 2012 11:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:content-type:content-transfer-encoding:message-id:date :from:to:cc:subject:in-reply-to:references:x-mailer; bh=g1VU3MmkUj972EAoG0fs6b0gI5Z2YoxddaYOJ/AKa1o=; b=ORnQLQ5hqpgk8c8wfv3ba9bbYZ25boFRH6OhUVwXoJnYQsTswrkKT9Rnc9f/0Bw235 e4DV1Y6XJLMdERkXLrKpw4u37l1RtlRtOjRmZ/iXd5h5XkLQ/4AvqD/2kGqcLkAUc7d6 EkeoZzlRNdDzfc//lC5W2mJeH2mHxrNyhfmwOa2oqBFBbGQZBVtB2/3Ws+xrSXNcY9qK Upm9SOyIjn0jcFjy+Gyp/z0HVYJG2UekTwmIivjCNP78GPrRK+0oTYYGmXJ/zjlhy5y0 sLAmCPftl0U75iX5gMky2g8eQ7MrX02TU84fqtABBNr0E6ONeCh8ZCH7bVvmzia++NUv gWLg== Original-Received: by 10.180.96.228 with SMTP id dv4mr647807wib.14.1334859771700; Thu, 19 Apr 2012 11:22:51 -0700 (PDT) Original-Received: from polaris.localdomain (4709ds3-oebr.0.fullrate.dk. [90.184.164.5]) by mx.google.com with ESMTPS id u9sm43905429wix.0.2012.04.19.11.22.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Apr 2012 11:22:50 -0700 (PDT) Original-Received: by polaris.localdomain (Postfix, from userid 1000) id 00774242275; Thu, 19 Apr 2012 20:22:56 +0200 (CEST) In-Reply-To: <87k41bhdn6.fsf@gnu.org> X-Mailer: VM 8.2.0b under 24.1.50.11 (x86_64-unknown-linux-gnu) 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:59279 Archived-At: Chong Yidong writes: > 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. Hi Chong I've looked into the issue more deeply and I think my suggested patch is most certainly wrong. The PTY somehow continously will tell select it has data available, but when emacs_read tries to read it nothing but an error and errno=IO is returned. I will look into a different way of solving #10933, but I think for now my changes should be removed. Regards Troels