From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: transpose-regions Date: Fri, 23 Mar 2007 11:55:48 +0100 Message-ID: References: <46026277.7060305@gmx.at> <87zm64kau0.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1174647366 28865 80.91.229.12 (23 Mar 2007 10:56:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 10:56:06 +0000 (UTC) Cc: martin rudalics , emacs-devel To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 11:56:00 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HUhR9-0007mr-5p for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 11:55:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUhT2-0007tO-3u for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 05:57:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUhSy-0007sK-A7 for emacs-devel@gnu.org; Fri, 23 Mar 2007 06:57:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUhSw-0007re-Q3 for emacs-devel@gnu.org; Fri, 23 Mar 2007 06:57:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUhSw-0007rZ-KW for emacs-devel@gnu.org; Fri, 23 Mar 2007 05:57:50 -0500 Original-Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HUhR2-0005Ga-HU for emacs-devel@gnu.org; Fri, 23 Mar 2007 06:55:52 -0400 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id F0BD512205; Fri, 23 Mar 2007 11:55:49 +0100 (CET) X-Yow: Are you mentally here at Pizza Hut?? In-Reply-To: <87zm64kau0.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 22 Mar 2007 21:28:07 -0400") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68376 Archived-At: Chong Yidong writes: > The problem seems to be that a cons cell that has already been > garbage-collected is being passed to Fcopy_sequence during > copy_properties(), in intervals.c:106. Where did this cons cell come > from? > > target->plist =3D Fcopy_sequence (source->plist); > > Is the garbage collector somehow failing to account for cons cells > assigned to interval plists? Unlikely, what would be a too obvious bug to remain unnoticed until now (and mark_interval indeed does mark the plist). More likely that the whole interval is not being marked in the first place. The function uses the local variables tmp_interval[12] that are copies of the buffer intervals, perhaps they need to be protected from GC? Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."