From: Eli Zaretskii Date: Mon, 30 Mar 2020 13:57:43 +0000 (+0300) Subject: Avoid assertion violation at startup in pdumped Emacs X-Git-Tag: emacs-28.0.90~7691 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ced7852046469b8248718d5c95c64c0cd4ddf417;p=emacs.git 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. --- 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*");