From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs,gmane.emacs.devel Subject: Re: mark_object crash in 22.1 and latest CVS (as of tonight) Date: Wed, 14 Nov 2007 22:08:23 -0500 Message-ID: References: <16af2f430711081955j3d5e6745gc0f7a50e02d9a892@mail.gmail.com> <16af2f430711090332x39c8c768gb01d1dc6a0e4f427@mail.gmail.com> <16af2f430711120340q27926877tf976ef397d12df16@mail.gmail.com> <16af2f430711140939x45663644je0dce25c8796b18@mail.gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1195096300 32327 80.91.229.12 (15 Nov 2007 03:11:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2007 03:11:40 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, kalman.reti@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Kalman Reti" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 15 04:11:44 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IsV8p-00008n-Ds for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2007 04:11:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsV8c-0007Ry-U5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2007 22:11:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsV5d-0004Q6-6k for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2007 22:08:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsV5c-0004PD-KV for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2007 22:08:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsV5c-0004Op-EE; Wed, 14 Nov 2007 22:08:24 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IsV5b-0006Xp-Vk; Wed, 14 Nov 2007 22:08:24 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IsV5b-0004Vn-Na; Wed, 14 Nov 2007 22:08:23 -0500 In-reply-to: <16af2f430711140939x45663644je0dce25c8796b18@mail.gmail.com> (kalman.reti@gmail.com) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16981 gmane.emacs.devel:83237 Archived-At: Nothing gets "removed" from the undo list in normal use. It gets truncated, which drops off elements at the end, but other than that all that normally happens is that editing operations add elements. Markers in the list should not become free, because the undo list itself should preserve them from GC. If this is reproducible, can you put a breakpoint at Fgarbage_collect and examine the data just before the GC which gets this crash? Examine that list using the x... commands, and see if that marker is already free. Looking harder at the code, I'm convinced that the undo_list should come before the name entry in the buffer structure, Definitely not. It needs to be AFTER `name' so that it will be marked by GC. Anyone know what the elements of the undo_list mean? Some are conses with a marker in their CAR and a number in their CDR, some are just conses of two numbers and some are conses of a string and a number. The Lisp Manual documents these. Node `Undo'.