all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: "Michał Kondraciuk" <k.michal@zoho.com>
Cc: 30931@debbugs.gnu.org
Subject: bug#30931: 27.0.50; Crash in "Automatic GC"
Date: Mon, 26 Mar 2018 08:45:55 -0400	[thread overview]
Message-ID: <87d0zrqa2k.fsf@gmail.com> (raw)
In-Reply-To: <bbff08a6-316f-7ed4-e3dd-53c7367da200@zoho.com> ("Michał Kondraciuk"'s message of "Sun, 25 Mar 2018 11:46:16 +0200")

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

found 30931 25.3
found 30931 26.0.91
tags 30931 + confirmed
retitle 30931 abort() due to CHECK_ALLOCATED_AND_LIVE failure during GC
quit

Michał Kondraciuk <k.michal@zoho.com> writes:
>
> 1. emacs -Q
> 2. M-x package-initialize
> 3. Evaluate: |(add-to-list 'package-archives '("melpa"
> . "https://melpa.org/packages/")) 4. M-x package-refresh-contents
> 5. M-x 
> package-install RET ivy RET |6||. M-x package-install RET yasnippet
> RET |||7. M-x package-install RET yasnippet-snippets RET|
> 8. Evaluate form below.
> 9. Wait 1-10 minutes.

I'm able to reproduce this in a fresh HOME (I've tried with versions
25.3 and 26.0.91), with the attached init.el.


[-- Attachment #2: init.el to reproduce crash --]
[-- Type: text/plain, Size: 1578 bytes --]


(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-refresh-contents)
(package-initialize)

(unless (package-installed-p 'ivy)
  (package-install 'ivy))
(unless (package-installed-p 'yasnippet-snippets)
  (package-install 'yasnippet-snippets))

(require 'yasnippet)
(require 'ivy)

(yas-reload-all)

(switch-to-buffer "*scratch*")
(lisp-interaction-mode)
(yas-minor-mode-on)

(let ((templates (mapcar #'yas--template-key
                         (yas--all-templates (yas--get-snippet-tables)))))
  (defun update-fn ()
    (with-current-buffer "*scratch*"
      (save-restriction
        (narrow-to-region 3 3)
        (insert " " (ivy-state-current ivy-last))
        (yas-expand)
        (mapc #'yas-abort-snippet (yas-active-snippets)))
      (redisplay)))
  (let ((buffer-undo-list t))
    (while t
      (erase-buffer)
      (insert "aaaaaa")
      (redisplay)
      (sit-for 0.1)
      (run-with-timer
       0.01 nil (lambda ()
                  (dotimes (_ (% (random) 15))
                    (execute-kbd-macro "\C-n")
                    (sit-for 0.05)
                    (redisplay)
                    (when (zerop (% (random) 4))
                      (execute-kbd-macro "\C-p")
                      (sit-for 0.05)
                      (redisplay)))
                  (sit-for 0.1)
                  (redisplay)
                  (abort-recursive-edit)))
      (catch 'exit
        (condition-case err
            (ivy-read "foo: " templates
                      :update-fn #'update-fn)
          (quit))))))

[-- Attachment #3: Type: text/plain, Size: 296 bytes --]


It looks like there is a Lisp_Misc_Free object in the undo-list. At
least, I think it's the undo-list.  One time I actually got the
mark_object (BVAR (nextb, undo_list)) in the backtrace, although the
next time it was just mark_stack, but the object being marked still
looks like an undo-list.


  reply	other threads:[~2018-03-26 12:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4d245b9b-16be-954e-f98c-c99796e40431@zoho.com>
2018-03-25  9:46 ` bug#30931: 27.0.50; Crash in "Automatic GC" Michał Kondraciuk
2018-03-26 12:45   ` Noam Postavsky [this message]
2018-03-26 14:20     ` Noam Postavsky
2018-03-26 14:57       ` Michał Kondraciuk
2018-03-24 20:30 Michał Kondraciuk
2018-03-25  2:33 ` Eli Zaretskii
2018-03-28 21:02   ` Michał Kondraciuk
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-04-19 23:42 ` Noam Postavsky

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=87d0zrqa2k.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=30931@debbugs.gnu.org \
    --cc=k.michal@zoho.com \
    /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.