From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 12:36:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E91A16A4CE for ; Sun, 18 Jan 2004 12:36:52 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9C7D43D55 for ; Sun, 18 Jan 2004 12:36:44 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i0IKaiXw079466; Sun, 18 Jan 2004 14:36:44 -0600 (CST) (envelope-from dan) Date: Sun, 18 Jan 2004 14:36:44 -0600 From: Dan Nelson To: Kris Kennaway Message-ID: <20040118203644.GA76639@dan.emsphone.com> References: <200401171338.15670.ajacoutot@lphp.org> <200401172027.19927.ajacoutot@lphp.org> <20040117220110.GB78912@xor.obsecurity.org> <200401181458.44948.ajacoutot@lphp.org> <20040118140539.GA87622@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040118140539.GA87622@xor.obsecurity.org> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: Antoine Jacoutot cc: freebsd-questions@freebsd.org Subject: Re: rpc.lockd segfault X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 20:36:52 -0000 In the last episode (Jan 18), Kris Kennaway said: > On Sun, Jan 18, 2004 at 02:58:44PM +0100, Antoine Jacoutot wrote: > > > Unfortunately that doesn't give any information. You'll need to > > > recompile rpc.lockd with GDB debugging symbols (add -ggdb to > > > CFLAGS). See the developer's handbook on the website for more > > > information about debugging program failures with gdb > > > (specifically, how to obtain a useful backtrace). > > > $ gdb /usr/sbin/rpc.lockd > > > How come no debugging symbols are found ? > > > install -s -o root -g wheel -m 555 rpc.lockd /usr/sbin > ^^ > > This strips the debugging symbols. Run gdb against the version of the > binary in the obj/ directory. If you add the -g flag to DEBUG_FLAGS instead of directly to CFLAGS, that will tell the install target not to strip the final binaries (see bsd.prog.mk). -- Dan Nelson dnelson@allantgroup.com