[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30931: 27.0.50; Crash in "Automatic GC"

From: Michał Kondraciuk
Subject: bug#30931: 27.0.50; Crash in "Automatic GC"
Date: Wed, 28 Mar 2018 23:02:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

I don't know if it helps, but I was able to reproduce a crash in the same place (mark_object()) with bare Emacs, however only in 27.0.50.

I have no idea what this code does at all. The way I wrote this is I kept rerunning the previous recipe but each time I commented out some part of yasnippet.el library. If Emacs crashed, I kept the change, otherwise I uncommented those parts and focused on another region, and so on until I was left with very simple functions. I hope someone can confirm that it crashes.

  (require 'cl-lib)
  (defvar overlays nil)

  (defun on-overlay-modification (&rest args)
    (push nil buffer-undo-list))

  (defun crash ()
      (narrow-to-region 1 1)

      (let (start end field)
        (goto-char 2)
        (insert " 123aaaa")
        (narrow-to-region 2 5)

        (setq start (set-marker (make-marker) 2))
        (setq end (set-marker (make-marker) 3))

        (sit-for 0)
        (cond (overlays
               (move-overlay (nth 1 overlays) end (1+ end)))
               (setq overlays
                     (list (make-overlay (1- start) start nil t nil)
                           (make-overlay end (1+ end) nil t nil)))
               (dolist (ov (list (make-overlay (1- start) start nil t nil)
                           (make-overlay end (1+ end) nil t nil)))
(overlay-put ov 'modification-hooks '(on-overlay-modification))))))))

  (with-current-buffer "*scratch*"
    (let ((buffer-undo-list t))
      (while t

reply via email to

[Prev in Thread] Current Thread [Next in Thread]