From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Kalman Reti" Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: mark_object crash in 22.1 and latest CVS (as of tonight) Date: Wed, 14 Nov 2007 12:39:30 -0500 Message-ID: <16af2f430711140939x45663644je0dce25c8796b18@mail.gmail.com> References: <16af2f430711081955j3d5e6745gc0f7a50e02d9a892@mail.gmail.com> <16af2f430711090332x39c8c768gb01d1dc6a0e4f427@mail.gmail.com> <16af2f430711120340q27926877tf976ef397d12df16@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195062024 21650 80.91.229.12 (14 Nov 2007 17:40:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 17:40:24 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, kalman.reti@gmail.com, Stefan Monnier , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 14 18:40:29 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 1IsME0-0007zm-El for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 18:40:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsMDn-00036Y-70 for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 12:40:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsMDE-0002k1-Us for emacs-devel@gnu.org; Wed, 14 Nov 2007 12:39:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsMDB-0002gY-Ft for emacs-devel@gnu.org; Wed, 14 Nov 2007 12:39:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsMDB-0002gL-0j for emacs-devel@gnu.org; Wed, 14 Nov 2007 12:39:37 -0500 Original-Received: from rn-out-0910.google.com ([64.233.170.185] helo=rn-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IsMDA-0007Ga-9h for emacs-devel@gnu.org; Wed, 14 Nov 2007 12:39:36 -0500 Original-Received: by rn-out-0102.google.com with SMTP id e27so197174rng for ; Wed, 14 Nov 2007 09:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=2gaeJSKyzL5I2wlQn3rrmulrJrCG1OH+GduhcjHd2uk=; b=hFmGwRZx9837xPtGIvvMVrYrRErAaKD/H7IhCiHiEpHpysdhEh2GzCWMOPRhNAV9R/CMKzJSF7J40t5o08j7ePilThqovpARWb2yF5r2u2AnwPSEM2OdA1DzNGHZ0EWjiYGWzCCsB6Z0+V1qSFk6LKpDHQaKwbEs3hnXBwGazuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hv70C0OEfHExipdyu55eebBXrxWrhNyIs7Iro49Tr+yaxEWU/BBFN9oLzj5imiSGszrnWRMz/7JEODYiXlfB3amzaDJvSQ2+f6BodLUsczXFaZgD6wDUbYmUyTgw4CVloC4Qeft962dN/78AkQkYimjI3feFnL3NaCx5sRUHiUY= Original-Received: by 10.142.131.18 with SMTP id e18mr300490wfd.1195061971074; Wed, 14 Nov 2007 09:39:31 -0800 (PST) Original-Received: by 10.143.167.19 with HTTP; Wed, 14 Nov 2007 09:39:30 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) 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:83199 gmane.emacs.bugs:16977 Archived-At: On Nov 13, 2007 3:03 PM, Richard Stallman wrote: > > I'll have to wait till I'm next at work to find out exactly which slot > > in the buffer > > this list comes from using gdb. > > Sounds like the contents of the buffer-undo-list. Especially since this > variable is GC'd specially and getting it right is tricky. > > It should be easy to verify that guess by examining the undo list slot > in the buffer object. > By moving up the stack in gdb at the time of the abort, I was able to see that the top-level mark_object call is from the undo list processing in Fgarbage_collect. The undo list is for the *Shell Command Output* buffer, and is very long since that buffer gets used over and over again for the many shell commands the elisp code issues. Looking harder at the code, I'm convinced that the undo_list should come before the name entry in the buffer structure, so I moved it there. However, I still get the crash. My first experiment of putting a proceeding breakpoint in the undo_list processing which printed out the list failed to result in an obvious correlation between elements of the undo_list the last time it was processed and the time which resulted in the abort. I suspect that the Lisp_Misc_Free cells were markers which should have been removed but for some as yet unknown reason, weren't. I'll have to craft a more thorough experiment next time. 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.