From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Fix to long-standing crashes in GC Date: Sun, 23 May 2004 11:32:35 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405231632.i4NGWZo07382@raven.dms.auburn.edu> References: <40A3BC23.8060000@math.ku.dk> <40AF976B.2090104@math.ku.dk> <9003-Sun23May2004183302+0300-eliz@gnu.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085330095 2852 80.91.224.253 (23 May 2004 16:34:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 May 2004 16:34:55 +0000 (UTC) Cc: larsh@math.ku.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 23 18:34:46 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 1BRvvy-0005g4-00 for ; Sun, 23 May 2004 18:34:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BRvvx-0004Li-00 for ; Sun, 23 May 2004 18:34:46 +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 1BRvvv-0003Ek-33 for emacs-devel@quimby.gnus.org; Sun, 23 May 2004 12:34:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BRvvT-0003E1-NI for emacs-devel@gnu.org; Sun, 23 May 2004 12:34:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BRvux-000347-QC for emacs-devel@gnu.org; Sun, 23 May 2004 12:34:14 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BRvuQ-0002rx-J7; Sun, 23 May 2004 12:33:10 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i4NGX8uE012378; Sun, 23 May 2004 11:33:08 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i4NGWZo07382; Sun, 23 May 2004 11:32:35 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: eliz@gnu.org In-reply-to: <9003-Sun23May2004183302+0300-eliz@gnu.org> 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:23854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23854 Eli Zaretskii wrote: > >Can you figure out what data structure is being traversed by those > >frames? That's a lot of work, but it is the only way I know of to try > >to debug a problem of this kind. > > > I am afraid I do not know enough about gdb and Emacs memory management > to do that. There's some guidance in the file etc/DEBUG (search for "in GC"), and you can always ask for more specific help here. Yes, except that the guidance there seems to assume that the person doing the debugging has a pretty good knowledge about Emacs memory management. Anyway, I believe that the problem has been fixed by recent changes made by Kim. If Lars still has his old GDB session around, then I guess that he might see something very similar to: (gdb) p last_marked_index $197 = 18 (gdb) p last_marked[17] $198 = 145714794 (gdb) pr # (gdb) p last_marked[16] $199 = 148693005 (gdb) pr (# . -37) That is, the problem was caused by trying to mark a Lisp_Misc_Free object. If Lars sees anything else, that might be interesting. I guess that Lars will not be able to produce the crash any more with the latest CVS. If he still can, then he should definitely report that, since we believe that these crashes are fixed. Sincerely, Luc.