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: Wed, 13 Jul 2022 16:49:26 +0300 Message-ID: <83zghdunq1.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6501"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 56528@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 15:51:14 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 1oBclm-0001WM-0f for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 15:51:14 +0200 Original-Received: from localhost ([::1]:52824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBclk-0004sy-Fm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 09:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBcla-0004s7-Qb for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 09:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBcla-0003EH-Hm for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 09:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBcla-00088y-Gl for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 09:51: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: Wed, 13 Jul 2022 13:51: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.165772024431277 (code B ref 56528); Wed, 13 Jul 2022 13:51:02 +0000 Original-Received: (at 56528) by debbugs.gnu.org; 13 Jul 2022 13:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:45136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBclI-00088O-0L for submit@debbugs.gnu.org; Wed, 13 Jul 2022 09:50:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBcl1-00087d-W0 for 56528@debbugs.gnu.org; Wed, 13 Jul 2022 09:50:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBckw-00037a-Hd; Wed, 13 Jul 2022 09:50:22 -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=D7R+G6i3emqgtVUDYw65DvgUCfr1G/zc3AZJSZTHOgQ=; b=YWCyujtOOK/I kDXMeyXbNslloE1s0vMwUkgTeNax111UNnqPJaQ4tx95hzLFL/aaARiOTvlkVMwOCbxjvbmYYx26S UW1Bxdhu9FHmAjjYg1nPbSFSsfjoFpX1YKtEemcU8xOQ7uAs5JIVl/IeqLv0qhKN56In87HjIPjPF OM+RpT4L/BGytLoV44zJzsbqAefn1SMnaHFRqXnJDIhZ5K1u6lZhLdHi8pWpQRZSzpVlU3ZEyPPqs kUr1VqzMdbW5wWuu8g6BgmMz9oAvnjwiaXPhyxSuUiB+lYuJm2kmGkwd0NcoCfB+cndCB6ILIB/84 7IsNS5aF3TX7F7n79MI/sg==; Original-Received: from [87.69.77.57] (port=1624 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 1oBckm-0001LY-2f; Wed, 13 Jul 2022 09:50:22 -0400 In-Reply-To: <87r12pgn80.fsf@gmail.com> (message from Visuwesh on Wed, 13 Jul 2022 18:53:59 +0530) 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:236898 Archived-At: > From: Visuwesh > Cc: luangruo@yahoo.com, 56528@debbugs.gnu.org > Date: Wed, 13 Jul 2022 18:53:59 +0530 > > > Btw, what do we expect Emacs to do in this scenario? If the X server > > is killed, Emacs cannot display anything, so why an abort is not TRT? > > What practically interesting use case does this emulate? > > Emacs is running as a daemon, I expect it to survive the death of X. "Survive" how? by closing all the frames? IOW, you are saying that when this happens, Emacs should test whether it has a running server, and if it does, unconditionally close all the frames? Is that really useful? > Emacs dying on me because I killed X is an annoyance since sometimes I > need to restart X. Why not close Emacs before that -- this way you get to keep all your edits, instead of relying on error handling to succeed in doing that.