From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 06:05:11 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 6B9BC16A4CE for ; Sun, 18 Jan 2004 06:05:11 -0800 (PST) Received: from mail.romat.com (mail.romat.com [212.143.245.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB96243D64 for ; Sun, 18 Jan 2004 06:04:34 -0800 (PST) (envelope-from gilad_bsd@romat.com) Received: from localhost (localhost.lan [127.0.0.1]) by mail.romat.com (Postfix) with ESMTP id 44293EB2CA; Sun, 18 Jan 2004 16:04:32 +0200 (IST) Received: from mail.romat.com ([192.168.1.10]) by localhost (ladon.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41891-04; Sun, 18 Jan 2004 16:04:30 +0200 (IST) Received: from romat.com (unknown [192.168.1.199]) by mail.romat.com (Postfix) with ESMTP id B7403EB2B2; Sun, 18 Jan 2004 16:04:30 +0200 (IST) Message-ID: <400A914F.6090802@romat.com> Date: Sun, 18 Jan 2004 15:59:43 +0200 From: Gilad Rom Organization: Romat Telecom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Antoine Jacoutot References: <200401171338.15670.ajacoutot@lphp.org> <200401172027.19927.ajacoutot@lphp.org> <20040117220110.GB78912@xor.obsecurity.org> <200401181458.44948.ajacoutot@lphp.org> In-Reply-To: <200401181458.44948.ajacoutot@lphp.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: Kris Kennaway 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 14:05:11 -0000 Antoine Jacoutot wrote: > On Saturday 17 January 2004 23:01, Kris Kennaway 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). > > > Well, I recompiled rpc.lockd using -ggdb and -g, but when I launch the > following command: > $ gdb /usr/sbin/rpc.lockd > ... I get: > > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols > found)... > > How come no debugging symbols are found ? > > Here is how I compiled rpc.lockd > ( CFLAGS= -g -ggdb -O -pipe ): > $ rm -Rf /usr/obj/* > $ cd /usr/src/usr.sbin/rpc.lockd > $ make clean && make obj && make depend && make all install > > rm -f nlm_prot_svc.c nlm_prot.h test rpc.lockd kern.o nlm_prot_svc.o lockd.o > lock_proc.o lockd_lock.o rpc.lockd.8.gz rpc.lockd.8.cat.gz > /usr/obj/usr/src/usr.sbin/rpc.lockd created for /usr/src/usr.sbin/rpc.lockd > rpcgen -L -C -m -o nlm_prot_svc.c /usr/include/rpcsvc/nlm_prot.x > rm -f .depend > mkdep -f .depend -a -I. > -I/usr/include/rpcsvc /usr/src/usr.sbin/rpc.lockd/kern.c > nlm_prot_svc.c /usr/src/usr.sbin/rpc.lockd/lockd.c /usr/src/usr.sbin/rpc.lockd/lock_proc.c /usr/src/usr.sbin/rpc.lockd/lockd_lock.c > echo rpc.lockd: /usr/lib/libc.a /usr/lib/librpcsvc.a /usr/lib/libutil.a > >>>.depend > > cc -g -ggdb -O -pipe -march=pentium3 -I. -I/usr/include/rpcsvc > -c /usr/src/usr.sbin/rpc.lockd/kern.c > cc -g -ggdb -O -pipe -march=pentium3 -I. -I/usr/include/rpcsvc -c > nlm_prot_svc.c > cc -g -ggdb -O -pipe -march=pentium3 -I. -I/usr/include/rpcsvc > -c /usr/src/usr.sbin/rpc.lockd/lockd.c > cc -g -ggdb -O -pipe -march=pentium3 -I. -I/usr/include/rpcsvc > -c /usr/src/usr.sbin/rpc.lockd/lock_proc.c > cc -g -ggdb -O -pipe -march=pentium3 -I. -I/usr/include/rpcsvc > -c /usr/src/usr.sbin/rpc.lockd/lockd_lock.c > cc -g -ggdb -O -pipe -march=pentium3 -I. -I/usr/include/rpcsvc -o rpc.lockd > kern.o nlm_prot_svc.o lockd.o lock_proc.o lockd_lock.o -lrpcsvc -lutil > gzip -cn /usr/src/usr.sbin/rpc.lockd/rpc.lockd.8 > rpc.lockd.8.gz > install -s -o root -g wheel -m 555 rpc.lockd /usr/sbin install -s uses strip(1), so all your debugging symbols are erased. the original binary left in-place should have debugging symbols. Gilad.