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: Mon, 26 Mar 2018 16:57:53 +0200 Message-ID: References: <4d245b9b-16be-954e-f98c-c99796e40431@zoho.com> <87d0zrqa2k.fsf@gmail.com> <87a7uurk8w.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------A59BECEABE8DC8C10209EABB" X-Trace: blaine.gmane.org 1522104191 5882 195.159.176.226 (26 Mar 2018 22:43:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 22:43:11 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Cc: 30931@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 27 00:43:07 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 1f0apV-0001Oi-9l for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Mar 2018 00:43:05 +0200 Original-Received: from localhost ([::1]:59394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0arY-0002aZ-L8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2018 18:45:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0arS-0002aH-L5 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 18:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0arO-0007VR-Mp for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 18:45:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0arO-0007VL-JO for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 18:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0arO-0003Ai-73 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 18:45: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: Mon, 26 Mar 2018 22:45:02 +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: confirmed Original-Received: via spool by 30931-submit@debbugs.gnu.org id=B30931.152210425812131 (code B ref 30931); Mon, 26 Mar 2018 22:45:02 +0000 Original-Received: (at 30931) by debbugs.gnu.org; 26 Mar 2018 22:44:18 +0000 Original-Received: from localhost ([127.0.0.1]:54913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0aqf-00039b-Uj for submit@debbugs.gnu.org; Mon, 26 Mar 2018 18:44:18 -0400 Original-Received: from sender-pp-092.zoho.com ([135.84.80.237]:25329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0aqe-00039T-3t for 30931@debbugs.gnu.org; Mon, 26 Mar 2018 18:44:16 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:to:references:cc:from:message-id:date:user-agent:mime-version:in-reply-to:content-type; b=nkc99F8nDqGD3kQATSfJZU8ec8PHmjJ7dWStSNTpawQGAOmPYh3CM/4wEja37fq56lReaD7/AYqN KV70Oh2LrLTNU87JQpI5GGf+3zBUHoX2awbW19qk6HWGJsdBk8Gb 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 15220762754041003.0239914709716; Mon, 26 Mar 2018 07:57:55 -0700 (PDT) In-Reply-To: <87a7uurk8w.fsf@gmail.com> Content-Language: en-US X-ZohoMailClient: External 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:144640 Archived-At: This is a multi-part message in MIME format. --------------A59BECEABE8DC8C10209EABB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------A59BECEABE8DC8C10209EABB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------A59BECEABE8DC8C10209EABB--