Subject: Re: bug#66743: 30.0.50; Crash when dumping reftex

From: Eli Zaretskii <[email-masked]>
Date: Wed, 25 Oct 2023 15:46:50 +0300

> From: Ihor Radchenko <[email-masked]>
> Date: Wed, 25 Oct 2023 09:46:03 +0000
> 
> Steps to reproduce:
> 
>  emacs -Q --batch -l dump.el 
> 
> with dump.el
> 
> (dolist (feature
> 	 '(reftex))
>   (require feature))
> (dump-emacs-portable "/tmp/emacs-dumped.dmp")
> 
> backtrace:
> [...]
> Program received signal SIGABRT, Aborted.
> 0x00007ffff58d3eac in ?? () from /lib64/libc.so.6
> (gdb) bt full
> #0  0x00007ffff58d3eac in  () at /lib64/libc.so.6
> #1  0x00007ffff58855c2 in raise () at /lib64/libc.so.6
> #2  0x000055555578b242 in terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:484
> #3  0x00005555557cadde in emacs_abort () at sysdep.c:2391
> #4  0x00005555558563f7 in dump_buffer (ctx=0x7fffffffbeb0, in_buffer=0x7ffff1e62708) at pdumper.c:2866

The code which aborts:

  if (!itree_empty_p (buffer->overlays))
    /* We haven't implemented the code to dump overlays.  */  <<<<<<<<<<
    emacs_abort ();

Any questions?