GNU bug report logs - #66743
30.0.50; Crash when dumping reftex

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Wed, 25 Oct 2023 09:46:01 UTC

Severity: wishlist

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #73 received at 66743 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gerd.moellmann <at> gmail.com, 66743 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#66743: 30.0.50; Crash when dumping reftex
Date: Thu, 26 Oct 2023 13:48:47 +0000
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> May you please point me to such higher-level facility?
>
> How about 'error'?

Thanks!

See the attached.

[v2-0001-src-pdumper.c-dump_buffer-Print-message-before-ab.patch (text/x-patch, inline)]
From c6c2b5a2f02c508fad3255033589d788ed84b09f Mon Sep 17 00:00:00 2001
Message-ID: <c6c2b5a2f02c508fad3255033589d788ed84b09f.1698328056.git.yantar92 <at> posteo.net>
From: Ihor Radchenko <yantar92 <at> posteo.net>
Date: Thu, 26 Oct 2023 14:52:32 +0300
Subject: [PATCH v2] * src/pdumper.c (dump_buffer): Print message before
 aborting (bug#66743)

When the buffer contains overlays, it cannot be dumped.  Print a
message describing this fact before aborting Emacs.
---
 src/pdumper.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/pdumper.c b/src/pdumper.c
index 315a31e2bcb..62d4fbcd68b 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -2862,8 +2862,11 @@ dump_buffer (struct dump_context *ctx, const struct buffer *in_buffer)
   DUMP_FIELD_COPY (out, buffer, long_line_optimizations_p);
 
   if (!itree_empty_p (buffer->overlays))
-    /* We haven't implemented the code to dump overlays.  */
-    emacs_abort ();
+    {
+      /* We haven't implemented the code to dump overlays.  */
+      error ("Dumping overlays in buffers is not yet implemented.  Aborting...\n");
+      emacs_abort ();
+    }
   else
     out->overlays = NULL;
 
-- 
2.42.0

[Message part 3 (text/plain, inline)]
-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

This bug report was last modified 1 year and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.