From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68557: 30.0.50; "--enable-checking=yes,glyphs" leads to "alloc.c:3446: Emacs fatal error: assertion failed: h->index_size > 1" Date: Sat, 20 Jan 2024 21:18:05 +0100 Message-ID: <87zfwzu5c2.fsf@no.lan> References: <87mst3bjet.fsf@no.lan> <837ck7b245.fsf@gnu.org> <87o7djja51.fsf@no.lan> Reply-To: Gregor Zattler 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="22905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68557@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 20 21:19:45 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 1rRHof-0005ke-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jan 2024 21:19:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRHoH-0005U0-E6; Sat, 20 Jan 2024 15:19:21 -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 1rRHnz-0005Mo-FY for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 15:19:06 -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 1rRHnv-0001Vy-IG for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 15:19:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rRHnx-0003St-Vc for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 15:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jan 2024 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68557 X-GNU-PR-Package: emacs Original-Received: via spool by 68557-submit@debbugs.gnu.org id=B68557.170578193513306 (code B ref 68557); Sat, 20 Jan 2024 20:19:01 +0000 Original-Received: (at 68557) by debbugs.gnu.org; 20 Jan 2024 20:18:55 +0000 Original-Received: from localhost ([127.0.0.1]:35861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRHnq-0003SW-Vv for submit@debbugs.gnu.org; Sat, 20 Jan 2024 15:18:55 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:37425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRHnm-0003SB-Ky for 68557@debbugs.gnu.org; Sat, 20 Jan 2024 15:18:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1705781921; x=1706386721; i=grfz@gmx.de; bh=2csa9ES+DH6C0Ans2uxQ2QByP8nH0M94HaS5zxVV3os=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=uWVo5axTcH2kmTG+cm6bZFjW7s24yrRKcb2sASZ20C09gXMTwrRizax8qFobvUXB w1hEdfCNz3IZ9fOwY78oNfNXIjjdGrEC64DhyA1EF0ns9bFvK6ATY68kNgEzCxW3S NluVuM02XXzSkNMciZieyOzq75PCPMvrf9kXUfxdBkhX2UMdkjprq+rL3eeXsfMzA YzEl620uG7K3mdVEx3sKmO/e2QYmZcDsPwwIXYpNQHwIMKzxg14YIlJjBXIVZDPzC IpLoOyRLu4ClAiLUoTX1jwmU7MfKa+gzqwl4kQw+KZrQZ+5fzX5SM8B2i3C7fL0RV zxXgZWNt+ymG3pMc6A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from localhost ([95.90.236.232]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M59C2-1rQBs507C0-001E8s; Sat, 20 Jan 2024 21:18:41 +0100 In-Reply-To: <87o7djja51.fsf@no.lan> X-Provags-ID: V03:K1:Cy+cMY40oU3RrbwqQ20lhb93o9iHTYCji7LXSQklFnnPcc+H/Hb W4/f5AyEfk7vbZh+XCxKa9fwIy+O4S3CLjTFDCcyphvvK7j3dTc2tcxs8vX4kFbct4+yQCY Ajd4aKtrpXNjWzu/PhbodU/ffc5zJj9qJAjTtJf0WDlz/IyNlocSs+roKooMn+D6Ko89tjw n5VlNqnKPcHrzM3UyQZAA== UI-OutboundReport: notjunk:1;M01:P0:wxmXGY9HWCk=;U4wPm4ecn/8H9AES7zujkpbGiaH Co4nittwO2g078JfKMIXHqjJlSbDmcsIvCYoQWv/F8EM94gbGMZvSslQgnVWjp91FUZGTXm3W 1J/77AUKswNROs1RV9R/F//Zo1dXqO7da1d4tsWoFtzGFyeCY7OtcCzOEVgbijjBkywPv7JQw RJ4deRles8d2ZrTu6MzSpBOl7TLJ/weiUrbZKRmdbx/pt0K35826mBMA7IQJWHiPdosEQMwtX 0tJKyih2zkH+N9Z15Xvet59If0A+SP7Tj9jMrhonm0rUSnjUsHlOXQmaWxemJmdhgg8dVH67U NyOX1VEr5U1HT/+4TgS5ad20pMy86Ocr8e6M1w+Qm2IS5KlTL7Gthgw5Y8hIy5YpP32p5BhaE EU3M64K9IcDg3Be7QEo1taVyHFB7BBXhV42YNYb3AUToU8vXicovEQK0kK+mPzeUmPDgpJaGX 05zO93LN8CSjNsGjBgwjtAQ6k90SMklEZxDKfp7iSIRJ0RCDYr6TfdB8TwKlvGyE5/t3U4ygq DT8GoFZqn2FaYW5Hzer00j2M5CSrnif8C+JbNmockgKJ4aSTdESJnoX2+Kk/n9+iHnjCzHdXa xqyl5+UXlvFrErvRKsJth8Pr2Dh/OL7zToIo38Wt2pWxleeqKZ7iyJRmaUH5hEQc0LDQ3+pfW 49x2jq1zZuait3XEoVCYS43SJnPbWCp3OdR4YAtow0lQthD0qEDURXUcN3gZeWMd4c1fw9Jik jlk1niXAwaNsft3/eYyqT63TuvzFLyErO2cwQhYI15ZGW33v9ruEyGQCaFCh/b99UfQ2r5td 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:278628 Archived-At: Hi Eli, Emacs developers, * Gregor Zattler [2024-01-18; 09:52 +01]: > * Eli Zaretskii [2024-01-18; 08:13 +02]: >> Thanks. Please say "make V=3D1" (but without -jN option that runs >> several Make commands in parallel), and wait for the first command >> that fails due to the above fatal error. Then run the same command >> under GDB, > > the last lines wihtout -j are: > > TZ=3DUTC0 touch -t 197001010000 emacs-lisp/byte-opt.elc > '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp \ > -l comp -f batch-byte-compile emacs-lisp/bytecomp.el > TZ=3DUTC0 touch -t 197001010000 emacs-lisp/bytecomp.elc > '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp \ > -l comp -f batch-byte-compile emacs-lisp/comp.el > > alloc.c:3446: Emacs fatal error: assertion failed: h->index_size > 1 > make[3]: *** [Makefile:325: emacs-lisp/comp.elc] Aborted In case that helps, I bisected this issue and got the following result: d3cefd3e98354929d96c9396e5920e8a123784dc is the first bad commit = = commit d3cefd3e98354929d96c9396e59= 20e8a123784dc Author: Mattias Engdeg=C3=A5rd Date: Sat Nov 4 16:34:09 2023 +0100 Leaner hash table dumping and thawing Only dump the actual data, and the test encoded as an enum. This simplifies dumping, makes dump files smaller and saves space at run time. =20=20=20=20 * src/lisp.h (hash_table_std_test_t): New enum. (struct Lisp_Hash_Table): Add frozen_test member, consuming no extra sp= ace. * src/fns.c (hashfn_user_defined): Now static. (hash_table_test_from_std): New. (hash_table_rehash): Rename to... (hash_table_thaw): ...this and rewrite. * src/pdumper.c (hash_table_contents): Only include actual data, not unused space. (hash_table_std_test): New. (hash_table_freeze): Set frozen_test from test. (dump_hash_table): Dump frozen_test, not the whole test struct. Don't bother other dumping fields that can be derived. =20 src/fns.c | 53 ++++++++++++++++++++++++++++++------------------- src/lisp.h | 12 ++++++++++-- src/pdumper.c | 63 +++++++++++++++++++++++++------------------------------= ---- Don't know if it's really related, though. Regards, Gregor