From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#16676: 24.3.50; Repeated but random hang Date: Fri, 07 Feb 2014 12:27:10 +0400 Message-ID: <52F498DE.6070008@yandex.ru> References: <8738jv68vr.fsf@building.gnus.org> <83txcbxtg7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391761696 11663 80.91.229.3 (7 Feb 2014 08:28:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 08:28:16 +0000 (UTC) Cc: 16676@debbugs.gnu.org To: Eli Zaretskii , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 07 09:28:23 2014 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 1WBgnM-0006Rw-Rg for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 09:28:20 +0100 Original-Received: from localhost ([::1]:40216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBgnM-0003MZ-CJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 03:28:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBgnB-0003Ca-Qp for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 03:28:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBgn4-0001FE-Mb for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 03:28:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBgn4-0001F6-JT for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 03:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WBgn3-0008Ly-Ss for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 03:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Feb 2014 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16676 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16676-submit@debbugs.gnu.org id=B16676.139176163932059 (code B ref 16676); Fri, 07 Feb 2014 08:28:01 +0000 Original-Received: (at 16676) by debbugs.gnu.org; 7 Feb 2014 08:27:19 +0000 Original-Received: from localhost ([127.0.0.1]:54256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBgmM-0008L0-Oo for submit@debbugs.gnu.org; Fri, 07 Feb 2014 03:27:19 -0500 Original-Received: from forward10l.mail.yandex.net ([84.201.143.143]:47924) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBgmJ-0008Kq-A9 for 16676@debbugs.gnu.org; Fri, 07 Feb 2014 03:27:16 -0500 Original-Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward10l.mail.yandex.net (Yandex) with ESMTP id 31D15BA0DEF; Fri, 7 Feb 2014 12:27:13 +0400 (MSK) Original-Received: from smtp1o.mail.yandex.net (localhost [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id BE57CDE0EE1; Fri, 7 Feb 2014 12:27:12 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Sj8TxGC7AK-RCOiZMRE; Fri, 7 Feb 2014 12:27:12 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 65d5d10e-4d34-4aa7-954b-0d5c17a0a6a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1391761632; bh=4vInC6mowm4+HKRnVAYu3hiBPemfHscB7Qkk/Gc+TpE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=gXjI2rXM2JaZsF18TX0NCWhJ2U4Tg7vX8xRPd0AK7UjqVJPpAHvlivZ5qWCwD/BXK P7jsI3hos734E2SsmdtYow9SQbWeNOCYXlvzQVSZDfAQegm/CngbIHrjEchNyVvLSz /X6urfP8WbSVO6LRxBTQf6yk9CuW1VEg+nsM6u+c= Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <83txcbxtg7.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:84807 Archived-At: On 02/07/2014 11:39 AM, Eli Zaretskii wrote: > My reading of this is: Emacs was at the end of a redisplay cycle, when > a call to an X function signaled an error because "Connection lost to > X server `:0'". Then Emacs tried to delete the frame on that display, > which again involves calls to X. Yes, and I'm just curious why fatal X errors are handled in the same way as non-fatal (by x_connection_closed). IIUC if X connection is broken at the socket level, X protocol command may result in undefined behavior. Manual says that XIfEvent flushes an event queue and waits for an event matching the predicate; I don't know how the socket connection was broken exactly, but it was "broken enough" to wait forever. > Do you know why the connection was lost in the first place? Shouldn't we try to check errno x_io_error_quitter? Socket-related calls should set it in case of error. Dmitry