From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56528: 29.0.50; Emacs lucid segfaults when X dies Date: Thu, 14 Jul 2022 08:39:54 +0300 Message-ID: <835yk0uuad.fsf@gnu.org> References: <877d4h1vl9.fsf@astatine.mail-host-address-is-not-set> <87ilo1uw9d.fsf@yahoo.com> <87sfn5l1c9.fsf@gmail.com> <87cze9urzv.fsf@yahoo.com> <877d4hi2lx.fsf@gmail.com> <831qupw3us.fsf@gnu.org> <87r12pgn80.fsf@gmail.com> <83zghdunq1.fsf@gnu.org> <87mtddgkp9.fsf@gmail.com> <83v8s1uecy.fsf@gnu.org> <87y1wwsdvy.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33781"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56528@debbugs.gnu.org, visuweshm@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 07:41:42 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBrba-0008dj-M3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 07:41:42 +0200 Original-Received: from localhost ([::1]:59574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBrbX-0003cL-3d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 01:41:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBraw-0003b6-I7 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 01:41:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBraw-0005OR-9G for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 01:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBraw-0004bk-6J for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 01:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 05:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56528 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56528-submit@debbugs.gnu.org id=B56528.165777720817624 (code B ref 56528); Thu, 14 Jul 2022 05:41:02 +0000 Original-Received: (at 56528) by debbugs.gnu.org; 14 Jul 2022 05:40:08 +0000 Original-Received: from localhost ([127.0.0.1]:48409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBra4-0004aA-Ia for submit@debbugs.gnu.org; Thu, 14 Jul 2022 01:40:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBra3-0004Zw-3q for 56528@debbugs.gnu.org; Thu, 14 Jul 2022 01:40:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBrZx-00053a-8Y; Thu, 14 Jul 2022 01:40:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lvHMO9KeRpJ6j4tmoea0g763QNej5x2qCAbChMf2qlo=; b=jGWeXt7rcolx w3EkSTRIJewm11sRGlVd6+HU+GjZDws4IuXFaJAd2di8xuQH9cAr133VmvkIV3bDeylJJP+Iat6tU 8Y0jY5onBwWfi7q4fUBOUgc8wDwFNqRnIZt1rkE5xHTlF4BbbIlBgp9Tx0lOZ5WSO6n7JaoSFWDy4 gKkD+dtnOdXRXEx4Hz2rA1LnLTN06VT0L9dbstkofa7wQrWKyH0pbwMdPQLZCJ4BB+12F71GFAXOO DBpWs+BLdfEndI9Q8XkOC4mDpnbUvmTVG33siMlfourcTkT/TB8+Bk1EaGeCtCY8q1F3lQrtVcpd2 0dVyhBhpd2Sw1gTv04IzMQ==; Original-Received: from [87.69.77.57] (port=4137 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBrZw-0003kD-NH; Thu, 14 Jul 2022 01:40:01 -0400 In-Reply-To: <87y1wwsdvy.fsf@yahoo.com> (message from Po Lu on Thu, 14 Jul 2022 09:04:49 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236950 Archived-At: > From: Po Lu > Cc: Visuwesh , 56528@debbugs.gnu.org > Date: Thu, 14 Jul 2022 09:04:49 +0800 > > Not exactly. When the connection to the X server is lost, any attempt > to communicate with it will result in the IO error handler being called. > > We install an error handler that performs the following: > > - Bind `inhibit-redisplay' to t. > - Delete each frame on the display that went down. > - Free the display data and delete the terminal. > - Kill Emacs if no terminals are left. > - Throw an error to get Emacs out of the error handler. > > Unfortunately, that doesn't always work reliably, such as here. And > we're trying to find out why. The reason seems to be that the selected-frame wasn't changed to be a valid usable frame. But I wonder how the above is different from simply crashing.