GNU bug report logs - #30931
abort() due to CHECK_ALLOCATED_AND_LIVE failure during GC

Previous Next

Package: emacs;

Reported by: Michał Kondraciuk <k.michal <at> zoho.com>

Date: Sat, 24 Mar 2018 22:07:02 UTC

Severity: normal

Tags: confirmed

Found in versions 25.3, 26.0.91, 27.0.50

Fixed in version 26.2

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michał Kondraciuk <k.michal <at> zoho.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 30931 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#30931: 27.0.50; Crash in "Automatic GC"
Date: Mon, 26 Mar 2018 16:57:53 +0200
[Message part 1 (text/plain, inline)]
On 03/26/2018 04:20 PM, Noam Postavsky wrote:
> Michał, is the binding of buffer-undo-list significant for
> your reproduction (i.e., did the original crash happen in an
> undo-disabled buffer)?
Yes, originally it crashed with buffer-undo-list bound to t.


Today I was able to reproduce this crash without using Ivy. It crashes 
much faster (typically about 15 seconds):

(progn
  (package-initialize)
  (require 'yasnippet)

  (defun crash (key)
    (save-restriction
      (narrow-to-region 1 1)
      (insert " " key)
      (yas-expand)))

  (with-current-buffer "*scratch*"
    (yas-minor-mode-on)
    (let ((buffer-undo-list t))
      (while t
        (erase-buffer)
        (dolist (key '("def" "ah"))
          (run-with-idle-timer 0.0 nil #'crash key)
          (crash key))))))


Also, If I remove calls to save-restriction and narrow-to-region, Emacs 
doesn't crash. Or at least, it was running fine for 30 minutes until I 
killed Emacs.
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 81 days ago.

Previous Next


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