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: Wed, 28 Mar 2018 23:02:40 +0200 Message-ID: <48726674-57ed-a3bc-b4dc-e36747d30f90@zoho.com> References: <0eb14aa5-8110-8336-5d3d-fac46ccc23f3@zoho.com> <83h8p4hok0.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1522342094 20581 195.159.176.226 (29 Mar 2018 16:48:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 16:48:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: 30931 <30931@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 18:48:10 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 1f1aif-0005GL-7i for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2018 18:48:09 +0200 Original-Received: from localhost ([::1]:39783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1aki-000874-Mh for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2018 12:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1akX-00085W-TY for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2018 12:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1akU-0005oM-Bm for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2018 12:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1akU-0005oA-6z for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2018 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f1akT-00071I-TW for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2018 12:50:01 -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: Thu, 29 Mar 2018 16:50: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: confirmed Original-Received: via spool by 30931-submit@debbugs.gnu.org id=B30931.152234216026930 (code B ref 30931); Thu, 29 Mar 2018 16:50:01 +0000 Original-Received: (at 30931) by debbugs.gnu.org; 29 Mar 2018 16:49:20 +0000 Original-Received: from localhost ([127.0.0.1]:58918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1ajn-00070G-ON for submit@debbugs.gnu.org; Thu, 29 Mar 2018 12:49:19 -0400 Original-Received: from sender-pp-092.zoho.com ([135.84.80.237]:25483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1ajl-000708-Vp for 30931@debbugs.gnu.org; Thu, 29 Mar 2018 12:49:18 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:to:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-type; b=qsSO5rCpgYNENzmu32kmEsT1PcbpJFz2tEp1x3HsiuCunf5We1H5Y2OIyTqiPZm/grdufNEhRGDv W0o+kZ4+rWYDlhTUjnprtKZ5Yn7L+1YYW2VXjJLA0F2ZlQv63QpN 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 1522270962471519.8008989466958; Wed, 28 Mar 2018 14:02:42 -0700 (PDT) In-Reply-To: <83h8p4hok0.fsf@gnu.org> 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:144693 Archived-At: 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)))))