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#56967: 29.0.50; Frequent crashes under Wayland Date: Fri, 05 Aug 2022 08:50:39 +0800 Message-ID: <878ro37bts.fsf@yahoo.com> References: <1932596.zmb9SnqgO4@odin> <834jys4dwq.fsf@gnu.org> <87les46xem.fsf@yahoo.com> <16164156.Y83TkukXya@odin> 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="15248"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 56967@debbugs.gnu.org, Eli Zaretskii To: Bjoern Bidar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 05 02:52:11 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 1oJlZT-0003ra-MD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 02:52:11 +0200 Original-Received: from localhost ([::1]:35272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJlZR-0005oB-V0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Aug 2022 20:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJlZK-0005o3-NX for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 20:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJlZK-0001yJ-FB for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 20:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJlZK-0001rD-9N for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 20:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Aug 2022 00:52:02 +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.16596606627065 (code B ref 56967); Fri, 05 Aug 2022 00:52:02 +0000 Original-Received: (at 56967) by debbugs.gnu.org; 5 Aug 2022 00:51:02 +0000 Original-Received: from localhost ([127.0.0.1]:55335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJlYM-0001ps-AA for submit@debbugs.gnu.org; Thu, 04 Aug 2022 20:51:02 -0400 Original-Received: from sonic304-22.consmr.mail.ne1.yahoo.com ([66.163.191.148]:45330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJlYI-0001pM-NB for 56967@debbugs.gnu.org; Thu, 04 Aug 2022 20:51:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1659660652; bh=htiF8aag4x3ZDOcgqg1B722ztIC26ULKBJwANWHkfn0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=So5GJluB4O+b88gl4nORE5kZMpcpqPmgEEhhkYr74jLLMyy8ZrOOWFhLbaoHCfFGs5ljs7/sBaeqYu5H8OC1EQAFMeiz1hBiikObnc26Hu1fyDD+EnRpOUJJWwJrlSrijDEgL99U/T/3bnUGwi45coo7YOccZ+vww/W7D8Hos2+df5ZLpTjYV9/Lqt5Hjc02GcKlALsQOy3Bn7aQiNF6h8mOwWHJ29Hv5N2OA8XZIAKo4LuBRxhoBGXPl8LsIGnCwdkGH+resO98FsdzmX3otTNn4mI7gwUcjB6u0cGX0DP9tVlzZ6A89SY/GcVLCddSoAXuFKKprpT7DGM8r17oJg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1659660652; bh=94G1bflg1yooOlwmiB7lRXqLTTmQW0tf0zq80P/RS14=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=LDzE/Ew+ZFPPI47Fty+XMDdDUntWZDPg5MyKE3dSIdxSdmd9cxfVhvfc30gFczbmlBnrrmRDigwkX9DTgcjzyrs4kzQibCL6SWi5H6lhiL20SwvhR55EAtNKIBQzEjt3YUToDfdfc+vtReBXpEpDOeIN4OBzm2lPpVCPyc0xztIAHini5uRvVm42P4Wa7E/sTAK4iiyaYd9gl/xTkpzMtwmVzFVn7LN3HULS3chZXLB7W3lYlG38wLuVTJXAGXfWw7nYFVASPX7LtHfuEFVkmS8OwDH2iu+w1Is1W5Aefut0xGvatq7h7d1ZotcWeGELHI6jBxWo4ZgeNKOlbKo1wQ== X-YMail-OSG: CpZ3vKYVM1mr5CVzyu3m2j4KbtEJc2DYV.yxxM9y0SmjVQBj2ht4SYqv5y2Clnf jBrwTkXbJZ.wic1fy_22drpJMOuyQXUTriGcldlr5ndQaOdu7rKMDtjsdBmQuj_NEdAQW7mKhSev dRZbC.tCJNLIThrFhjgE4Eh89Te0HH5OSsjztvbbvtBlu05dgP1_.f3KZy_QuCabCz1LJuiK8x6r RvMRBrzTMlaq7T1CEZphPG1w9eidRFTyVn9.SI9yPxmkY_buyuOqeRej_AL8Mm2WIisR7x9FFuhj QjtqvPrITNQU8a3gSvgiPoXnINfiqFMv.6.fs1BgosO_D9nUp2f9C739tyPb1KoQcLTiN.k9Clf1 f.wk9G6DKsKzMg2zYO3x9YZR.Le0d.h.pjj9qqvDps18m3TkjO1ttaq6MNTBwtf1Y77R14DtHqCA SbDdv2DJc3.MQkz9Wi7h7VolYbMDSw2UzyvcMyYCRLUWJjAFLtMZhR.awa3vdr4jNlm0vGH2lJa9 sfGQ1Cv1yLommYKq_325PJhAHN.Tiew5zwB8tm7Wkwod5ZWDBCUEDU3lqPjTrRa54z7EcjX5Ew91 HjMQ6EfwIRzWL3vb68Tfxb3dLCGJ9GevojrdIjj_j9r6rWMwCaDa38_2P1C6a7.8L1YD.bqaX8zj J_kdJj5C3muZGhnBkAja_UV0.XboNJHRn6Jm8_KGZQb8YH.ykjA30BqpaBBTJBo4uVo1VEjC2cqH u3nuWW_yQarC4b0A3eM7D2JzjpGHoPYB7FY9goRxtnfLF_31EbCiJ6PvqqCAMkXoMY8x84gjtpWB mgbwtSAaagr7nvUz09i9Z6v7MC8eSPBem.5T0UZo2j X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Fri, 5 Aug 2022 00:50:52 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-q5dg5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c7fa0a005ad9d9b6c53c8d3b247921e5; Fri, 05 Aug 2022 00:50:45 +0000 (UTC) In-Reply-To: <16164156.Y83TkukXya@odin> (Bjoern Bidar's message of "Fri, 05 Aug 2022 03:18:17 +0300") X-Mailer: WebService/1.1.20491 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:238805 Archived-At: Bjoern Bidar writes: >> Eli Zaretskii writes: > >> > Then please run Emacs under a debugger, or attach a debugger to it >> > after you start it, and place a breakpoint in the function >> > Fkill_emacs. When that breakpoint breaks, produce a backtrace (with >> > the "thread apply all bt" command in GDB) and post that backtrace >> > here. >> >> Please also place a breakpoint on _exit -- GDK always calls that with >> the exit code 1 that when a display connection is abruptly lost, in >> which case Fkill_emacs has no chance to run. >> >> Thanks in advance. > > Started emacs via systemd as and set both break points as asked. > > There you go: > > > Thread 1 "emacs" hit Breakpoint 2, __GI__exit (status=status@entry=1) at ../ > sysdeps/unix/sysv/linux/_exit.c:27 > 27 { > (gdb) bt > #0 __GI__exit (status=status@entry=1) at ../sysdeps/unix/sysv/linux/_exit.c: > 27 > #1 0x00007fdac9c825ae in gdk_event_source_check > (base=base@entry=0x5626b0eb7770) at ../gtk/gdk/wayland/gdkeventsource.c:97 > #2 0x00007fdac962411f in g_main_context_check (context=0x5626b71d9be0, > max_priority=2147483647, fds=, n_fds=) at ../ > glib/glib/gmain.c:4035 > #3 0x00007fdac9679e5e in g_main_context_iterate.constprop.0 > (context=context@entry=0x5626b71d9be0, block=block@entry=0, > dispatch=dispatch@entry=0, self=) at ../glib/glib/gmain.c:4208 > #4 0x00007fdac962132d in g_main_context_pending (context=0x5626b71d9be0) at > ../glib/glib/gmain.c:4241 > #5 0x00005626ab4f3bd2 in pgtk_read_socket.lto_priv () That's what I thought might be happening. Emacs calls g_main_context_pending to read events from GDK, which notices that the display connection has been abruptly terminated, and calls _exit to abort. Unfortunately, there's no way for us to fix this inside Emacs, so I guess you should look into why Wayland display connections are so unstable on your system.