Subject: bug#76091: 31.0.50; festure/igc: buffer.h:829: Emacs fatal error: assertion failed: BUFFERP (a)

From: Gerd Möllmann <[email-masked]>
Date: Fri, 07 Feb 2025 16:53:15 +0100

Pip Cet <[email-masked]> writes:

> Well, here it is:

IIUC, that fixes the problem with igc_on_grow_specpdl as part of a
grander effort that avoids parking the arena in more cases.

(I'd naively just written a new igc_xpalloc_specpdl patterned after the
existing igc_xpalloc_exectly and ambig variants, but I'm also lazy :-).)

Hard to review. Did you take this into account?

igc.c:
 3240   /* Can't make a root that has zero length.  Want one to be able to
 3241      detect calling igc_free on something not having a root.  */
 3242   void *end = (char *) p + size;
 3243   if (end == p)
 3244     end = (char *) p + IGC_ALIGN_DFLT;
 3245   root_create_ambig (global_igc, p, end, "xzalloc-ambig");