From ced7852046469b8248718d5c95c64c0cd4ddf417 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 30 Mar 2020 16:57:43 +0300 Subject: [PATCH] Avoid assertion violation at startup in pdumped Emacs * src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Remove the assertion that ensured all buffers in pdumped Emacs have non-NULL pointer to buffer text. That was false when Emacs was pdumped with killed buffer(s) in the all_buffers linked list. See https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00800.html for more details. --- src/buffer.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index 70598a7a22a..4e121ca4cab 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5387,17 +5387,6 @@ init_buffer (void) enlarge_buffer_text (b, 0); } } - else - { - struct buffer *b; - - /* Only buffers with allocated buffer text should be present at - this point in temacs. */ - FOR_EACH_BUFFER (b) - { - eassert (b->text->beg != NULL); - } - } #endif /* USE_MMAP_FOR_BUFFERS */ AUTO_STRING (scratch, "*scratch*"); -- 2.39.5