From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#9767: 24.0.90; gdb initialization on Cygwin Date: Sat, 22 Oct 2011 05:51:09 -0400 Message-ID: <4EA2920D.9090809@cornell.edu> 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> <83k47yq9da.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319277118 12895 80.91.229.12 (22 Oct 2011 09:51:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2011 09:51:58 +0000 (UTC) Cc: schwab@linux-m68k.org, 9767@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 11:51:54 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 1RHYF4-0006jZ-RR for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 11:51:50 +0200 Original-Received: from localhost ([::1]:55003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHYF4-0007fQ-5h for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 05:51:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHYEy-0007eo-GS for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 05:51:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHYEx-0002fo-FW for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 05:51:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHYEx-0002fk-Dy for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 05:51:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHYGE-0000tP-8N for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 05:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 09:53:02 +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.13192771553391 (code B ref 9767); Sat, 22 Oct 2011 09:53:02 +0000 Original-Received: (at 9767) by debbugs.gnu.org; 22 Oct 2011 09:52:35 +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 1RHYFm-0000sd-Dd for submit@debbugs.gnu.org; Sat, 22 Oct 2011 05:52:34 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141] helo=authusersmtp.mail.cornell.edu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHYFj-0000sT-WA for 9767@debbugs.gnu.org; Sat, 22 Oct 2011 05:52:33 -0400 Original-Received: from [192.168.1.3] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id p9M9pBFl018749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 22 Oct 2011 05:51:12 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <83k47yq9da.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 Oct 2011 05:53:02 -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:53018 Archived-At: On 10/21/2011 6:15 PM, Eli Zaretskii wrote: >> 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? Sorry, I'm wrong again. As Stefan pointed out, it's harmless that select gets interrupted by SIGALRM. That can't explain the gdb problem, which still isn't solved. Ken