all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregor Zattler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 68557@debbugs.gnu.org
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	[thread overview]
Message-ID: <87zfwzu5c2.fsf@no.lan> (raw)
In-Reply-To: <87o7djja51.fsf@no.lan>

Hi Eli, Emacs developers,
* Gregor Zattler <grfz@gmx.de> [2024-01-18; 09:52 +01]:
> * Eli Zaretskii <eliz@gnu.org> [2024-01-18; 08:13 +02]:
>> Thanks.  Please say "make V=1" (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=UTC0 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=UTC0 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 d3cefd3e98354929d96c9396e5920e8a123784dc
Author: Mattias Engdegård <mattiase@acm.org>
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.
    
    * src/lisp.h (hash_table_std_test_t): New enum.
    (struct Lisp_Hash_Table): Add frozen_test member, consuming no extra space.
    * 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.
 
 src/fns.c     | 53 ++++++++++++++++++++++++++++++-------------------
 src/lisp.h    | 12 ++++++++++--
 src/pdumper.c | 63 +++++++++++++++++++++++++----------------------------------

Don't know if it's really related, though.

Regards, Gregor





  reply	other threads:[~2024-01-20 20:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 23:59 bug#68557: 30.0.50; "--enable-checking=yes,glyphs" leads to "alloc.c:3446: Emacs fatal error: assertion failed: h->index_size > 1" Gregor Zattler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-18  6:13 ` Eli Zaretskii
2024-01-18  8:52   ` Gregor Zattler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-20 20:18     ` Gregor Zattler via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-01-21  5:08       ` Eli Zaretskii
2024-01-21  8:52         ` Mattias Engdegård
2024-01-21  9:14         ` Gregor Zattler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-21 10:14           ` Eli Zaretskii
2024-01-18 14:49 ` J.P.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zfwzu5c2.fsf@no.lan \
    --to=bug-gnu-emacs@gnu.org \
    --cc=68557@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=grfz@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.