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: Sat, 22 Oct 2011 00:15:45 +0200 Message-ID: <83k47yq9da.fsf@gnu.org> References: <4E9B0033.2070506@cornell.edu> <4E9B63F0.5040409@cornell.edu> <4E9F2C49.4060307@cornell.edu> <83ipnku3rb.fsf@gnu.org> <4E9F365A.9060207@cornell.edu> <83fwiotzbq.fsf@gnu.org> <4E9F836A.5070505@cornell.edu> <4EA1DA78.5060404@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1319235420 26230 80.91.229.12 (21 Oct 2011 22:17:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 22:17:00 +0000 (UTC) Cc: schwab@linux-m68k.org, 9767@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 00:16:53 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 1RHNOW-0003Ml-IZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 00:16:52 +0200 Original-Received: from localhost ([::1]:54933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHNOV-0006KA-OY for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2011 18:16:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHNOS-0006Ij-CC for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 18:16:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHNOP-0001s2-Vy for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 18:16:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHNOP-0001rr-Ql for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 18:16:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHNPd-00025q-L2 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 18:18:01 -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: Fri, 21 Oct 2011 22:18: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.13192354277977 (code B ref 9767); Fri, 21 Oct 2011 22:18:01 +0000 Original-Received: (at 9767) by debbugs.gnu.org; 21 Oct 2011 22:17:07 +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 1RHNOl-00024c-LX for submit@debbugs.gnu.org; Fri, 21 Oct 2011 18:17:07 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHNOj-000244-Fx for 9767@debbugs.gnu.org; Fri, 21 Oct 2011 18:17:06 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LTF00A00S9XJJ00@a-mtaout22.012.net.il> for 9767@debbugs.gnu.org; Sat, 22 Oct 2011 00:15:42 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTF00AFWSI54AC0@a-mtaout22.012.net.il>; Sat, 22 Oct 2011 00:15:42 +0200 (IST) In-reply-to: <4EA1DA78.5060404@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: Fri, 21 Oct 2011 18:18: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:53005 Archived-At: > Date: Fri, 21 Oct 2011 16:47:52 -0400 > From: Ken Brown > CC: Andreas Schwab , 9767@debbugs.gnu.org > > OK, I figured out what's happening, and it is related to SIGALRM after > all. In line 4406 of process.c, wait_reading_process_output reduces the > timeout for the select call (under certain circumstances) in an attempt > to prevent select from being interrupted by SIGALRM. This seems to me > to be inherently unreliable, and, in particular, it consistently fails > on Cygwin. In other words, the SIGALRM is delivered before select times > out, causing select to get interrupted. So wait_reading_process_output > does indeed loop, and select fails every time (except when a key is > pressed). Why does reducing the timeout works on, say, GNU/Linux, but not on Cygwin? What is different? Clock granularity, perhaps?