From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Micha=C5=82?= Kondraciuk Newsgroups: gmane.emacs.bugs Subject: bug#30931: 27.0.50; Crash in "Automatic GC" Date: Sun, 25 Mar 2018 11:46:16 +0200 Message-ID: References: <4d245b9b-16be-954e-f98c-c99796e40431@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------51EA76C63C587E4F216C3347" X-Trace: blaine.gmane.org 1521971120 19897 195.159.176.226 (25 Mar 2018 09:45:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2018 09:45:20 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: 30931@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 25 11:45:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f02DD-000578-Dw for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2018 11:45:15 +0200 Original-Received: from localhost ([::1]:50571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f02FG-0004J3-Q8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2018 05:47:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f02F1-0004IY-GW for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 05:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f02Ew-000577-Ew for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 05:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f02Ew-00056s-B9 for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 05:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f02Ew-0004dq-0p for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 05:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Micha=C5=82?= Kondraciuk Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Mar 2018 09:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152197119817804 (code B ref -1); Sun, 25 Mar 2018 09:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Mar 2018 09:46:38 +0000 Original-Received: from localhost ([127.0.0.1]:52101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f02EX-0004d6-Ir for submit@debbugs.gnu.org; Sun, 25 Mar 2018 05:46:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f02EV-0004cr-Pp for submit@debbugs.gnu.org; Sun, 25 Mar 2018 05:46:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f02EP-0004mp-AQ for submit@debbugs.gnu.org; Sun, 25 Mar 2018 05:46:30 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f02EP-0004mc-69 for submit@debbugs.gnu.org; Sun, 25 Mar 2018 05:46:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f02EN-0004Do-Kq for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 05:46:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f02EI-0004eF-KE for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 05:46:27 -0400 Original-Received: from sender-pp-092.zoho.com ([135.84.80.237]:25336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f02EI-0004dQ-DF; Sun, 25 Mar 2018 05:46:22 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:references:to:cc:from:message-id:date:user-agent:mime-version:in-reply-to:content-type; b=Y/kFhdq8Q4LAq4k9bwTDDfcuNkf/2irFF3YjN3PB+OYhywV/4G4KLh45Nqz/Opbuv/VrqJx5d+sA 7i94uItZJxzlxVFKO3O5tFpxPYLwQnK2g7K16xJwPqe6GLo2cUwp Original-Received: from [192.168.0.87] (84-10-171-192.static.chello.pl [84.10.171.192]) by mx.zohomail.com with SMTPS id 152197117845759.51120941659508; Sun, 25 Mar 2018 02:46:18 -0700 (PDT) X-Forwarded-Message-Id: <4d245b9b-16be-954e-f98c-c99796e40431@zoho.com> In-Reply-To: <4d245b9b-16be-954e-f98c-c99796e40431@zoho.com> Content-Language: en-US X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144588 Archived-At: This is a multi-part message in MIME format. --------------51EA76C63C587E4F216C3347 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 03/25/2018 04:33 AM, Eli Zaretskii wrote: >> From: Michał Kondraciuk >> Date: Sat, 24 Mar 2018 21:30:56 +0100 >> >> Newest Emacs (and 25.3) crashes for me. Unfortunately I can only >> reproduce this using newest versions of Ivy and yasnippet packages. > Please post a reproduction recipe starting with "emacs -Q" and loading > the necessary packages. > > Thanks. 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. (progn   (package-initialize)   (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))))))) |||| --------------51EA76C63C587E4F216C3347 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

On 03/25/2018 04:33 AM, Eli Zaretskii wrote:
From: Michał Kondraciuk <k.michal@zoho.com>
Date: Sat, 24 Mar 2018 21:30:56 +0100

Newest Emacs (and 25.3) crashes for me. Unfortunately I can only 
reproduce this using newest versions of Ivy and yasnippet packages.
Please post a reproduction recipe starting with "emacs -Q" and loading
the necessary packages.

Thanks.

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.

(progn
  (package-initialize)
  (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)))))))
--------------51EA76C63C587E4F216C3347--