From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: transpose-regions Date: Fri, 23 Mar 2007 12:50:27 +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=us-ascii X-Trace: sea.gmane.org 1174650648 12458 80.91.229.12 (23 Mar 2007 11:50:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 11:50:48 +0000 (UTC) Cc: martin rudalics , Chong Yidong , emacs-devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 12:50:41 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 1HUiI3-0007KA-81 for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 12:50:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUiJw-0003rz-ID for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 06:52:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUiJu-0003rk-3R for emacs-devel@gnu.org; Fri, 23 Mar 2007 07:52:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUiJs-0003r3-J0 for emacs-devel@gnu.org; Fri, 23 Mar 2007 07:52:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUiJs-0003qs-C7 for emacs-devel@gnu.org; Fri, 23 Mar 2007 06:52:32 -0500 Original-Received: from pfepa.post.tele.dk ([195.41.46.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HUiHy-00015W-3Q for emacs-devel@gnu.org; Fri, 23 Mar 2007 07:50:34 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id A08EFFAC082; Fri, 23 Mar 2007 12:50:32 +0100 (CET) In-Reply-To: (Andreas Schwab's message of "Fri\, 23 Mar 2007 11\:55\:48 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:68380 Archived-At: Andreas Schwab writes: > 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 = 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? There's only a need to GC around a called function if that function can actually do GC, i.e. if calling the function may eventually call Feval or run byte code. Where is that possible? Besided, a native windows build uses conservative stack marking, so it is not necessary to explicitly protect from GC (on that platform). ut was this a native or a cygwin build? Perhaps the conservative stack marking does not work properly on WindowsME (does anything work properly on ME?) -- Kim F. Storm http://www.cua.dk