From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bjoern Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56967: 29.0.50; Frequent crashes under Wayland Date: Fri, 05 Aug 2022 09:56:33 +0300 Message-ID: <1837490.dTZS6WpuUc@odin> References: <1932596.zmb9SnqgO4@odin> <83pmhf1a2p.fsf@gnu.org> <87les39pbu.fsf@yahoo.com> Reply-To: Bjoern Bidar Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56967@debbugs.gnu.org To: Eli Zaretskii , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 05 08:57:13 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 1oJrGj-0005Zm-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 08:57:13 +0200 Original-Received: from localhost ([::1]:45610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJrGh-0003rd-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 02:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJrGY-0003rE-D2 for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 02:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJrGY-0000XP-4X for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 02:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJrGY-0007dE-0K for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 02:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bjoern Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Aug 2022 06:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56967 X-GNU-PR-Package: emacs Original-Received: via spool by 56967-submit@debbugs.gnu.org id=B56967.165968260129305 (code B ref 56967); Fri, 05 Aug 2022 06:57:01 +0000 Original-Received: (at 56967) by debbugs.gnu.org; 5 Aug 2022 06:56:41 +0000 Original-Received: from localhost ([127.0.0.1]:55912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrGD-0007cb-Aq for submit@debbugs.gnu.org; Fri, 05 Aug 2022 02:56:41 -0400 Original-Received: from thaodan.de ([185.216.177.71]:57632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrGB-0007cP-VY for 56967@debbugs.gnu.org; Fri, 05 Aug 2022 02:56:40 -0400 Original-Received: from odin.localnet (dsl-trebng12-b04885-76.dhcp.inet.fi [176.72.133.76]) by thaodan.de (Postfix) with ESMTPSA id 712D9D00288; Fri, 5 Aug 2022 09:56:34 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1659682594; bh=bHHk/QgrrtKBSrRkCZFE40sAgGqUy6R3AHQCC3NEVqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KwI1sTE3XsptY7yhW3XbT8+gHQ/0be5t/di3whdk23CD52zyZl7dUcjhHUTzEqfJA gzO7SH7G4ARMst7myo2X9tUBr0gYzjauITJhp3zsdQ7LdlaOM2LVYpIf6/Fto//bYS HTGHVxaHU4WYCfElQqBP737mCiGZQUEe+yOcXrIDpg8F3dfarMWtWVqfPHOkdLZ92d DWXK8cb2GbMrXMjgeKinbIvlD6YZQInNDIZQgG0xSzSlzNxyqgdm4If/RmGbTR7c8h 6ZCJKEUobC8bAiiDqk4Y9QhupkD6B/jVYOUY9+UWOjPQYhMJs6BJHt2tceFqLf7pYs 5u65WDHJEoxPaAjOKVByCP7Fc/uVtV9zm7swSGtsvMSxERBma7AMftt2P9K61diC2h F5q/bJmU5rNJ76COkEcleSIbB5USnLrPh9wdlbM5MT3YY5bVG7pzzJsC1BSm8VdDS7 KUnkRiKokgSuASEb4aCtdV5L7GBmPTAAQGIxShtULHpQWWA3fNdvakRpQ2Yz3WsfkA rmzw8NgrMY1n+Pl4OHGJ5bSVsRWBhUrdP29p/yIuUHRBiICWFcjbDeIZHGl1uOmina 5gj/uC79E0pWpkUmPre8TJJqj0QSpWSddfZh0hcSvxIt3E4Ni3tAkE1uV6MPbT+Ua0 s6G2Q0Ga6PCs9p1WxBqGjEfY= In-Reply-To: <87les39pbu.fsf@yahoo.com> 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:238828 Archived-At: Am Freitag, 5. August 2022, 09:28:21 EEST schrieb Po Lu: > Eli Zaretskii writes: > > Does _exit in glibc provide any hooks that we could use? > > Not that I know of. > > > Emacs cannot be the first application that doesn't want misbehaving > > libraries to forcibly exit it. > > It literally is, in the case of users of GDK. > > > Or maybe GTK has some knob to let it call us before it calls _exit? > > Nope, GTK simply does this: > > if (wl_display_flush (display->wl_display) < 0) > { > g_message ("Error flushing display: %s", g_strerror (errno)); > _exit (1); > } > > if (for example) wl_display_flush, a low-level Wayland interface, fails > from an IO error. How should any app clean up after it selfs when GTK just closes it?