From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13743: 24.2.93; Segmentation fault when trying to [s]teal a file opened elsewhere Date: Mon, 25 Feb 2013 22:27:35 +0400 Message-ID: <512BAD17.2040606@yandex.ru> References: <5125ADA9.3070603@cs.ucla.edu> <51283965.2020107@yandex.ru> <837glzkqvc.fsf@gnu.org> <83621ilvk9.fsf@gnu.org> <512A31A0.4040804@yandex.ru> <83ehg5k8xe.fsf@gnu.org> <512AFC18.4090504@yandex.ru> <831uc4jr7t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361816919 20823 80.91.229.3 (25 Feb 2013 18:28:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 18:28:39 +0000 (UTC) Cc: 13743@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 25 19:29:00 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UA2nJ-00077t-30 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 19:28:57 +0100 Original-Received: from localhost ([::1]:39515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2mx-0007IC-Nh for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 13:28:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2mp-0007Fy-HZ for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 13:28:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA2ml-0001zB-3K for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 13:28:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2mk-0001z4-Vl for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 13:28:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UA2oN-0007Ij-0A for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 13:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Feb 2013 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13743-submit@debbugs.gnu.org id=B13743.136181696327987 (code B ref 13743); Mon, 25 Feb 2013 18:30:02 +0000 Original-Received: (at 13743) by debbugs.gnu.org; 25 Feb 2013 18:29:23 +0000 Original-Received: from localhost ([127.0.0.1]:49873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA2nj-0007HM-3k for submit@debbugs.gnu.org; Mon, 25 Feb 2013 13:29:23 -0500 Original-Received: from mail-lb0-f174.google.com ([209.85.217.174]:61326) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA2nh-0007HE-48 for 13743@debbugs.gnu.org; Mon, 25 Feb 2013 13:29:22 -0500 Original-Received: by mail-lb0-f174.google.com with SMTP id l12so2479928lbo.33 for <13743@debbugs.gnu.org>; Mon, 25 Feb 2013 10:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=cZWwz2XRIR6tUaoPuxAlTpb73MzPf23hp01OdKmzhUE=; b=zWbM8X3a4lB1BCzXhYoEjPuRZ9KiFWlFgyNALQDZJmzKW6F3EOv7IkthT4OR5DovgV Jkpf0ZTsfBVDZnwqZaxEf7P+gK9CfxY6BccyUxnVp0kF7jUNoR+MxvyOfa61Js2vRjiw EvUg0JKRdmBxgShDgGphuu6QDBf/t36/sjbsc1HXJVoof7opau1Ni/a/EWtUf7xebQB+ qNPssu4jS8iIsEEnLuMGF+l2hkirgWIl2XVYH4b9BlotbZOH4KxSOkBjZpIXt0XilHR5 lzr1EqFQjibtS/A+6NeWBu02LGr0IYzmWdXd5hlmSagQoDGjrRfPKUKtQoyFtpgWYSFr l4Og== X-Received: by 10.112.99.65 with SMTP id eo1mr4944987lbb.78.1361816859535; Mon, 25 Feb 2013 10:27:39 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id t17sm7386551lam.9.2013.02.25.10.27.37 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 10:27:38 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: <831uc4jr7t.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71789 Archived-At: On 25.02.2013 20:25, Eli Zaretskii wrote: > I installed on the trunk revision 111875 to fix this. Now all your > examples: >> ... > work as expected. Thanks! > Interestingly, this also fixes the original segfault which started > this discussion (not before I fixed similar bugs in > remove-text-properties and elsewhere in textprop.c, because making the > change only n add-text-properties still triggered a similar segfault > from remove-text-properties). So perhaps the fact that buffer > modifications were announced unnecessarily is the root cause for the > segfault. Also, mmm-mode now opens small files like the test one noticeably faster. Not sure why, but it's a nice win. > I couldn't convince myself that, even after revision 111875, we could > not end up in a situation where redisplay triggered by modify_region > changes the intervals when it fontifies the buffer. So perhaps we > need a followup patch to plumb that potential hole, something along > the following: That scenario doesn't sound good, but I'll leave judging the last patch to the experts. I can't reproduce the original problem anymore, so please this bug when you think appropriate.