From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9767: 24.0.90; gdb initialization on Cygwin Date: Wed, 19 Oct 2011 22:26:32 +0200 Message-ID: <83ipnku3rb.fsf@gnu.org> References: <4E9B0033.2070506@cornell.edu> <4E9B63F0.5040409@cornell.edu> <4E9F2C49.4060307@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1319056030 27510 80.91.229.12 (19 Oct 2011 20:27:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 20:27:10 +0000 (UTC) Cc: 9767@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 22:27:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGcjA-00081L-3T for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 22:27:04 +0200 Original-Received: from localhost ([::1]:37806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGcj9-000569-ET for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 16:27:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGcj6-00055k-BE for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 16:27:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGcj4-0007XL-BM for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 16:27:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGcj4-0007XD-5r for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 16:26:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGck5-0003GH-VM for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 16:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2011 20:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9767-submit@debbugs.gnu.org id=B9767.131905606612516 (code B ref 9767); Wed, 19 Oct 2011 20:28:01 +0000 Original-Received: (at 9767) by debbugs.gnu.org; 19 Oct 2011 20:27:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGcjp-0003Fo-O5 for submit@debbugs.gnu.org; Wed, 19 Oct 2011 16:27:45 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGcjn-0003FZ-CP for 9767@debbugs.gnu.org; Wed, 19 Oct 2011 16:27:44 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LTB00E00Y1JDD00@a-mtaout20.012.net.il> for 9767@debbugs.gnu.org; Wed, 19 Oct 2011 22:26:32 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTB00DQSY46XQ80@a-mtaout20.012.net.il>; Wed, 19 Oct 2011 22:26:32 +0200 (IST) In-reply-to: <4E9F2C49.4060307@cornell.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 Oct 2011 16:28:01 -0400 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:52874 Archived-At: > Date: Wed, 19 Oct 2011 16:00:09 -0400 > From: Ken Brown > CC: 9767@debbugs.gnu.org > > After M-x gdb finishes its initialization, emacs goes into its command > loop. read_char calls sit_for with a timeout of 30 seconds, and sit_for > calls wait_reading_process_output, which calls select. The call to > select fails immediately with EINTR. I don't understand the command > loop well enough to know what's interrupting the select call. EINTR means that some signal arrived (assuming that Cygwin's `select' is Posix-ish enough). The question is, which signal? Does Cygwin provide any tools to see which signals were delivered to a program? Also, the fact that `select' is interrupted doesn't necessarily mean that the input arrival is ignored, does it? Doesn't wait_reading_process_output loop around and examines the input descriptors again? If not, why not? IOW, why should EINTR become a failure? > The code in keyboard.c is full of alarms and timers, presumably related > to polling for keyboard input. Could this polling be doing something > that interrupts the select call under some circumstances? Atimers (those which are responsible for the "busy cursor" display) could deliver SIGALRM, yes. But again, I don't see why this should fail the loop that waits for input, and then only in this particular case. Something else is at work here.