GNU bug report logs - #13836
24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications'

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dmitry Gutov <dgutov@HIDDEN>; dated Wed, 27 Feb 2013 17:40:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Feb 2013 17:39:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 27 12:39:36 2013
Received: from localhost ([127.0.0.1]:53811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UAkyd-000261-SC
	for submit <at> debbugs.gnu.org; Wed, 27 Feb 2013 12:39:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35085)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <raaahh@HIDDEN>) id 1UAkyb-00025q-0z
	for submit <at> debbugs.gnu.org; Wed, 27 Feb 2013 12:39:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <raaahh@HIDDEN>) id 1UAkwY-0006wo-F7
	for submit <at> debbugs.gnu.org; Wed, 27 Feb 2013 12:37:38 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:48006)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <raaahh@HIDDEN>) id 1UAkwX-0006w2-9g
	for submit <at> debbugs.gnu.org; Wed, 27 Feb 2013 12:37:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46302)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <raaahh@HIDDEN>) id 1UAkwI-00081F-BF
	for bug-gnu-emacs@HIDDEN; Wed, 27 Feb 2013 12:37:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <raaahh@HIDDEN>) id 1UAkw0-0006ob-Ma
	for bug-gnu-emacs@HIDDEN; Wed, 27 Feb 2013 12:37:02 -0500
Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:37370)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <raaahh@HIDDEN>) id 1UAkvz-0006iT-An
	for bug-gnu-emacs@HIDDEN; Wed, 27 Feb 2013 12:36:52 -0500
Received: by mail-la0-f50.google.com with SMTP id ec20so832431lab.23
	for <bug-gnu-emacs@HIDDEN>; Wed, 27 Feb 2013 09:36:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:sender:from:to:subject:date:message-id:mime-version
	:content-type; bh=WLTcQ2DR2AeHXscX0E8kNYgvePQDwHhCgbpihA5rlsg=;
	b=RB68l8XQzT+FlW+0M9wF/EgeXW3qRpIt7fjTzBBgYUh5nZ+R4uE7lthx4ATq85jd+z
	AHZy7K+n9A/jmXl2n8Q0JG/7xSJ8cbuk5C33LSka3MaIj/nkkRUeiLLzZdnJRIy0O2VI
	Rt5xf4xv3OxfMAh2xA6LtyVGo6mML9r1BT9PX/7MxaQGTWe/Te2bxSQaXpnpaKUH3WYA
	u/JXWNs9qo1wl5uA07e//ncn5aJx9NAf+OEjwGVs0SbV+8xOjVgrPbISHTQyJbAqj68k
	9OoLQn+N9aBrkisCfrSjw8UNHdSh69ebrZO+A0nVzk/8F+ZgIY5lh1sQS3Zbh68K3ka2
	Nxtg==
X-Received: by 10.112.26.10 with SMTP id h10mr2441435lbg.63.1361986592903;
	Wed, 27 Feb 2013 09:36:32 -0800 (PST)
Received: from vbx ([178.252.98.87])
	by mx.google.com with ESMTPS id oy10sm3126633lab.8.2013.02.27.09.36.30
	(version=TLSv1.2 cipher=RC4-SHA bits=128/128);
	Wed, 27 Feb 2013 09:36:31 -0800 (PST)
From: Dmitry Gutov <dgutov@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50;
	`put-text-property' creates lock files for indirect buffer despite
	`with-silent-modifications'
Date: Wed, 27 Feb 2013 21:36:25 +0400
Message-ID: <87bob5wteu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

1. Open a file that has some syntax highlighting in the associated mode
(e.g. ~/test.js, in js-mode).
2. (switch-to-buffer (make-indirect-buffer (current-buffer) "foo"))
3. M-x js-mode
4. Observe the created .#test.js symlink.

* (buffer-modified-p) returns nil in both buffers.
* The lock file won't be removed when the indirect and the base buffer
  are killed, and even after Emacs is killed.
* If I remove the lock file manually, it will be re-created each time
  `put-text-property' is called.
* Possibly related to Bug#3038.
* Reproduces in 24.2 and 23.4, so not a regression, as far as 24.3 is
  concerned.

Here's a typical Lisp-level backtrace:

(gdb) xbacktrace
"put-text-property" (0xffff7ea0)
"jit-lock-refontify" (0xffff83b0)
"jit-lock-mode" (0xffff88e0)
"jit-lock-register" (0xffff8de0)
"font-lock-turn-on-thing-lock" (0xffff92f0)
"font-lock-mode-internal" (0xffff97f0)
"font-lock-default-function" (0xffff9cf0)
"font-lock-mode" (0xffffa1f0)
"turn-on-font-lock" (0xffffa6d0)
"turn-on-font-lock-if-desired" (0xffffabc0)
"global-font-lock-mode-enable-in-buffers" (0xffffb148)
"run-hooks" (0xffffb230)
"run-mode-hooks" (0xffffb730)
"js-mode" (0xffffbc40)

(Same thing happens inside `syntax-propertize', so it's not just jit-lock).

Abbreviated C backtrace:

(gdb) backtrace
#0  lock_file (fn=26156449) at filelock.c:615
#1  0x0000000000630043 in prepare_to_modify_buffer (start=1, end=38, 
    preserve_ptr=0x0) at insdel.c:1829
#2  0x000000000062faf0 in modify_region_1 (start=1, end=38, 
    preserve_chars_modiff=true) at insdel.c:1763
#3  0x0000000000759df0 in modify_region (buffer=40447669, start=4, end=152)
    at textprop.c:97
#4  0x000000000075e9f0 in Fadd_text_properties (start=4, end=152, 
    properties=39370150, object=40447669) at textprop.c:1178
#5  0x000000000075ee63 in Fput_text_property (start=4, end=152, 
    property=15828690, value=15589922, object=15589922) at textprop.c:1240
#6  0x00000000006ba77c in Ffuncall (nargs=5, args=0x7fffffff7e98)
    at eval.c:2691
#7  0x000000000072bf41 in exec_byte_code (bytestr=13193993, vector=13194165, 
    maxdepth=24, args_template=15589922, nargs=0, args=0x0) at bytecode.c:898

In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0)
 of 2013-02-27 on vbx
Bzr revision: 111886 michael.albinus@HIDDEN
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10




Acknowledgement sent to Dmitry Gutov <dgutov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13836; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.