From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56528: 29.0.50; Emacs lucid segfaults when X dies Date: Thu, 14 Jul 2022 09:04:49 +0800 Message-ID: <87y1wwsdvy.fsf@yahoo.com> 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> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 56528@debbugs.gnu.org, Visuwesh To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 03:06:23 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 1oBnJ9-0006IV-CU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 03:06:23 +0200 Original-Received: from localhost ([::1]:44390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBnJ7-0007nT-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 21:06:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBnIp-0007ls-8U for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 21:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBnIo-0003eY-21 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 21:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBnIn-0006nz-Q2 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 21:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 01:06:01 +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.165776071426099 (code B ref 56528); Thu, 14 Jul 2022 01:06:01 +0000 Original-Received: (at 56528) by debbugs.gnu.org; 14 Jul 2022 01:05:14 +0000 Original-Received: from localhost ([127.0.0.1]:48019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBnI1-0006mr-LH for submit@debbugs.gnu.org; Wed, 13 Jul 2022 21:05:13 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]:40856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBnHw-0006mV-Hu for 56528@debbugs.gnu.org; Wed, 13 Jul 2022 21:05:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657760703; bh=zpLEHATQY9b60ByDpjGmpiKYKXEsRh3yVDjNiMPYKsU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=mWGNyrNhFk61B/soXKMKF7FZQR/xPNi6KmF4a3DXAKlL87/mj+K7w8zyOkjKzR2f/7PhJ7BoDjGWUU88bTWV/+BQTioaSta/JWpTUFlZB2i/qPRsIvhziI1goByr3ns9/X/FJhTUuvB/4X9z87MOOCWHuJFhCesXnLgDkGZjQfsg9CTAxY6E67aolZz/Z5Vsl8SVL1TyG2Yx8BZphOhVmS4jHzHAPzft3rvLYk9robchVceihqyiR0dhpDPXZ/B0L6b1OV+inL8Iw/NM0nUP+WzyK7UQOa79SvtNoiCi2wziEp3mmQwRD+VMZHrXPBKnPefKzkeRz4rnRhOQVms0BA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657760703; bh=U6dipj7i+vIg4SGpeV1vcn3y1yHR7vOnAF6XhFPdLl5=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=kXNGSN8QzApdPrYPc/n9g4+co/NRTZtpKaYEc4rNqa6WhWoPDYV0T6AOytkZLu5cVlFX1HU+WyiL7d2s3d38ahmjKhErC88RdCJ2ffnhYGM4MFOHpqNmmZSXArozmC9NwLe3IDPIFn5K1xcMWPwHdTwxTY+LxmbvC5ICog2p7GlD9362jWrAA1TBK8AKZMFG1UJ72++wfT20zpropGVYbJKbcF3BC9ARAKAdjONfX4kqY8kCmYUw5IX3poxFOnMcRtkYghn59c1WPNqlB9mpYxLbJdcb5n2N1J0lglVIQC514mRt47Mm7YdRVIJ4+iNEEjIZM5Le9TL2j8j59qNyDg== X-YMail-OSG: hSFaTWkVM1ngn.nMrxLj5PdNBOy8mXKj3.kAmHDBRA9hDUu75DYYNT2J_qqLLIm dGGDhhXLiARLUvmFLLFt_JhpwqgmmJ..Jx6GyutfvLmfnLuEw0nKtkNIIoarM0w4havkub7B1WIT 7w5TBPCapHXiR.adWv5RJi_yKzbEk0ZN4XDBJEpLAdsqj4Wo8LI9h1Cf9alP11teVH83MwGHJxtk L8Q4awt8_wTpkj1WJ_d0dywPtJac2WVWomLxQZAD2DZvsULc8pL3dawFUThLSLIrUl.1SQfVwKBb XJlK0jn_2YDPeRYcLLMNQBF0KjrgxKQqO_LG3IFE0uQMt0SSf2obmp_qT7NHSNTA9DMnnRD8Dl7a n8gzh3gvbMAq9cpc53oo1jjTHyIPRntofs_TwshGlempiyimaNztok_L05rLYY471hP.o7OspwPP mfeni40OGL25ZArOlnrXtLgFLlDUqr9rHdav6_Ohq6TXlVy18SDCDv5BVyWg_TMG7tNKnrikXIBq 29OM641q6cpBY2C7J6c8HzR1y70dY2fxhcUGanDG3nJq3fyGbZ_raUDBMtUe5.nSmgkdUSF9U7FD UdLnD0UkHG0xEAw7glNHMe.5nweaFDQiV8.dWRDUk8JHhZHoVzhiFDTgwRC0mHm__.Pp1qRZN9cx 2EoHEgUz2UwAtQdEdNCP8fdIZJXr1TsR7H34YF9HukLbhqFJGbhYpy2BpgJje3Ntj4hNLH41fDNS lDb6k6KUpZyAGFMBzKnSKjyva.QvxdESE9oCZoAXDZTEF1yT1a6UfUSdBjTHVi_bzsYV66fuO68H S3A2zELj23Et4RAsltoKRMj5jw1xJF4M7qvC1uc0i3 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Thu, 14 Jul 2022 01:05:03 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-27vvd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID cc013f13cedfac3fbbbe16ac175e2d7b; Thu, 14 Jul 2022 01:04:57 +0000 (UTC) In-Reply-To: <83v8s1uecy.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 13 Jul 2022 20:11:41 +0300") X-Mailer: WebService/1.1.20407 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:236937 Archived-At: Eli Zaretskii writes: > That's probably just sheer luck. When you kill the X server, any code > in Emacs that tries to display something will crash and burn, because > there's generally no way for us to display anything in that case. 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.