From owner-freebsd-hackers Mon Apr 12 14:26:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 8D5301553F for ; Mon, 12 Apr 1999 14:26:20 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.2/8.9.2) id QAA42891; Mon, 12 Apr 1999 16:23:57 -0500 (CDT) (envelope-from dan) Date: Mon, 12 Apr 1999 16:23:56 -0500 From: Dan Nelson To: "David E. Cross" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: ypserv Message-ID: <19990412162356.A42830@dan.emsphone.com> References: <199904121852.OAA22126@cs.rpi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199904121852.OAA22126@cs.rpi.edu>; from "David E. Cross" on Mon Apr 12 14:52:30 GMT 1999 X-OS: FreeBSD 3.1-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Apr 12), David E. Cross said: > Our ypserv processes have been dieing a great deal lately (luckily > they restart themselves, but not before all the clients rebind to > another machine). I have tracked the problem down to a stack > corruption. Apparently caused by a stack overflow (I am still > working on it, don't get excited yet ;). I have run into a bit of a > snag with gdb, I do not understand the following when I print out a > function pointer: > > "" I have found many such references to the > same function, but with different numbers. I am confused as to what > this notation means, I haven't found any reference to it in the gdb > manpage or the gdb "info". It's the offset (in bytes) into a function from a source file not compiled with "-g". gcc can't get line-number information, so it prints the next best thing. The solution is to recompile ypserv with CFLAGS=-g, and make sure you install a non-stripped version. Then gdb will be able to print line number and variable contents from coredumps. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message