From owner-freebsd-alpha Tue Feb 26 5:54: 3 2002 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 7D82337B400 for ; Tue, 26 Feb 2002 05:53:57 -0800 (PST) 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 IAA29062; Tue, 26 Feb 2002 08:53:56 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g1QDrQF06958; Tue, 26 Feb 2002 08:53:26 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15483.37718.727882.220671@grasshopper.cs.duke.edu> Date: Tue, 26 Feb 2002 08:53:26 -0500 (EST) To: naddy@mips.inka.de (Christian Weisgerber) Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: -CURRENT lockups In-Reply-To: References: X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Christian Weisgerber writes: > John Baldwin wrote: > > > Anyways, can you pull up gdb on your kernel.debug > > then do 'l lockmgr+0x844' to get the source line for that? > > gdb is broken. It seems to get caught into an infinite loop on > startup. It continues to eat CPU but never proceeds to a prompt. > I guess that's fallout from the new binutils. Yes. There are 2 workarounds. One is to use a /usr/libexec/elf/gdb from -stable (or -current pre-binutils). The other is to rebuild gdb with a patch that breaks buildworld. Patch below. The problem is that xmalloc() and xrealloc() are multiply defined and the rtld keeps looking them up in shared libs, getting confused, and looking them up again, etc. Drew Index: xmalloc.c =================================================================== RCS file: /home/ncvs/src/contrib/binutils/libiberty/xmalloc.c,v retrieving revision 1.1.1.5 diff -u -r1.1.1.5 xmalloc.c --- xmalloc.c 27 Jan 2002 11:59:59 -0000 1.1.1.5 +++ xmalloc.c 18 Feb 2002 19:46:55 -0000 @@ -131,7 +131,7 @@ #endif /* HAVE_SBRK */ xexit (1); } - +#if 0 PTR xmalloc (size) size_t size; @@ -146,7 +146,7 @@ return (newmem); } - +#endif PTR xcalloc (nelem, elsize) size_t nelem, elsize; @@ -163,6 +163,7 @@ return (newmem); } +#if 0 PTR xrealloc (oldmem, size) PTR oldmem; @@ -181,3 +182,4 @@ return (newmem); } +#endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message