From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69431: 30.0.50; Strange fontificaion behavior Date: Sun, 03 Mar 2024 18:20:52 +0200 Message-ID: <29693.4168132552$1709482997@news.gmane.org> References: <871q8x6e06.fsf@mail.parknet.co.jp> <86msrlu87i.fsf@gnu.org> <87v869oklj.fsf@localhost> <86il29u4hy.fsf@gnu.org> <87sf1dogi8.fsf@localhost> <86edcxu2ge.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar 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="31310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69431@debbugs.gnu.org, Eli Zaretskii , Ihor Radchenko , hirofumi@mail.parknet.co.jp To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 03 17:23:08 2024 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 1rgocG-0007st-MK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Mar 2024 17:23:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgoc8-00010g-6H; Sun, 03 Mar 2024 11:23:00 -0500 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 1rgoc1-0000zv-1f for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2024 11:22:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rgobh-0001O9-9O for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2024 11:22:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rgocA-00089Y-9y for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2024 11:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2024 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69431 X-GNU-PR-Package: emacs Original-Received: via spool by 69431-submit@debbugs.gnu.org id=B69431.170948292231254 (code B ref 69431); Sun, 03 Mar 2024 16:23:02 +0000 Original-Received: (at 69431) by debbugs.gnu.org; 3 Mar 2024 16:22:02 +0000 Original-Received: from localhost ([127.0.0.1]:41010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgobB-00087n-F2 for submit@debbugs.gnu.org; Sun, 03 Mar 2024 11:22:02 -0500 Original-Received: from thaodan.de ([185.216.177.71]:52566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgob9-00087Y-IX for 69431@debbugs.gnu.org; Sun, 03 Mar 2024 11:22:00 -0500 Original-Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id 1D196D08CB8; Sun, 3 Mar 2024 18:20:54 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1709482854; bh=G1Q65O7q7szI1m9lFFBc7VQ/zovVbqycUzLijYO3pq0=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=xjW8UoXzu9FDl5KYxo+0gAECsQl1G20PisR+zSkP1mFs3yeQlXjzZn/xDUhgwzsxL pOfgED/hIAYeyklxpDjOV57ghAgbu/ew7ew8KDFrNHsOWaHtxeeY1BixKwGALBDvlP uZrZoIt9P/nnWMh03T9oaeP13jLLk+fPVK7y4Q3HU6Z0E8wXFDic8nOoc4tJiLlG9R xEBNrsvdpfsUr8UcW/bzr2Bxzj0V6c2aBld5NA6Y67uo1eMETmMzvo1ZXd3jcXVrRP V6mz7x20kvHuaLPTSHak7aGJ1ZV/dngYkiF7WcaOwIVrPfDsqZNyH/F+djm4P1sSdd f7FRg/3M9UiBDKv4VZg5GT1+M0vFNFce9f3vSobiL59qyOSXtV1izpL5M9/ABp2hju +paoctdxozjJ4Xvahe9tzHk8zfnZA36UpWuHs480AQEeMhVa1F8Tb39u3FBXwcuRVo VsibEQw3VCU7zBKc0PK6uD3GndrYFIfbkD2PAr8pMNKw9VV4/JiK2B7p5GZTtDNnU8 RBUBmnkQ0IY7JHBLb02YEIgKLgNcuws1Z9qeRICJ78EdMbkrq7/CzSKAtEJVP5kRww DbZ87hCLRUH4GRKjpUq8VO9/exPYKrMoI7Pqhjau0PC21S8NMoT5on+JowIVOD5gIs 77WiBpWepNzqdlo1kviAQs8Y= In-Reply-To: (Andrea Corallo's message of "Wed, 28 Feb 2024 08:53:18 -0500") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280943 Archived-At: Andrea Corallo writes: > Bj=C3=B6rn Bidar writes: > >> Eli Zaretskii writes: >> >>>> From: Ihor Radchenko >>>> Cc: hirofumi@mail.parknet.co.jp, 69431@debbugs.gnu.org >>>> Date: Tue, 27 Feb 2024 19:26:39 +0000 >>>> >>>> > So maybe the problem is already solved somehow? >>>> >>>> ... or it has something to do with loading built-in Org mode. >>>> when I do >>>> 1. emacs -Q >>>> 2. C-x C-f /tmp/a.org >>>> I do not see fontification. >>>> >>>> when I do >>>> 1. emacs -Q >>>> 2. M-: (require 'org) >>>> 3. C-x C-f /tmp/a.org >>>> I see fontification... >>>> >>>> and when I wait long enough for native compilation to finish, I can see >>>> fontification without loading org.el. >>>> >>>> Not sure if it tells anything useful. >>> >>>> From: OGAWA Hirofumi >>>> Cc: Ihor Radchenko , 69431@debbugs.gnu.org >>>> Date: Wed, 28 Feb 2024 04:20:13 +0900 >>>> >>>> I found a bit more about this. If build with --native-compilation=3Dno= , I >>>> can't reproduce, and at least --native-compilation=3Daot can reproduce. >>> >>> Since this seems to be somehow related to native compilation, I'm >>> adding Andrea to the discussion, in the hope that he could suggest >>> some ideas. >> >> I have the same error since my last build ref >> 1687adcb5c93b490e2e7edcd14615af295e791ed same issue later in 6a77355527b= 2f7f1dca9c2296c2684033c9aa875. >> >> When running without gdb Emacs just tells in the minubuffer: >> Re-entering top level after C-stack overflow. > > Okay, might be some recursive dependecy issue while loading? >> >> With gdb I get a SIGEGV in lface_from_face_name. >> I attach two log files I've created. It was hard to get an exact point >> since the bug only triggers when enough is loaded. At first there's >> memory corruption but no crash. > > Would be cool to have a Lisp backtrace at the moment of the SIGEGV to > understand what we are trying to load and in which order before we stack > overflow. > > Another idea would be to apply something like the following to > Frequire, run a make, and run again the reproducer to understand what's > going on. > > modified src/fns.c > @@ -3408,6 +3408,7 @@ DEFUN ("require", Frequire, Srequire, 1, 3, 0, > bool from_file =3D load_in_progress; > > CHECK_SYMBOL (feature); > + printf ("XXX %s\n", SSDATA (Fsymbol_name (feature))); > > /* Record the presence of `require' in this file > even if the feature specified is already loaded. > > I'd do the investigation myself but my dev machine went KO yesterday and > to get it fixed it might take till next week :/ > > Thanks > > Andrea I found the culprit of the problem: it's load-theme. The only theme's could trigger the bugs so far for me where modus themes.