From unknown Mon Jun 23 23:50:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63283 <63283@debbugs.gnu.org> To: bug#63283 <63283@debbugs.gnu.org> Subject: Status: Emacs crash within fontset Reply-To: bug#63283 <63283@debbugs.gnu.org> Date: Tue, 24 Jun 2025 06:50:23 +0000 retitle 63283 Emacs crash within fontset reassign 63283 emacs submitter 63283 Seppo Ronkainen severity 63283 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 16:47:55 2023 Received: (at submit) by debbugs.gnu.org; 4 May 2023 20:47:55 +0000 Received: from localhost ([127.0.0.1]:52164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pufrj-0000ew-7D for submit@debbugs.gnu.org; Thu, 04 May 2023 16:47:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:41356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pueGO-00065K-8n for submit@debbugs.gnu.org; Thu, 04 May 2023 15:05:12 -0400 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 1pueGN-0001Kt-O5 for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 15:05:11 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pueGK-0003FQ-EQ for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 15:05:10 -0400 Date: Thu, 04 May 2023 19:04:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1683227103; x=1683486303; bh=9XjngoVThjXka8deeLQvnHUwZ0vkVVAq+r18XfGzLRA=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=MnMk/AcLgxr1ZYoHRfSmeQdBfZVqiYLm/h5tdRIMnFOUQQ/JCb8tpJVTbVlQOBzo6 0ou/aUi8+6NjYv9zgrYrMY3p32Tk4cOLZiNPkbcJf1ArjQKG0M0NTBd/91EfvqRb+u dHUDS7yfaDt66Px7m5QNpxb3YbQgZKJGyZLHFTdl508TlaAytwklBO6giqKC2zsxr+ caZhDA9zFCPU8nVZDkysWY1TNt4HBhuET5C/n63m414A3akqEhDrRWJ/EMsIu1OOBI 1lqCbFRimOh7OcsIUuWXVAzjBoZ5HFqSYkny8uoHgk5SCpP7u8aR8NzLBS5NAmZAVq tOOtPmNUIzm2Q== To: bug-gnu-emacs From: Seppo Ronkainen Subject: Emacs crash within fontset Message-ID: Feedback-ID: 7916417:user:proton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0" Received-SPF: pass client-ip=185.70.43.22; envelope-from=sodr80@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-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-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 04 May 2023 16:47:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) This is a multi-part message in MIME format. --b1_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0 Content-Type: multipart/alternative; boundary="b2_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0" --b2_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 SG9ub3JhYmxlIEdOVSBkZXZlbG9wZXJzICEKCkZvciBzb21lIHJlYXNvbiB0aGUgbmV3IEVtYWNz IDI5LjAuOTAgZGlkIG5vdCBidWlsZCBhdCB3b3JrIHRoZSBvdGhlciBkYXkgdW5sZXNzIEkgcHJv dmlkZWQgY29uZmlndXJhdGlvbiBvcHRpb24gLS13aXRob3V0LWFsbCAoSSBwbGFuIHRvIGxvb2sg aW50byB3aHkgbGF0ZXIgYnV0IHRoYXQgaXMgbm90IHdoeSBJIGFtIHdyaXRpbmcgdGhpcyByZXBv cnQgbm93KS4KCldoZW4gSSBleHBlcmltZW50ZWQgd2l0aCBFbWFjcyAoMjkuMC45MCAtLXdpdGhv dXQtYWxsKSBJIG5vdGljZWQgYSBjcmFzaCBkZWZlY3QgdGhhdCB3YXMgZWFzeSB0byByZXByb2R1 Y2UuIEl0IHNlZW1lZCB0byBoYXZlIHdpdGggZm9udHMgdG8gZG8uIEkgaGF2ZSBub3RpY2VkIHRo ZSBzYW1lIHByb2JsZW0gYm90aCBhdCB3b3JrIENlbnRPUyA3LjkgYW5kIGF0IGhvbWUgKGN1cnJl bnRseSBvbiBhIHJhc3BiZXJyeSBwaSA0KSBub3QgdGhhdCBpdCBtYXR0ZXJzIGJ1dCBhbnlob3cg c2V2ZXJhbCBtYWNoaW5lcyAvIGFyY2hpdGVjdHVyZXMuIFRoZSBwcm9ibGVtIHNlZW1lZCBub24t cHJlc2VudCB3aGVuIEkgYnVpbHQgRW1hY3Mgd2l0aG91dCBjb25maWd1cmF0aW9uIG9wdGlvbiAt LXdpdGhvdXQtYWxsCgpJIGF0dGFjaCBkZXRhaWxzIGFib3V0IG15IGZpbmRpbmdzIGluIGFuIG9y ZyBmaWxlLCBob3BlIGl0IGhlbHBzCgpMaXZlIGxvbmcgYW5kIHByb3NwZXI= --b2_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 SG9ub3JhYmxlIEdOVSBkZXZlbG9wZXJzICE8YnI+PGJyPkZvciBzb21lIHJlYXNvbiB0aGUgbmV3 IEVtYWNzIDI5LjAuOTAgZGlkIG5vdCBidWlsZCBhdCB3b3JrIHRoZSBvdGhlciBkYXkgdW5sZXNz IEkgcHJvdmlkZWQgY29uZmlndXJhdGlvbiBvcHRpb24gLS13aXRob3V0LWFsbCAoSSBwbGFuIHRv IGxvb2sgaW50byB3aHkgbGF0ZXIgYnV0IHRoYXQgaXMgbm90IHdoeSBJIGFtIHdyaXRpbmcgdGhp cyByZXBvcnQgbm93KS48YnI+PGJyPldoZW4gSSBleHBlcmltZW50ZWQgd2l0aCBFbWFjcyAoMjku MC45MCAtLXdpdGhvdXQtYWxsKSBJIG5vdGljZWQgYSBjcmFzaCBkZWZlY3QgdGhhdCB3YXMgZWFz eSB0byByZXByb2R1Y2UuIEl0IHNlZW1lZCB0byBoYXZlIHdpdGggZm9udHMgdG8gZG8uIEkgaGF2 ZSBub3RpY2VkIHRoZSBzYW1lIHByb2JsZW0gYm90aCBhdCB3b3JrIENlbnRPUyA3LjkgYW5kIGF0 IGhvbWUgKGN1cnJlbnRseSBvbiBhIHJhc3BiZXJyeSBwaSA0KSBub3QgdGhhdCBpdCBtYXR0ZXJz IGJ1dCBhbnlob3cgc2V2ZXJhbCBtYWNoaW5lcyAvIGFyY2hpdGVjdHVyZXMuIFRoZSBwcm9ibGVt IHNlZW1lZCBub24tcHJlc2VudCB3aGVuIEkgYnVpbHQgRW1hY3Mgd2l0aG91dCBjb25maWd1cmF0 aW9uIG9wdGlvbiAtLXdpdGhvdXQtYWxsPGJyPjxicj5JIGF0dGFjaCBkZXRhaWxzIGFib3V0IG15 IGZpbmRpbmdzIGluIGFuIG9yZyBmaWxlLCBob3BlIGl0IGhlbHBzPGJyPjxicj48YnI+PGRpdj5M aXZlIGxvbmcgYW5kIHByb3NwZXI8YnIgLz48L2Rpdj48YnI+ --b2_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0-- --b1_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0 Content-Type: application/octet-stream; name=20230504172048utc_emacs_crash_defect_report_to_gnu.org Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=20230504172048utc_emacs_crash_defect_report_to_gnu.org CgoqIDIwMjMwNTA0MTcyMDQ4dXRjIFN0ZXBzIHRvIHJlcHJvZHVjZQoKY3JlYXRlIGEgdGVzdCBm aWxlIHdpdGggc29tZSB1bmljb2RlIGNoYXJhY3RlcgojK2JlZ2luX3NyYyBlbWFjcy1saXNwCiAg KHdpdGgtdGVtcC1maWxlIChleHBhbmQtZmlsZS1uYW1lICJ+L2V4YW1wbGVmaWxld2l0aHVuaWNv ZGV0ZXh0IikKICAgIChpbnNlcnQtY2hhciAoY2hhci1mcm9tLW5hbWUgIkxFRlQgV0hJVEUgQ09S TkVSIEJSQUNLRVQiKSkpCiMrZW5kX3NyYwoKfi9leGFtcGxlZmlsZXdpdGh1bmljb2RldGV4dAoj K2JlZ2luX2V4cG9ydArjgI4KIytlbmRfZXhwb3J0CgoKL2hvbWUvdXNlci8ubG9jYWwvZW1hY3Mt MjkuMC45MF9taW5pbWFsL2NvbnMvc3JjL2NvbmZpZy5oOjEzMQojK2JlZ2luX3NyYyBjCi8qIERl ZmluZSB0byB0aGUgb3B0aW9ucyBwYXNzZWQgdG8gY29uZmlndXJlLiAqLwojZGVmaW5lIEVNQUNT X0NPTkZJR19PUFRJT05TICItLXByZWZpeD0vaG9tZS91c2VyLy5sb2NhbC9lbWFjcy0yOS4wLjkw X21pbmltYWwvaW5zdCAtLXdpdGhvdXQtYWxsIgojK2VuZF9zcmMKCgpydW4gRW1hY3Mgd2l0aG91 dCBjb25maWd1cmF0aW9uIGFuZCBhZnRlciBvbmUgc2Vjb25kIGluY3JlYXNlIHRoZSBmb250IHNp emUgYSBmZXcgdGltZXMKIytiZWdpbl9zcmMgc2gKICBQQVRIPSIvaG9tZS91c2VyLy5sb2NhbC9l bWFjcy0yOS4wLjkwX21pbmltYWwvaW5zdC9iaW46JHtQQVRIfSIgZ2RiIC0tZXggcnVuIC0tYXJn cyBlbWFjcyAtUSB+L2V4YW1wbGVmaWxld2l0aHVuaWNvZGV0ZXh0IC0tZXZhbCAiKHJ1bi1hdC10 aW1lIDEgJygpIChsYW1iZGEoKSAoZG90aW1lcyAoaSAxMCkgKHRleHQtc2NhbGUtYWRqdXN0IDEp KSkpIgojK2VuZF9zcmMKCmV4cGVjdGVkIGJlaGF2aW9yOiBlbWFjcyByZXNpemVzIHRoZSBmb250 CgpvYnNlcnZlZCBiZWhhdmlvcjogZ2RiIHJlcG9ydHMgZW1hY3MgZGVmZWN0IGluIGZvbnRzZXQu YyBvbiBsaW5lIDU1NQpzcmMvZm9udHNldC5jOjU0OQojK2JlZ2luX3NyYyBjCi8qIDU0OSAqLyBz dGF0aWMgTGlzcF9PYmplY3QKLyogNTUwICovIGZvbnRzZXRfZmluZF9mb250IChMaXNwX09iamVj dCBmb250c2V0LCBpbnQgYywgc3RydWN0IGZhY2UgLyogKmZhICovY2UsCi8qIDU1MSAqLyAgICAg ICAgICAgICAgICAgICAgaW50IGNoYXJzZXRfaWQsIGJvb2wgZmFsbGJhY2spCi8qIDU1MiAqLyB7 Ci8qIDU1MyAqLyAgIExpc3BfT2JqZWN0IHZlYywgZm9udF9ncm91cDsKLyogNTU0ICovICAgaW50 IGksIGNoYXJzZXRfbWF0Y2hlZCA9IDAsIGZvdW5kX2luZGV4OwovKiA1NTUgKi8gICBzdHJ1Y3Qg ZnJhbWUgKmYgPSAoRlJBTUVQIChGT05UU0VUX0ZSQU1FIChmb250c2V0KSkKLyogNTU2ICovICAg ICAgICAgICAgICAgICAgICAgID8gWEZSQU1FIChGT05UU0VUX0ZSQU1FIChmb250c2V0KSkKLyog NTU3ICovICAgICAgICAgICAgICAgICAgICAgIDogWEZSQU1FIChzZWxlY3RlZF9mcmFtZSkpOwoj K2VuZF9zcmMKCiMrYmVnaW5fZXhwb3J0CjB4MDAwMDAwNTU1NTc4NjRjOCBpbiBmb250c2V0X2Zp bmRfZm9udCAoZm9udHNldD1mb250c2V0QGVudHJ5PTB4MjAsIGM9Y0BlbnRyeT0xMjMwMiwgZmFj ZT1mYWNlQGVudHJ5PTB4NTU1NjUxOTEwMCwgCiAgICBjaGFyc2V0X2lkPWNoYXJzZXRfaWRAZW50 cnk9LTEsIGZhbGxiYWNrPWZhbGxiYWNrQGVudHJ5PWZhbHNlKSBhdCBmb250c2V0LmM6NTU1CjU1 NSAgICAgICBzdHJ1Y3QgZnJhbWUgKmYgPSAoRlJBTUVQIChGT05UU0VUX0ZSQU1FIChmb250c2V0 KSkKIytlbmRfZXhwb3J0CgoKCgoKd2hlbiBJIHJ1biBhIG1vcmUgcmVjZW50IEVtYWNzIDMwIHdp dGhvdWcgc3BlY2lmeWluZyAtLXdpdGhvdXQtYWxsIHRoZW4gbm8gZGVmZWN0IHNlZW0gcHJlc2Vu dAojK2JlZ2luX2V4cG9ydAotLXByZWZpeD0vaG9tZS91c2VyLy5sb2NhbC9lbWFjcy1oZWFkLTBk MmZkZjZlMzZkMzVlN2FiNjRkODg5NGU4ZDRjMjdiMGNjMDY4NzUvaW5zdCAtLXdpdGgtZ2lmPW5v IC0td2l0aC1pbmNsdWRlZC1yZWdleCAtLXdpdGgtanBlZz1ubyAtLXdpdGgtanNvbj15ZXMgLS13 aXRoLW1haWx1dGlscz1ubyAtLXdpdGgtbWFrZWluZm89bm8gLS13aXRoLW1vZHVsZXMgLS13aXRo LXJzdmc9bm8gLS13aXRoLXRocmVhZHMgLS13aXRoLXRpZmY9bm8gLS13aXRoLXhtbDI9eWVzIC0t d2l0aG91dC1ncG0gLS13aXRob3V0LWdzZXR0aW5ncyAtLXdpdGhvdXQtaW1hZ2VtYWdpY2sgLS13 aXRob3V0LWphdmFzY3JpcHQgLS13aXRob3V0LXNvdW5kCiMrZW5kX2V4cG9ydAoKIytiZWdpbl9z cmMgc2gKICBQQVRIPSIvaG9tZS91c2VyLy5sb2NhbC9lbWFjcy1oZWFkLTBkMmZkZjZlMzZkMzVl N2FiNjRkODg5NGU4ZDRjMjdiMGNjMDY4NzUvaW5zdC9iaW46JHtQQVRIfSIgZ2RiIC0tZXggcnVu IC0tYXJncyBlbWFjcyAtUSB+L2V4YW1wbGVmaWxld2l0aHVuaWNvZGV0ZXh0IC0tZXZhbCAiKHJ1 bi1hdC10aW1lIDEgJygpIChsYW1iZGEoKSAoZG90aW1lcyAoaSAxMCkgKHRleHQtc2NhbGUtYWRq dXN0IDEpKSkpIgojK2VuZF9zcmMKCgo= --b1_q7YBIOlyNZJ1qIRA8KqyTNlS4ABEO9KjdlIc9gqsx0-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 23:25:59 2023 Received: (at 63283) by debbugs.gnu.org; 5 May 2023 03:26:00 +0000 Received: from localhost ([127.0.0.1]:52577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pum51-0007KC-IY for submit@debbugs.gnu.org; Thu, 04 May 2023 23:25:59 -0400 Received: from netyu.xyz ([152.44.41.246]:60088 helo=mail.netyu.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pum4y-0007K1-5K for 63283@debbugs.gnu.org; Thu, 04 May 2023 23:25:57 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id d8f3010e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 5 May 2023 03:25:54 +0000 (UTC) References: User-agent: mu4e 1.9.22; emacs 30.0.50 From: Ruijie Yu To: Seppo Ronkainen Subject: Re: bug#63283: Emacs crash within fontset Date: Fri, 05 May 2023 11:19:35 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63283 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Seppo Ronkainen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Honorable GNU developers ! > > For some reason the new Emacs 29.0.90 did not build at work the other day unless I provided configuration option --without-all (I plan to look > into why later but that is not why I am writing this report now). > > When I experimented with Emacs (29.0.90 --without-all) I noticed a crash defect that was easy to reproduce. It seemed to have with fonts to do. > I have noticed the same problem both at work CentOS 7.9 and at home (currently on a raspberry pi 4) not that it matters but anyhow several > machines / architectures. The problem seemed non-present when I built Emacs without configuration option --without-all > > I attach details about my findings in an org file, hope it helps Not quite sure if this is a bug per-se, since there are some of the default configurations concerning fonts, which you have deliberately disabled. This is the value of `system-configuration-features' on my build: --8<---------------cut here---------------start------------->8--- "ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB" --8<---------------cut here---------------end--------------->8--- Someone more qualified may be able to answer which feature(s) exactly are needed for having fonts work correctly. What is the value of this variable on a `--without-all' build? And does the issue occur on both GUI ("emacs -Q") session and TUI ("emacs -Q -nw") session? -- Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- still investigating.] From debbugs-submit-bounces@debbugs.gnu.org Fri May 05 00:36:20 2023 Received: (at 63283) by debbugs.gnu.org; 5 May 2023 04:36:20 +0000 Received: from localhost ([127.0.0.1]:52809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1punB5-0001Nt-Kv for submit@debbugs.gnu.org; Fri, 05 May 2023 00:36:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1punB1-0001Nd-V1 for 63283@debbugs.gnu.org; Fri, 05 May 2023 00:36:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1punAw-0003ax-OQ; Fri, 05 May 2023 00:36:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hWrtBkh/pAgaUtOr8zp6IdwkA4Nj5l9rmkgKZY91yJ8=; b=BH/yahrF+LbA 4X+syc4Fi1JyViXg6xNe+fEss8PjwGd0/xLL3prD2mMAYFuuKhJmR5X6iuAEp42o3Rr9Z/qGfxvum 1BhjkS7bNBAu9WH3VRRVl5C7ssT5H+07pHjANrT12eRFH0KEc3Y3d4SJ/q1nfBF+vGUHjyg6NefKq VA5sdJcmmWUa43qFuY50E8hdtX1JUElvKjvwfAcFwchiyNeGq3Bp1KcFCqqUfY3uFca/q8dnrkM+J h+OO3Za/gA7lizOwGfuXFAw6DKPxuYIb7O1W7YIxntFZDogfVq9BpND+79pwQ2eVW15SLbbPbni5S Qi9VQz7RMEpyoMkKlncYJA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1punAw-0000yN-7c; Fri, 05 May 2023 00:36:10 -0400 Date: Fri, 05 May 2023 07:37:02 +0300 Message-Id: <83wn1njswh.fsf@gnu.org> From: Eli Zaretskii To: Seppo Ronkainen In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#63283: Emacs crash within fontset References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63283 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 04 May 2023 19:04:48 +0000 > From: Seppo Ronkainen via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > run Emacs without configuration and after one second increase the font size a few times > #+begin_src sh > PATH="/home/user/.local/emacs-29.0.90_minimal/inst/bin:${PATH}" gdb --ex run --args emacs -Q ~/examplefilewithunicodetext --eval "(run-at-time 1 '() (lambda() (dotimes (i 10) (text-scale-adjust 1))))" > #+end_src > > expected behavior: emacs resizes the font > > observed behavior: gdb reports emacs defect in fontset.c on line 555 > src/fontset.c:549 > #+begin_src c > /* 549 */ static Lisp_Object > /* 550 */ fontset_find_font (Lisp_Object fontset, int c, struct face /* *fa */ce, > /* 551 */ int charset_id, bool fallback) > /* 552 */ { > /* 553 */ Lisp_Object vec, font_group; > /* 554 */ int i, charset_matched = 0, found_index; > /* 555 */ struct frame *f = (FRAMEP (FONTSET_FRAME (fontset)) > /* 556 */ ? XFRAME (FONTSET_FRAME (fontset)) > /* 557 */ : XFRAME (selected_frame)); > #+end_src > > #+begin_export > 0x00000055557864c8 in fontset_find_font (fontset=fontset@entry=0x20, c=c@entry=12302, face=face@entry=0x5556519100, > charset_id=charset_id@entry=-1, fallback=fallback@entry=false) at fontset.c:555 > 555 struct frame *f = (FRAMEP (FONTSET_FRAME (fontset)) > #+end_export What do you mean by "gdb reports emacs defect"? Please show the complete GDB session, including everything that GDB shows on screen. Also please send the data about your Emacs and system configuration, as collected by "M-x report-emacs-bug RET". Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat May 06 06:19:24 2023 Received: (at 63283) by debbugs.gnu.org; 6 May 2023 10:19:24 +0000 Received: from localhost ([127.0.0.1]:59487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvF0e-0000Jr-6U for submit@debbugs.gnu.org; Sat, 06 May 2023 06:19:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvF0a-0000Ja-MC for 63283@debbugs.gnu.org; Sat, 06 May 2023 06:19:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvF0U-0006Ae-W1; Sat, 06 May 2023 06:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+B2jT5B0/2eC2i+ox36lR0MUxTi44c3M46CEXjBWD9I=; b=mdG63CtuZ+sl H6izoVIKBAxSSJy+4iGPFcneHpxOGNAyqX95VsAe9BIv9XHmZ+3Xif3Iv623OTnIwREzRjTePdCu2 uNM4SUWIcQX65XK8zQd1dZO8CDd3s9Ild1b2TFRozVLzQxhuFzG5y6B96tpJE+9l6cKczqx0mGYYG W5LHcF9OnMjSVyxr7ZUgZlLrzus65IFot0PY+aDUHBoX88fnsPcg2nseX6sNwMMqM3t8xEJ1vfluR y+QymUnbhX928G14saG8cCBYDRS9Ce115CqwVmxBI6jH1oGeqWtxsNJYePj5xOFtLSutKnprl3khO ZVgpMtuoh7cPYB66cAe0qA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvF0U-0005nr-GG; Sat, 06 May 2023 06:19:14 -0400 Date: Sat, 06 May 2023 13:20:09 +0300 Message-Id: <835y95hicm.fsf@gnu.org> From: Eli Zaretskii To: Seppo Ronkainen In-Reply-To: (message from Seppo Ronkainen on Fri, 05 May 2023 21:19:18 +0000) Subject: Re: bug#63283: Emacs crash within fontset References: <83wn1njswh.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63283 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [Please use Reply All to reply, so that the bug address is on the CC list, and this discussion is recorded by our bug tracker.] > Date: Fri, 05 May 2023 21:19:18 +0000 > From: Seppo Ronkainen > > I was not aware about report-emacs-bug thanks for the guidance > > Following instructions from (share/emacs/29.0.90/etc/DEBUG:19) I rebuilt with options > > ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \ > CFLAGS='-O0 -g3' > > > > TL;DR > Now it looks as if (of course) Emacs never crashed, but it seems as if insufficient font data caused an abort is that right? Hope this helps > > fontset.c:970: Emacs fatal error: assertion failed: fontset_id_valid_p (face->fontset) > Fatal error 6: Aborted Thanks, but this is not enough info to find the root cause of the problem. Please run Emacs under GDB, like this: $ gdb /path/to/src/emacs ... (gdb) run Then, when Emacs crashes or aborts, GDB will kick in and show its "(gdb)" prompt. Please type at the GDB prompt: (gdb) thread apply all bt and post here everything that GDB prints in response. Also, please show what this displays inside Emacs built --without-all: M-: system-configuration-features RET From debbugs-submit-bounces@debbugs.gnu.org Sat May 06 15:32:39 2023 Received: (at 63283) by debbugs.gnu.org; 6 May 2023 19:32:39 +0000 Received: from localhost ([127.0.0.1]:35807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvNe2-0005Mw-VN for submit@debbugs.gnu.org; Sat, 06 May 2023 15:32:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvNdz-0005Mh-GJ for 63283@debbugs.gnu.org; Sat, 06 May 2023 15:32:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvNdr-0003ab-LE; Sat, 06 May 2023 15:32:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=G9ZGfV/E7MRcl/MDElfucm3nORm9b4PzNMnrJarF0v8=; b=HVYY6HBTV7gl PKMcWUkaqoWOyYeeqOLeHWDgYKX7qRux1MGts0VjmYUokxVRrtLwChx+F7BBVdjsKm997RNz3fa5K FOg1RC3SwXDkO7mqMCZD4zVyF8zuq30Qe8kBHE/yryv7dDVNGPvpF3B1Jy7nVwKSr1ZjK+AVRcWsF Az9o/38B9ICR+8kzPqq6xpAwCUK1c926SBfjNM9WtXLqv6k4uX7quA0Urc7CKbnQI9OE7b8K+VSdg uY5BTnBX5MF09RkvKM55fybpLx14Jxg9hngEmcbE7JSp3TiWOg73uDfcmBQc6gObYqGYGF/SKic7h 3n/mVM0bFuOMOZFdIlJvhA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvNdr-0004DO-3X; Sat, 06 May 2023 15:32:27 -0400 Date: Sat, 06 May 2023 22:33:23 +0300 Message-Id: <835y95fe64.fsf@gnu.org> From: Eli Zaretskii To: Seppo Ronkainen In-Reply-To: <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> (message from Seppo Ronkainen on Sat, 06 May 2023 19:12:53 +0000) Subject: Re: bug#63283: Emacs crash within fontset References: <83wn1njswh.fsf@gnu.org> <835y95hicm.fsf@gnu.org> <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63283 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 06 May 2023 19:12:53 +0000 > From: Seppo Ronkainen > Cc: 63283@debbugs.gnu.org > > sure, here are captures of gdb and system-configuration-features from two build variants of 29.0.90 and one 26.3 Thanks. Please repeat this session again, and this time, when Emacs aborts and GDB shows its prompt, do this: (gdb) thread 1 (gdb) pp fontset If GDB says that it doesn't know the command "pp", type (gdb) source /path/to/emacs/src/.gdbinit (gdb) pp fontset and post everything GDB prints after that. And one more data point: in the same session do this: (gdb) frame 2 (gdb) print font_driver_list (gdb) print f->font_driver_list and show the values GDB prints. From debbugs-submit-bounces@debbugs.gnu.org Sun May 07 02:48:00 2023 Received: (at 63283) by debbugs.gnu.org; 7 May 2023 06:48:01 +0000 Received: from localhost ([127.0.0.1]:36231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvYBc-0008C4-Hx for submit@debbugs.gnu.org; Sun, 07 May 2023 02:48:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvYBZ-0008B5-00 for 63283@debbugs.gnu.org; Sun, 07 May 2023 02:47:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvYBT-00051W-My; Sun, 07 May 2023 02:47:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=R1UMXcpWA5Ay6GKkid1FxDv8BOhZbBeHU0vqWrCbx8s=; b=K2odQuRsLTF+ vJbDTGi5SrYFrhc20tENNd14BcdEi85/rmbaePO8t8GqQ51qIwnZ5IUQz3CJqeI2kHrRrwljiSD5F ZEsoTDomTibnxmt8qXEDlewcp5KJRQUEBk+b9yEsYT4iliSE4qqGqVV2WjfpO28j1WkXyhwg4Ne6q avoN6wpYa2bbgfJeo3HTZOCkizurOM12dGGXR7Jidj9ZBp5HgrFqStyWgLErQcr2cYIX73pqOaTBu p41p+0NnpraBB+h7Z+423b/KRqE8RLZKQfOBU9fSJB/4UheLygJE7x6UwOby1OZw0VaEwWKPqlgHP 73G26gfuzDniGNo2voWttA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvYBT-0004im-6Q; Sun, 07 May 2023 02:47:51 -0400 Date: Sun, 07 May 2023 09:48:48 +0300 Message-Id: <83ttwoeiwf.fsf@gnu.org> From: Eli Zaretskii To: Seppo Ronkainen In-Reply-To: (message from Seppo Ronkainen on Sat, 06 May 2023 22:36:35 +0000) Subject: Re: bug#63283: Emacs crash within fontset References: <83wn1njswh.fsf@gnu.org> <835y95hicm.fsf@gnu.org> <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> <835y95fe64.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63283 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 06 May 2023 22:36:35 +0000 > From: Seppo Ronkainen > Cc: 63283@debbugs.gnu.org > > (gdb) frame 2 > #2 0x00000055559233c4 in face_for_char (f=0x55564c8470, face=0x5556292b90, c=12302, pos=1, object=XIL(0)) at fontset.c:970 > 970 eassert (fontset_id_valid_p (face->fontset)); > (gdb) info locals > fontset = XIL(0) > rfont_def = XIL(0x555605b2b8) > charset = XIL(0x300effff7380) > face_id = 85 > id = 1432078920 > (gdb) print font_driver_list > $1 = (struct font_driver_list *) 0x55560d77e0 > (gdb) print f->font_driver_list > $2 = (struct font_driver_list *) 0x5556274ae0 > (gdb) frame 3 > #3 0x00000055555bd308 in FACE_FOR_CHAR (f=0x55564c8470, face=0x5556292b90, character=12302, pos=1, object=XIL(0)) at dispextern.h:1911 > (gdb) p face->font > $5 = (struct font *) 0x0 > (gdb) p face->fontset > $6 = -1 > (gdb) q Thanks. If you apply the patch below, does it avoid the abort? > relevant commit ? > 3c0dda2663e38635163f0fd6c19748c6eba1c3c8 > Avoid asserting for fontset validity before it is used No, I don't think so. We'd just abort earlier in that function. diff --git a/src/fontset.c b/src/fontset.c index f196dee..e004cd9 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -967,6 +967,9 @@ face_for_char (struct frame *f, struct face *face, int c, #endif } + if (face->fontset < 0 && !face->font) + return face->id; + eassert (fontset_id_valid_p (face->fontset)); fontset = FONTSET_FROM_ID (face->fontset); eassert (!BASE_FONTSET_P (fontset)); From debbugs-submit-bounces@debbugs.gnu.org Sun May 07 05:32:17 2023 Received: (at 63283) by debbugs.gnu.org; 7 May 2023 09:32:17 +0000 Received: from localhost ([127.0.0.1]:36429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvakZ-0004Py-7a for submit@debbugs.gnu.org; Sun, 07 May 2023 05:32:16 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:50525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvNLE-0004r1-0i for 63283@debbugs.gnu.org; Sat, 06 May 2023 15:13:13 -0400 Date: Sat, 06 May 2023 19:12:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1683400385; x=1683659585; bh=yz70+dgJlnIYiskdreVLBO+QSdhDHLZ+HjiwMrfb7XA=; 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=UlSwpSzbmbTYgp4dY7vttMYX1Xq2E1fJXuPw2xvo+Scd816ZrdGPtMdsO46rQrpXO 8dwnegbUTW+AYd9dC2yL2ahurRA9VF8ACJ3/cUQjmITVEu1siSvmlV7v8Qv6SdFAEd kiv3gpYAR/exUuaqNAyxt041iP86LBok2a9OVyT8vFnxh8IsXRim5HZaKkKpHTF6/x RVheS6/vguqnFYj181rIMayOd7zvXqhOi3MFYcnBCST718N43JiBgp7JMoZfLCRVo5 s7Zp6B2ihIYNxHG0CsuHodAAOJG1NA6kghBujgspflGIDfecRDtGu/pv/oh6alusfo yDOP0ch/foH7g== To: Eli Zaretskii From: Seppo Ronkainen Subject: Re: bug#63283: Emacs crash within fontset Message-ID: <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> In-Reply-To: <835y95hicm.fsf@gnu.org> References: <83wn1njswh.fsf@gnu.org> <835y95hicm.fsf@gnu.org> Feedback-ID: 7916417:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 63283 X-Mailman-Approved-At: Sun, 07 May 2023 05:32:14 -0400 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) sure, here are captures of gdb and system-configuration-features from two b= uild variants of 29.0.90 and one 26.3 /home/user/.local/emacs-29.0.90_minimal/inst/bin/emacs -Q ~/examplefilewith= unicodetext (describe-variable 'system-configuration-features) system-configuration-features is a variable defined in =E2=80=98src/emacs.c= =E2=80=99. Its value is "GLIB GMP JSON PDUMPER SECCOMP X11 XIM GTK3" String listing some of the main features this Emacs was compiled with. An element of the form "FOO" generally means that HAVE_FOO was defined during the build. This is mainly intended for diagnostic purposes in bug reports. Don=E2=80=99t rely on it for testing whether a feature you want to use is a= vailable. Probably introduced at or before Emacs version 25.1. [back] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs -Q ~/examplefilewithun= icodetext (describe-variable 'system-configuration-features) system-configuration-features is a variable defined in =E2=80=98C source co= de=E2=80=99. Its value is "GLIB GMP JSON PDUMPER SECCOMP X11 XIM GTK3" String listing some of the main features this Emacs was compiled with. An element of the form "FOO" generally means that HAVE_FOO was defined during the build. This is mainly intended for diagnostic purposes in bug reports. Don=E2=80=99t rely on it for testing whether a feature you want to use is a= vailable. Probably introduced at or before Emacs version 25.1. /home/user/.local/emacs-29.0.90_minimal/cons/src/config.h:128 /* Summary of some of the main features enabled by configure. */ #define EMACS_CONFIG_FEATURES "GLIB GMP JSON PDUMPER SECCOMP X11 XIM GTK3" /* Define to the options passed to configure. */ #define EMACS_CONFIG_OPTIONS "--prefix=3D/home/user/.local/emacs-29.0.90_mi= nimal/inst --without-all" > gdb --args /home/user/.local/emacs-29.0.90_minimal/inst/bin/emacs -Q ~/ex= amplefilewithunicodetext GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/user/.local/emacs-29.0.90_minimal/inst/bin/emacs= ... (gdb) run Starting program: /home/user/.local/emacs-29.0.90_minimal/inst/bin/emacs -Q= /home/user/examplefilewithunicodetext [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff4a6fe80 (LWP 44415)] [Detaching after vfork from child process 44416] [Detaching after vfork from child process 44417] [Detaching after vfork from child process 44418] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x00000055557864c8 in fontset_find_font (fontset=3Dfontset@entry=3D0x30, c= =3Dc@entry=3D12302, face=3Dface@entry=3D0x555664ee90,=20 charset_id=3Dcharset_id@entry=3D-1, fallback=3Dfallback@entry=3Dfalse) = at fontset.c:555 555 struct frame *f =3D (FRAMEP (FONTSET_FRAME (fontset)) (gdb) thread apply all bt Thread 2 (Thread 0x7ff4a6fe80 (LWP 44415) "gmain"): #0 0x0000007ff6fa6ef4 in __GI___poll (fds=3D0x5555dd25c0, nfds=3D1, timeou= t=3D) at ../sysdeps/unix/sysv/linux/poll.c:41 #1 0x0000007ff74b7df8 in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0 #2 0x0000007ff74b7f24 in g_main_context_iteration () at /lib/aarch64-linux= -gnu/libglib-2.0.so.0 #3 0x0000007ff74b7f7c in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0 #4 0x0000007ff74e18f4 in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0 #5 0x0000007ff71d4648 in start_thread (arg=3D0x7ff4a6f780) at pthread_crea= te.c:477 #6 0x0000007ff6fb0c1c in thread_start () at ../sysdeps/unix/sysv/linux/aar= ch64/clone.S:78 Thread 1 (Thread 0x7ff5d6f700 (LWP 44408) "emacs"): #0 0x00000055557864c8 in fontset_find_font (fontset=3Dfontset@entry=3D0x30= , c=3Dc@entry=3D12302, face=3Dface@entry=3D0x555664ee90, charset_id=3Dchars= et_id@entry=3D-1, fallback=3Dfallback@entry=3Dfalse) at fontset.c:555 #1 0x0000005555787240 in fontset_font (fontset=3Dfontset@entry=3D0x30, c= =3Dc@entry=3D12302, face=3Dface@entry=3D0x555664ee90, id=3D-1) at fontset.c= :766 #2 0x0000005555787938 in face_for_char (f=3D0x5556159e50, face=3D0x555664e= e90, c=3D, pos=3D, object=3D) = at fontset.c:995 = = =20 #3 0x00000055555c45d8 in FACE_FOR_CHAR (object=3D, pos=3D, character=3D, face=3D, f=3D) at dispextern.h:1911 =20 #4 get_next_display_element (it=3Dit@entry=3D0x7fffff8978) at xdisp.c:8184 #5 0x00000055555c9988 in display_line (it=3Dit@entry=3D0x7fffff8978, curso= r_vpos=3Dcursor_vpos@entry=3D0) at xdisp.c:24708 #6 0x00000055555cda60 in try_window (window=3Dwindow@entry=3D0x555615a09d,= pos=3D..., flags=3Dflags@entry=3D1) at xdisp.c:20577 #7 0x00000055555e8cd0 in redisplay_window (window=3D, just_= this_one_p=3Djust_this_one_p@entry=3Dfalse) at xdisp.c:19961 #8 0x00000055555eac14 in redisplay_window_0 (window=3Dwindow@entry=3D0x555= 615a09d) at xdisp.c:17446 #9 0x0000005555713234 in internal_condition_case_1 (bfun=3Dbfun@entry=3D0x= 55555eabe0 , arg=3Darg@entry=3D0x555615a09d, handlers= =3D, hfun=3Dhfun@entry=3D0x55555aa300 ) at eval.c:1498 #10 0x00000055555a7348 in redisplay_windows (window=3D0x555615a09d) at xdis= p.c:17416 #11 0x00000055555d6720 in redisplay_internal () at xdisp.c:16866 #12 0x00000055555d7a44 in redisplay () at xdisp.c:16049 #13 0x000000555569b6b0 in read_char (commandflag=3Dcommandflag@entry=3D1, m= ap=3Dmap@entry=3D0x55560ddf03, prev_event=3D0x0, used_mouse_menu=3Dused_mou= se_menu@entry=3D0x7fffffe013, end_time=3Dend_time@entry=3D0x0) at keyboard.= c:2634 #14 0x000000555569d780 in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7fff= ffe140, prompt=3Dprompt@entry=3D0x0, dont_downcase_last=3Ddont_downcase_las= t@entry=3Dfalse, can_return_switch_frame=3Dcan_return_switch_frame@entry=3D= true, fix_current_buffer=3Dfix_current_buffer@entry=3Dtrue, prevent_redispl= ay=3Dprevent_redisplay@entry=3Dfalse) at keyboard.c:10081 #15 0x000000555569f19c in command_loop_1 () at lisp.h:1165 #16 0x00000055557131a0 in internal_condition_case (bfun=3Dbfun@entry=3D0x55= 5569f004 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@en= try=3D0x5555693030 ) at eval.c:1474 =20 #17 0x000000555568c378 in command_loop_2 (handlers=3Dhandlers@entry=3D0x90)= at keyboard.c:1131 #18 0x00000055557130f4 in internal_catch (tag=3Dtag@entry=3D0xf390, func=3D= func@entry=3D0x555568c344 , arg=3Darg@entry=3D0x90) at eval= .c:1197 #19 0x000000555568c310 in command_loop () at lisp.h:1165 #20 0x0000005555692b44 in recursive_edit_1 () at keyboard.c:718 #21 0x0000005555692f54 in Frecursive_edit () at keyboard.c:801 #22 0x000000555558cecc in main (argc=3D3, argv=3D0x7fffffe638) at emacs.c:2= 529 (gdb) q A debugging session is active. Inferior 1 [process 44408] will be killed. Quit anyway? (y or n) y > exit exit Process terminal finished /home/user/.local/emacs-29.0.90_debug/cons/src/config.h:128 /* Summary of some of the main features enabled by configure. */ #define EMACS_CONFIG_FEATURES "GLIB GMP JSON PDUMPER SECCOMP X11 XIM GTK3" /* Define to the options passed to configure. */ #define EMACS_CONFIG_OPTIONS "--prefix=3D/home/user/.local/emacs-29.0.90_de= bug/inst --without-all --enable-checking=3Dyes,glyphs --enable-check-lisp-o= bject-type 'CFLAGS=3D-O0 -g3'" > gdb --args /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs -Q ~/exam= plefilewithunicodetext GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs..= . (gdb) run Starting program: /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs -Q /= home/user/examplefilewithunicodetext [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff4a6fe80 (LWP 44369)] [Detaching after vfork from child process 44370] [Detaching after vfork from child process 44371] [Detaching after vfork from child process 44372] fontset.c:970: Emacs fatal error: assertion failed: fontset_id_valid_p (fac= e->fontset) Fatal error 6: Aborted Backtrace: /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x246468)[0x555579646= 8] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x205cc0)[0x5555755cc= 0] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x2cba04)[0x555581ba0= 4] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x3d33c4)[0x55559233c= 4] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x6d308)[0x55555bd308= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x8d054)[0x55555dd054= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xc1a10)[0x5555611a10= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xb3424)[0x5555603424= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xb059c)[0x555560059c= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xa7740)[0x55555f7740= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x30be18)[0x555585be1= 8] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xa73b0)[0x55555f73b0= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xa5b74)[0x55555f5b74= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0xa314c)[0x55555f314c= ] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x213e58)[0x5555763e5= 8] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x229ba4)[0x5555779ba= 4] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x20f678)[0x555575f67= 8] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x30bd14)[0x555585bd1= 4] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x20ecfc)[0x555575ecf= c] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x30ae0c)[0x555585ae0= c] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x20ec7c)[0x555575ec7= c] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x20ddbc)[0x555575ddb= c] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x20e028)[0x555575e02= 8] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x208d90)[0x5555758d9= 0] /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8)[0x7ff6efee18] /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs(+0x3b368)[0x555558b368= ] Thread 1 "emacs" received signal SIGABRT, Aborted. raise (sig=3D6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) thread apply all bt Thread 2 (Thread 0x7ff4a6fe80 (LWP 44369) "gmain"): #0 0x0000007ff6fa6ef4 in __GI___poll (fds=3D0x555611e270, nfds=3D1, timeou= t=3D) at ../sysdeps/unix/sysv/linux/poll.c:41 #1 0x0000007ff74b7df8 in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0 #2 0x0000007ff74b7f24 in g_main_context_iteration () at /lib/aarch64-linux= -gnu/libglib-2.0.so.0 #3 0x0000007ff74b7f7c in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0 #4 0x0000007ff74e18f4 in () at /lib/aarch64-linux-gnu/libglib-2.0.so.0 #5 0x0000007ff71d4648 in start_thread (arg=3D0x7ff4a6f780) at pthread_crea= te.c:477 #6 0x0000007ff6fb0c1c in thread_start () at ../sysdeps/unix/sysv/linux/aar= ch64/clone.S:78 Thread 1 (Thread 0x7ff5d6f700 (LWP 44362) "emacs"): #0 raise (sig=3D6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x0000005555755cf0 in terminate_due_to_signal (sig=3D6, backtrace_limit= =3D2147483647) at emacs.c:464 #2 0x000000555581ba04 in die (msg=3D0x55559f6900 "fontset_id_valid_p (face= ->fontset)", file=3D0x55559f6608 "fontset.c", line=3D970) at alloc.c:7707 #3 0x00000055559233c4 in face_for_char (f=3D0x55564e70f0, face=3D0x5556ac9= 5e0, c=3D12302, pos=3D1, object=3D...) at fontset.c:970 #4 0x00000055555bd308 in FACE_FOR_CHAR (f=3D0x55564e70f0, face=3D0x5556ac9= 5e0, character=3D12302, pos=3D1, object=3D...) at dispextern.h:1911 #5 0x00000055555dd054 in get_next_display_element (it=3D0x7fffff8818) at x= disp.c:8184 #6 0x0000005555611a10 in display_line (it=3D0x7fffff8818, cursor_vpos=3D0)= at xdisp.c:24708 #7 0x0000005555603424 in try_window (window=3D..., pos=3D..., flags=3D1) a= t xdisp.c:20577 #8 0x000000555560059c in redisplay_window (window=3D..., just_this_one_p= =3Dfalse) at xdisp.c:19961 #9 0x00000055555f7740 in redisplay_window_0 (window=3D...) at xdisp.c:1744= 6 #10 0x000000555585be18 in internal_condition_case_1 (bfun=3D0x55555f76fc , arg=3D..., handlers=3D..., hfun=3D0x55555f73e8 ) at eval.c:1498 =20 #11 0x00000055555f73b0 in redisplay_windows (window=3D...) at xdisp.c:17416 #12 0x00000055555f5b74 in redisplay_internal () at xdisp.c:16866 #13 0x00000055555f314c in redisplay () at xdisp.c:16049 #14 0x0000005555763e58 in read_char (commandflag=3D1, map=3D..., prev_event= =3D..., used_mouse_menu=3D0x7fffffdf17, end_time=3D0x0) at keyboard.c:2634 #15 0x0000005555779ba4 in read_key_sequence (keybuf=3D0x7fffffe098, prompt= =3D..., dont_downcase_last=3Dfalse, can_return_switch_frame=3Dtrue, fix_cur= rent_buffer=3Dtrue, prevent_redisplay=3Dfalse) at keyboard.c:10081 #16 0x000000555575f678 in command_loop_1 () at keyboard.c:1382 #17 0x000000555585bd14 in internal_condition_case (bfun=3D0x555575f1dc , handlers=3D..., hfun=3D0x555575e464 ) at eval.c:14= 74 #18 0x000000555575ecfc in command_loop_2 (handlers=3D...) at keyboard.c:113= 1 #19 0x000000555585ae0c in internal_catch (tag=3D..., func=3D0x555575ecd4 , arg=3D...) at eval.c:1197 #20 0x000000555575ec7c in command_loop () at keyboard.c:1109 #21 0x000000555575ddbc in recursive_edit_1 () at keyboard.c:718 #22 0x000000555575e028 in Frecursive_edit () at keyboard.c:801 #23 0x0000005555758d90 in main (argc=3D3, argv=3D0x7fffffe638) at emacs.c:2= 529 (gdb) q A debugging session is active. Inferior 1 [process 44362] will be killed. Quit anyway? (y or n) y > exit exit Process terminal finished attempts to reproduce the abort within Emacs 26.3 built with the feature FR= EETYPE (was reported in the output): /home/user/.local/emacs-26.3/inst/bin/emacs-26.3 -Q ~/examplefilewithunicod= etext (describe-variable 'system-configuration-features) system-configuration-features is a variable defined in =E2=80=98C source co= de=E2=80=99. Its value is "XPM PNG SOUND DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYP= E XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS" Documentation: String listing some of the main features this Emacs was compiled with. An element of the form "FOO" generally means that HAVE_FOO was defined during the build. This is mainly intended for diagnostic purposes in bug reports. Don=E2=80=99t rely on it for testing whether a feature you want to use is a= vailable. /home/user/.local/emacs-26.3/cons/src/config.h:117 /* Define to the canonical Emacs configuration name. */ #define EMACS_CONFIGURATION "aarch64-unknown-linux-gnu" /* Summary of some of the main features enabled by configure. */ #define EMACS_CONFIG_FEATURES "XPM PNG SOUND DBUS GSETTINGS GLIB NOTIFY LIB= SELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE = XIM MODULES THREADS" /* Define to the options passed to configure. */ #define EMACS_CONFIG_OPTIONS "--prefix=3D/home/user/.local/emacs-26.3/inst = --with-gif=3Dno --with-included-regex --with-jpeg=3Dno --with-json=3Dyes --= with-mailutils=3Dyes --with-makeinfo=3Dno --with-modules --with-rsvg=3Dno -= -with-threads --with-tiff=3Dno --with-xml2=3Dyes" I rescale the buffer back and forth several times with C-x C-0, C-x C-=3D, C-x C--, C-x C-+. (text-scale-adjust INC) to both limits which where indicated in the mode line (Fundamental -15) (Fundamental +29) > gdb --args /home/user/.local/emacs-26.3/inst/bin/emacs-26.3 -Q ~/examplef= ilewithunicodetext GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/user/.local/emacs-26.3/inst/bin/emacs-26.3... (gdb) run Starting program: /home/user/.local/emacs-26.3/inst/bin/emacs-26.3 -Q /home= /user/examplefilewithunicodetext [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff3354c40 (LWP 45101)] [Detaching after vfork from child process 45102] [Detaching after vfork from child process 45103] [Detaching after vfork from child process 45104] [New Thread 0x7ff2890c40 (LWP 45105)] [New Thread 0x7ff1f00c40 (LWP 45106)] [Thread 0x7ff1f00c40 (LWP 45106) exited] [Thread 0x7ff3354c40 (LWP 45101) exited] [Thread 0x7ff3681040 (LWP 45094) exited] [Inferior 1 (process 45094) exited normally] (gdb) q > exit exit Process terminal finished > uname -a Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023= aarch64 GNU/Linux % sha512sum emacs-29.0.90.tar.gz 5cbd47142ccd845b8da33f5c2cf62088b5076182a91e4cda7de6c5eef980743221705da8e6f= a825bc0f6e7dcc0625b78382bdd12e319e0ce76ec3d4690557696 emacs-29.0.90.tar.gz Live long and prosper Sent with Proton Mail secure email. ------- Original Message ------- On Saturday, May 6th, 2023 at 10:19 AM, Eli Zaretskii wrote: > [Please use Reply All to reply, so that the bug address is on the CC > list, and this discussion is recorded by our bug tracker.] >=20 > > Date: Fri, 05 May 2023 21:19:18 +0000 > > From: Seppo Ronkainen sodr80@protonmail.com > >=20 > > I was not aware about report-emacs-bug thanks for the guidance > >=20 > > Following instructions from (share/emacs/29.0.90/etc/DEBUG:19) I rebuil= t with options > >=20 > > ./configure --enable-checking=3D'yes,glyphs' --enable-check-lisp-object= -type \ > > CFLAGS=3D'-O0 -g3' > >=20 > > TL;DR > > Now it looks as if (of course) Emacs never crashed, but it seems as if = insufficient font data caused an abort is that right? Hope this helps > >=20 > > fontset.c:970: Emacs fatal error: assertion failed: fontset_id_valid_p = (face->fontset) > > Fatal error 6: Aborted >=20 >=20 > Thanks, but this is not enough info to find the root cause of the > problem. Please run Emacs under GDB, like this: >=20 > $ gdb /path/to/src/emacs > ... > (gdb) run >=20 > Then, when Emacs crashes or aborts, GDB will kick in and show its > "(gdb)" prompt. Please type at the GDB prompt: >=20 > (gdb) thread apply all bt >=20 > and post here everything that GDB prints in response. >=20 > Also, please show what this displays inside Emacs built --without-all: >=20 > M-: system-configuration-features RET From debbugs-submit-bounces@debbugs.gnu.org Sun May 07 05:32:17 2023 Received: (at 63283) by debbugs.gnu.org; 7 May 2023 09:32:17 +0000 Received: from localhost ([127.0.0.1]:36431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvaka-0004Q1-W1 for submit@debbugs.gnu.org; Sun, 07 May 2023 05:32:17 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:34773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvQWM-00027I-Fh for 63283@debbugs.gnu.org; Sat, 06 May 2023 18:36:55 -0400 Date: Sat, 06 May 2023 22:36:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1683412608; x=1683671808; bh=8hk/0zJ/yVPjymTLMVwtTIQfTKdOTuwaX62dy8xf9sc=; 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=NBI8eDpRqeIHzfthA7jduOIy1ZUFNRDV77bkySA8kah5mmMRcKDpE/oE0HhTXt00h AyZ2r/ZMOe3m0OOjorZNoN5W4bhm3+T8srLqDsc2xzs1y4IQZzmeCKAednM2gHdYLb ELxhjau9z9oAW7i/Db3rfPzf8XKRDHAQXJD1U6Ryz4xGIdwY+UoTiXdrQAUVTyJQdU AMFd+J5PRELh/BAMRSeY4tJCTe5QHaWBugPb8jIbzsogDG3rx/cRz5lprD/T4rWrNG LflyJat7cahs4HdZ96+7ZvN8uJDBd142QpDVKin2rj4WVtLWFnW2uig4QLjvSGgDnT GgEyidctkPDFg== To: Eli Zaretskii From: Seppo Ronkainen Subject: Re: bug#63283: Emacs crash within fontset Message-ID: In-Reply-To: <835y95fe64.fsf@gnu.org> References: <83wn1njswh.fsf@gnu.org> <835y95hicm.fsf@gnu.org> <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> <835y95fe64.fsf@gnu.org> Feedback-ID: 7916417:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 63283 X-Mailman-Approved-At: Sun, 07 May 2023 05:32:14 -0400 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) more data % gdb --args /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs -Q ~/exam= plefilewithunicodetext GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs..= . (gdb) source /home/user/.local/emacs-29.0.90_debug/cons/src/.gdbinit Warning: /home/user/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from te= rminal] DISPLAY =3D :0 TERM =3D xterm Breakpoint 1 at 0x205be8: file emacs.c, line 427. Breakpoint 2 at 0x1c4388: file xterm.c, line 26126. (gdb) run Starting program: /home/user/.local/emacs-29.0.90_debug/inst/bin/emacs -Q /= home/user/examplefilewithunicodetext [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff4a8ee80 (LWP 52196)] (process:52189): Gtk-WARNING **: 21:29:18.069: Locale not supported by C li= brary. Using the fallback 'C' locale. [Detaching after vfork from child process 52197] [Detaching after vfork from child process 52198] [Detaching after vfork from child process 52199] fontset.c:970: Emacs fatal error: assertion failed: fontset_id_valid_p (fac= e->fontset) Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=3D6, backtr= ace_limit=3D2147483647) at emacs.c:427 427 signal (sig, SIG_DFL); (gdb) thread 1 [Switching to thread 1 (Thread 0x7ff5d6f700 (LWP 52189))] #0 terminate_due_to_signal (sig=3D6, backtrace_limit=3D2147483647) at emac= s.c:427 427 signal (sig, SIG_DFL); (gdb) bt 5 #0 terminate_due_to_signal (sig=3D6, backtrace_limit=3D2147483647) at emac= s.c:427 #1 0x000000555581ba04 in die (msg=3D0x55559f6900 "fontset_id_valid_p (face= ->fontset)", file=3D0x55559f6608 "fontset.c", line=3D970) at alloc.c:7707 #2 0x00000055559233c4 in face_for_char (f=3D0x55564c8470, face=3D0x5556292= b90, c=3D12302, pos=3D1, object=3DXIL(0)) at fontset.c:970 #3 0x00000055555bd308 in FACE_FOR_CHAR (f=3D0x55564c8470, face=3D0x5556292= b90, character=3D12302, pos=3D1, object=3DXIL(0)) at dispextern.h:1911 #4 0x00000055555dd054 in get_next_display_element (it=3D0x7fffff8a88) at x= disp.c:8184 (More stack frames follow...) Lisp Backtrace: "redisplay_internal (C function)" (0x0) (gdb) frame 2 #2 0x00000055559233c4 in face_for_char (f=3D0x55564c8470, face=3D0x5556292= b90, c=3D12302, pos=3D1, object=3DXIL(0)) at fontset.c:970 970 eassert (fontset_id_valid_p (face->fontset)); (gdb) info locals fontset =3D XIL(0) rfont_def =3D XIL(0x555605b2b8) charset =3D XIL(0x300effff7380) face_id =3D 85 id =3D 1432078920 (gdb) print font_driver_list $1 =3D (struct font_driver_list *) 0x55560d77e0 (gdb) print f->font_driver_list $2 =3D (struct font_driver_list *) 0x5556274ae0 (gdb) frame 3 #3 0x00000055555bd308 in FACE_FOR_CHAR (f=3D0x55564c8470, face=3D0x5556292= b90, character=3D12302, pos=3D1, object=3DXIL(0)) at dispextern.h:1911 (gdb) p face->font $5 =3D (struct font *) 0x0 (gdb) p face->fontset $6 =3D -1 (gdb) q if fontset carried -1 .. which in turn /home/user/.local/emacs-29.0.90_debug/cons/src/fontset.c:970 eassert (fontset_id_valid_p (face->fontset)); fontset =3D FONTSET_FROM_ID (face->fontset); eassert (!BASE_FONTSET_P (fontset)); /home/user/.local/emacs-29.0.90_debug/cons/src/fontset.c:176 static bool fontset_id_valid_p (int id) { return (id >=3D 0 && id < ASIZE (Vfontset_table) - 1); } relevant commit ? 3c0dda2663e38635163f0fd6c19748c6eba1c3c8 Avoid asserting for fontset validity before it is used Live long and prosper Sent with Proton Mail secure email. ------- Original Message ------- On Saturday, May 6th, 2023 at 7:32 PM, Eli Zaretskii wrote: > > Date: Sat, 06 May 2023 19:12:53 +0000 > > From: Seppo Ronkainen sodr80@protonmail.com > > Cc: 63283@debbugs.gnu.org > >=20 > > sure, here are captures of gdb and system-configuration-features from t= wo build variants of 29.0.90 and one 26.3 >=20 >=20 > Thanks. Please repeat this session again, and this time, when Emacs > aborts and GDB shows its prompt, do this: >=20 > (gdb) thread 1 > (gdb) pp fontset >=20 > If GDB says that it doesn't know the command "pp", type >=20 > (gdb) source /path/to/emacs/src/.gdbinit > (gdb) pp fontset >=20 > and post everything GDB prints after that. >=20 > And one more data point: in the same session do this: >=20 > (gdb) frame 2 > (gdb) print font_driver_list > (gdb) print f->font_driver_list >=20 >=20 > and show the values GDB prints. From debbugs-submit-bounces@debbugs.gnu.org Mon May 08 19:59:21 2023 Received: (at 63283) by debbugs.gnu.org; 8 May 2023 23:59:21 +0000 Received: from localhost ([127.0.0.1]:41888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwAlF-0004FL-3Y for submit@debbugs.gnu.org; Mon, 08 May 2023 19:59:21 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:56255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw8JS-00081K-IK for 63283@debbugs.gnu.org; Mon, 08 May 2023 17:22:31 -0400 Date: Mon, 08 May 2023 21:22:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1683580944; x=1683840144; bh=KOlpSgWb8jFvTMRKlPLH9CCtGjhVXMMBT5LMr85mAwI=; 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=nNWnEvpHyg3e9DdgdjVWj575rMceUK1nBYNSeH5NPXJgTmZN4su/VaKbgDuQ6YXL4 jg8nHCXJtqiMNaKadUfeYSuiU9Uqq9K/lfHAbRx6Yc6I3MunMqy4cL1zWgMXbiZ4bl KZHerEo85w6601482oRI0cwYE7i4jWxqDhUIWyRsCt875Rz1kOZEDofxxabxwUlrN9 5QtdlmB8OEg16ULOhlmS4qgR0Il7O4AfKiW5TqtAEgrF8F/0e/c0QQf5U/8Vftpco6 +a63/SMjr2ko6SOZlvY7NCwTXvRyp4wNY4UpbaSQsOuKaDjgiYKNQ2uez0GW7C/MbM NZTalWNRnWpGQ== To: Eli Zaretskii From: Seppo Ronkainen Subject: Re: bug#63283: Emacs crash within fontset Message-ID: In-Reply-To: <83ttwoeiwf.fsf@gnu.org> References: <83wn1njswh.fsf@gnu.org> <835y95hicm.fsf@gnu.org> <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> <835y95fe64.fsf@gnu.org> <83ttwoeiwf.fsf@gnu.org> Feedback-ID: 7916417:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 63283 X-Mailman-Approved-At: Mon, 08 May 2023 19:59:15 -0400 Cc: 63283@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Your suggested patch successfully avoided the abort, great ! Where the abort would previously occur now instead the buffer renders all c= haracters with four digit code point rectangular representations which I wo= uld consider preferable to an abort the entire emacs server session with th= irty or so windows. Tested with visiting a large file emacs/src/xdisp.c and= Emacs swapps back to render regular characters when text is scaled back. I= would vote for your suggested fix, well done thank you ! Live long and prosper Sent with Proton Mail secure email. ------- Original Message ------- On Sunday, May 7th, 2023 at 6:48 AM, Eli Zaretskii wrote: > > Date: Sat, 06 May 2023 22:36:35 +0000 > > From: Seppo Ronkainen sodr80@protonmail.com > > Cc: 63283@debbugs.gnu.org > >=20 > > (gdb) frame 2 > > #2 0x00000055559233c4 in face_for_char (f=3D0x55564c8470, face=3D0x5556= 292b90, c=3D12302, pos=3D1, object=3DXIL(0)) at fontset.c:970 > > 970 eassert (fontset_id_valid_p (face->fontset)); > > (gdb) info locals > > fontset =3D XIL(0) > > rfont_def =3D XIL(0x555605b2b8) > > charset =3D XIL(0x300effff7380) > > face_id =3D 85 > > id =3D 1432078920 > > (gdb) print font_driver_list > > $1 =3D (struct font_driver_list *) 0x55560d77e0 > > (gdb) print f->font_driver_list > > $2 =3D (struct font_driver_list *) 0x5556274ae0 > > (gdb) frame 3 > > #3 0x00000055555bd308 in FACE_FOR_CHAR (f=3D0x55564c8470, face=3D0x5556= 292b90, character=3D12302, pos=3D1, object=3DXIL(0)) at dispextern.h:1911 > > (gdb) p face->font > > $5 =3D (struct font *) 0x0 > > (gdb) p face->fontset > > $6 =3D -1 > > (gdb) q >=20 >=20 > Thanks. If you apply the patch below, does it avoid the abort? >=20 > > relevant commit ? > > 3c0dda2663e38635163f0fd6c19748c6eba1c3c8 > > Avoid asserting for fontset validity before it is used >=20 >=20 > No, I don't think so. We'd just abort earlier in that function. >=20 > diff --git a/src/fontset.c b/src/fontset.c > index f196dee..e004cd9 100644 > --- a/src/fontset.c > +++ b/src/fontset.c > @@ -967,6 +967,9 @@ face_for_char (struct frame *f, struct face *face, in= t c, > #endif > } >=20 > + if (face->fontset < 0 && !face->font) >=20 > + return face->id; >=20 > + > eassert (fontset_id_valid_p (face->fontset)); >=20 > fontset =3D FONTSET_FROM_ID (face->fontset); >=20 > eassert (!BASE_FONTSET_P (fontset)); From debbugs-submit-bounces@debbugs.gnu.org Tue May 09 01:25:10 2023 Received: (at 63283-done) by debbugs.gnu.org; 9 May 2023 05:25:10 +0000 Received: from localhost ([127.0.0.1]:42233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwFqY-00061r-5X for submit@debbugs.gnu.org; Tue, 09 May 2023 01:25:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwFqV-00061O-W1 for 63283-done@debbugs.gnu.org; Tue, 09 May 2023 01:25:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwFqP-0004eH-D1; Tue, 09 May 2023 01:25:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Oip6fslhbOHWIRDoi2M+txfENpKVv9oPtbRnPu4dWoQ=; b=YJ7UhdvmbfLJ KUhD1FyLzZLrpz7nLTF1f8HEkHdGd3MZltQqxysYGxilI5YeZaqy5oxBP8oBTW6UkxBSPLpSmCYVn wcB6JOwa7s6FCuqEnPP/y0LwNmT5p/OQmTgbPDl5PLDPYxWPwIXrnmUu5e1QqNgxShZ+JGsdDr535 caRlPRcphva78ZNYU+Fjgks+BoDBMXKNysnFoIsv/ukDzSs3A6sTy1kW5iQ7m9W4K77FrbqN7OjJ3 45qCaGDv2cYttRc4RDjNmkMUwN8y6JAbSpczqpm6V9nzkHdv/c1p2wvvekjxwJGHtU7Uv//R8KfWS Xa7I6BIb0mzjkXsdYnfDsA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwFqN-00051z-Nn; Tue, 09 May 2023 01:25:00 -0400 Date: Tue, 09 May 2023 08:26:02 +0300 Message-Id: <83o7muaxed.fsf@gnu.org> From: Eli Zaretskii To: Seppo Ronkainen In-Reply-To: (message from Seppo Ronkainen on Mon, 08 May 2023 21:22:21 +0000) Subject: Re: bug#63283: Emacs crash within fontset References: <83wn1njswh.fsf@gnu.org> <835y95hicm.fsf@gnu.org> <7viubPQBitOqW2lvRK1P_aP6NjiS05pc86HGIH8yUyCZGabZgL5Hb3YAdm9efSCsxPb7yxW55zGhfZfE2PUjkZesUSharobfMDC3-JTEL1E=@protonmail.com> <835y95fe64.fsf@gnu.org> <83ttwoeiwf.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63283-done Cc: 63283-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 08 May 2023 21:22:21 +0000 > From: Seppo Ronkainen > Cc: 63283@debbugs.gnu.org > > Your suggested patch successfully avoided the abort, great ! > > Where the abort would previously occur now instead the buffer renders all characters with four digit code point rectangular representations which I would consider preferable to an abort the entire emacs server session with thirty or so windows. Tested with visiting a large file emacs/src/xdisp.c and Emacs swapps back to render regular characters when text is scaled back. I would vote for your suggested fix, well done thank you ! Displaying the characters as hex codes is the expected behavior in this case, since Emacs is unable to find a font that suits its needs. So I've now installed the change on the emacs-29 branch, and I'm closing the bug. Thanks. From unknown Mon Jun 23 23:50:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Jun 2023 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator