From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland Date: Thu, 05 Sep 2024 11:12:34 +0000 Message-ID: <87le06s6ao.fsf@protonmail.com> References: <8734mezkgo.fsf@gmail.com> <86jzfq4j59.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7724"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eval EXEC , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 05 13:28:13 2024 Return-path: Envelope-to: ged-emacs-devel@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 1smAeq-0001oi-1N for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Sep 2024 13:28:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smAdp-00022O-50; Thu, 05 Sep 2024 07:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smAPr-0005Be-0K for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:12:43 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smAPp-0000pP-Bx; Thu, 05 Sep 2024 07:12:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725534758; x=1725793958; bh=LObo0kANuVpXer6S/5QXAhJ9n+ZqFX+tQ6Ql7k8JjHw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ByvhBM9l+mB+vPLdXp9wgv76ZyHs3JjQ3C0KxsaThfuqOrm0PokzKi1NUcv72MOBa yFSkB4BPZ/Zi09tNL98VWgQ23sEc+8vWeWoSPmywbeerV4jL/vRnHBu6iVXhwRgwLd Tig/DTG3bY5/UGWxLtH/8IjoAPFwwkQy/E9WrpBGeJjEAkQ+DXtkjW17Mf0+152SER Us58/NCpw+jb2YKJ1q9NickhllQWB20sEsVIjrMDvmChRnUm+Nep1t5yFnLOYTcv8k PDLjr680Ic4Dp83Rx/0GEmoDBTOcnECzqQkCG8Grz1kWJnYxfyxurfGpQ+ME1srZ0J VKhEBaoWNE1LQ== In-Reply-To: <86jzfq4j59.fsf@gnu.org> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 471d22601ebb6a1e9e55ec210fecc7b617f3d348 Received-SPF: pass client-ip=185.70.40.131; envelope-from=pipcet@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 05 Sep 2024 07:27:05 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323398 Archived-At: "Eli Zaretskii" writes: >> From: Eval EXEC >> Date: Thu, 05 Sep 2024 14:24:39 +0800 >> >> ```elisp >> (setq-default tab-bar-format >> =09=09=09=09'(tab-bar-format-menu-bar >> tab-bar-format-history tab-bar-format-tabs >> tab-bar-separator tab-bar-format-add-tab >> tab-bar-separator tab-bar-format-align-right >> tab-bar-format-global)) >> ``` >> >> Than, about 20 seconds after, the emacs crash, crash bt is: >> ``` >> info "(gdb)Auto-loading safe path" >> warning: File "/nix/store/x47hg342iyiw50c1fhqjzz4n0rqy3dhh-isl-0.20/lib/= libisl.so.19.1.0-gdb.py" auto-loading has been declined by your `auto-load = safe-path' set to "$debugdir:$datadir/auto-load:/nix/store/40yjzm7r5ki59kkk= 9423dnwbm86x7pyd-gcc-13.2.0-lib". >> (gdb) bt >> #0 0x00007f84a90a2efc in __pthread_kill_implementation () from /nix/sto= re/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libc.so.6 >> #1 0x00007f84a9052e86 in raise () from /nix/store/dbcw19dshdwnxdv5q2g6w= ldj6syyvq7l-glibc-2.39-52/lib/libc.so.6 >> #2 0x0000000000429886 in terminate_due_to_signal () >> #3 0x0000000000431d79 in igc_assert_fail.lto_priv[cold] () >> #4 0x00000000007b0e60 in LockClaim () >> #5 0x00000000007ddea5 in ArenaEnterLock () >> #6 0x00000000007e01a1 in mps_ap_fill () >> #7 0x00000000006e74b6 in alloc_impl.lto_priv () >> #8 0x000000000060993b in list2 () >> #9 0x000000000042da87 in xsignal2 () >> #10 0x000000000042c379 in wrong_type_argument () >> #11 0x0000000000430730 in get_process.lto_priv[cold] () >> #12 0x00000000006bd653 in process_send_signal () >> #13 0x00000000006be017 in kill_buffer_processes () >> #14 0x000000000058efb5 in shut_down_emacs () >> #15 0x0000000000429852 in terminate_due_to_signal () >> #16 0x000000000042a38f in handle_sigsegv.lto_priv[cold] () >> #17 >> #18 0x00007f84a905316b in kill () from /nix/store/dbcw19dshdwnxdv5q2g6wl= dj6syyvq7l-glibc-2.39-52/lib/libc.so.6 >> #19 0x00000000007e3919 in sigHandle () >> #20 >> #21 0x000000000075d716 in dflt_scan_obj.isra () >> #22 0x00000000006e288d in dflt_scan () > > Looks like a SIGSEGV while handling protection-induced SIGSEGV? I > don't think I understand why the second SIGSEGV was triggered. sigHandle() triggers a second SIGSEGV if the first SIGSEGV wasn't handled successfully, after restoring the previous sigaction. So this is a "normal", fatal SIGSEGV and MPS passed it on. > Is this related to tab-bar, i.e. if you do not modify tab-bar-format, > does this not happen? I suspect it's a tracing problem related to the (highly optimized, inlined, LTO'd) code used by Flist and copy_font_spec. We'll have to disassemble those functions and check where and how they store references to the list being built. Pip