Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2000 17:39:45 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Andreas Klemm <andreas@klemm.gtn.com>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: freebsd 4.0-STABLE, jade terminates with signal 11
Message-ID:  <14761.35357.604120.602282@grasshopper.cs.duke.edu>
In-Reply-To: <20000821070549.A1230@titan.klemm.gtn.com>
References:  <20000821070549.A1230@titan.klemm.gtn.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14761.35357.604120.602282>