From: Ihor Radchenko <yantar92@posteo.net>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
66743@debbugs.gnu.org, Stefan Kangas <stefankangas@gmail.com>
Subject: bug#66743: 30.0.50; Crash when dumping reftex
Date: Thu, 26 Oct 2023 11:55:38 +0000 [thread overview]
Message-ID: <871qdhd2dh.fsf@localhost> (raw)
In-Reply-To: <m2fs1x3dp7.fsf@Pro.fritz.box>
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>>> Patches to do that are welcome, I think.
>>
>> May you please point me to a way to output warning to stderr from inside
>> pdumper code?
>
> fprintf (stderr, ...) I'd say.
That's more obvious than I thought :)
See the attached patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-src-pdumper.c-dump_buffer-Print-message-before-abort.patch --]
[-- Type: text/x-patch, Size: 1179 bytes --]
From c777b76ec544b33cd94e0d945554b9c6aeb785f1 Mon Sep 17 00:00:00 2001
Message-ID: <c777b76ec544b33cd94e0d945554b9c6aeb785f1.1698321284.git.yantar92@posteo.net>
From: Ihor Radchenko <yantar92@posteo.net>
Date: Thu, 26 Oct 2023 14:52:32 +0300
Subject: [PATCH] * 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..cd5a50f9b48 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. */
+ fprintf(stderr, "Dumping overlays in buffers is not yet implemented. Aborting...\n");
+ emacs_abort ();
+ }
else
out->overlays = NULL;
--
2.42.0
[-- Attachment #3: Type: text/plain, Size: 224 bytes --]
--
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>
next prev parent reply other threads:[~2023-10-26 11:55 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 9:46 bug#66743: 30.0.50; Crash when dumping reftex Ihor Radchenko
2023-10-25 12:46 ` Eli Zaretskii
2023-10-25 12:58 ` Ihor Radchenko
2023-10-25 14:44 ` Stefan Kangas
2023-10-26 9:31 ` Ihor Radchenko
2023-10-26 10:01 ` Gerd Möllmann
2023-10-26 11:55 ` Ihor Radchenko [this message]
2023-10-26 12:08 ` Eli Zaretskii
2023-10-26 12:14 ` Ihor Radchenko
2023-10-26 13:04 ` Eli Zaretskii
2023-10-26 13:13 ` Ihor Radchenko
2023-10-26 13:18 ` Eli Zaretskii
2023-10-26 13:27 ` Ihor Radchenko
2023-10-26 13:28 ` Eli Zaretskii
2023-10-26 13:48 ` Ihor Radchenko
2023-10-26 15:49 ` Eli Zaretskii
2023-10-27 9:08 ` Ihor Radchenko
2023-10-27 10:38 ` Eli Zaretskii
2023-10-27 10:55 ` Ihor Radchenko
2023-10-27 11:01 ` Eli Zaretskii
2023-10-27 11:09 ` Ihor Radchenko
2023-10-27 12:36 ` Eli Zaretskii
2023-10-27 12:45 ` Ihor Radchenko
2023-10-27 12:53 ` Eli Zaretskii
2023-10-25 16:15 ` Gerd Möllmann
2023-10-25 16:21 ` Eli Zaretskii
2023-10-25 16:37 ` Gerd Möllmann
2023-10-26 7:03 ` Gerd Möllmann
2023-10-26 7:35 ` Eli Zaretskii
2023-10-26 8:04 ` Gerd Möllmann
2023-10-26 9:38 ` Ihor Radchenko
2023-10-26 9:44 ` Eli Zaretskii
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=871qdhd2dh.fsf@localhost \
--to=yantar92@posteo.net \
--cc=66743@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=gerd.moellmann@gmail.com \
--cc=stefankangas@gmail.com \
/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.