From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Fix to long-standing crashes in GC Date: 20 May 2004 02:44:42 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <40A3BC23.8060000@math.ku.dk> <200405180013.i4I0Ddl15818@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085014901 11236 80.91.224.253 (20 May 2004 01:01:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 May 2004 01:01:41 +0000 (UTC) Cc: Luc Teirlinck , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 20 03:01:32 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQbwC-0004V3-00 for ; Thu, 20 May 2004 03:01:32 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQbwB-00061O-00 for ; Thu, 20 May 2004 03:01:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQbtS-0005a2-79 for emacs-devel@quimby.gnus.org; Wed, 19 May 2004 20:58:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQbsS-0005BQ-Jj for emacs-devel@gnu.org; Wed, 19 May 2004 20:57:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQbfx-0001a2-Gq for emacs-devel@gnu.org; Wed, 19 May 2004 20:45:22 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQbfu-0001ZK-OZ; Wed, 19 May 2004 20:44:43 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id DE9305EE025; Thu, 20 May 2004 02:44:40 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23752 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23752 Stefan Monnier writes: > > Yesterday, I did a partial test where I wrote a fun to check all > > Lisp_Misc blocks for invalid misc types (except Lisp_Misc_Free) for > > every call to Fcons -- and no such problems occurred, i.e. the bad > > misc cells pointed to from some cons cells were NOT in the marker > > block chain... > > Hmm... was this run before, after, or during GC ? It was on every entry to Fcons -- so pretty often. I also call'ed the check function directly from gdb after it had crashed, and there were still no invalid misc objects... > Can you use the mem_find to try and figure out whether it's pointing at a > GC-managed block or not? IIRC, it was pointing to a MEM_CONS block. > Can you also disable the block-release code (the one that calls xfree on > blocks of cnos cells and lisp_misc objects) to see if it is maybe pointing > to blocks that have been reclaimed? I will try that. -- Kim F. Storm http://www.cua.dk