From: "Michał Kondraciuk" <k.michal@zoho.com>
To: 30931 <30931@debbugs.gnu.org>
Subject: bug#30931: 27.0.50; Crash in "Automatic GC"
Date: Wed, 28 Mar 2018 23:02:40 +0200 [thread overview]
Message-ID: <48726674-57ed-a3bc-b4dc-e36747d30f90@zoho.com> (raw)
In-Reply-To: <83h8p4hok0.fsf@gnu.org>
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.
(progn
(require 'cl-lib)
(defvar overlays nil)
(defun on-overlay-modification (&rest args)
(push nil buffer-undo-list))
(defun crash ()
(save-restriction
(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))
(indent-according-to-mode)
(sit-for 0)
(cond (overlays
(move-overlay (nth 1 overlays) end (1+ end)))
(t
(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
(erase-buffer)
(crash)))))
next prev parent reply other threads:[~2018-03-28 21:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-24 20:30 bug#30931: 27.0.50; Crash in "Automatic GC" Michał Kondraciuk
2018-03-25 2:33 ` Eli Zaretskii
2018-03-28 21:02 ` Michał Kondraciuk [this message]
2018-03-29 23:47 ` Noam Postavsky
2018-03-30 5:39 ` Noam Postavsky
2018-03-30 8:16 ` Eli Zaretskii
2018-03-29 15:52 ` Michał Kondraciuk
2018-03-30 6:19 ` bug#30931: abort() due to CHECK_ALLOCATED_AND_LIVE failure during GC Paul Eggert
2018-03-30 12:56 ` Noam Postavsky
2018-03-30 16:23 ` Paul Eggert
2018-03-30 20:50 ` Noam Postavsky
2018-03-30 21:29 ` Paul Eggert
2018-03-31 7:42 ` Eli Zaretskii
2018-04-19 23:42 ` bug#30931: 27.0.50; Crash in "Automatic GC" Noam Postavsky
[not found] <4d245b9b-16be-954e-f98c-c99796e40431@zoho.com>
2018-03-25 9:46 ` Michał Kondraciuk
2018-03-26 12:45 ` Noam Postavsky
2018-03-26 14:20 ` Noam Postavsky
2018-03-26 14:57 ` Michał Kondraciuk
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=48726674-57ed-a3bc-b4dc-e36747d30f90@zoho.com \
--to=k.michal@zoho.com \
--cc=30931@debbugs.gnu.org \
/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.