From owner-freebsd-alpha Sun Aug 27 14:39:50 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 12D0F37B424 for ; Sun, 27 Aug 2000 14:39:46 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id RAA27390; Sun, 27 Aug 2000 17:39:45 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id RAA02048; Sun, 27 Aug 2000 17:39:45 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 27 Aug 2000 17:39:45 -0400 (EDT) To: Andreas Klemm Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: freebsd 4.0-STABLE, jade terminates with signal 11 In-Reply-To: <20000821070549.A1230@titan.klemm.gtn.com> References: <20000821070549.A1230@titan.klemm.gtn.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14761.35357.604120.602282@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andreas Klemm writes: > Hi ! > > jade produced a core dump, gdb also core dumped after trying to > analyse jades coredump and creates a ~50MB coredump. > > andreas@srv1{3} $ gdb --version > GNU gdb 4.18 > > Is this a know problem ? > Do we have to update to 4.1-STABLE ? > What about gdb ? > gdb was broken much of the summer and fixed shortly before 4.1-release. You can rebuild gdb with the following patch to make it work: RCS file: /home/ncvs/src/contrib/gdb/gdb/dbxread.c,v retrieving revision 1.2 diff -u -r1.2 dbxread.c --- contrib/gdb/gdb//dbxread.c 1999/05/02 11:22:55 1.2 +++ contrib/gdb/gdb//dbxread.c 2000/07/12 21:24:15 @@ -313,6 +313,9 @@ add_this_object_header_file (i) int i; { + if (!n_allocated_this_object_header_files) + init_header_files (); + if (n_this_object_header_files == n_allocated_this_object_header_files) { n_allocated_this_object_header_files *= 2; @@ -2082,8 +2085,15 @@ patch_subfile_names (current_subfile, name); break; /* Ignore repeated SOs */ } +#ifdef THIS_CODE_IS_BROKEN + /* XXX + * doing this causes the "subfiles" which are allocated for + * header files to be freed twice, and otherwise corrupts + * gdb's memory & causes it to crash-n-burn -- gallatin + */ end_symtab (valu, objfile, SECT_OFF_TEXT); end_stabs (); +#endif } /* Null name means this just marks the end of text for this .o file. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message