From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 06:01:10 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 2ED9E16A4CE for ; Sun, 18 Jan 2004 06:01:10 -0800 (PST) Received: from mail.lphp.org (APastourelles-107-1-6-191.w193-251.abo.wanadoo.fr [193.251.29.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8829C43D67 for ; Sun, 18 Jan 2004 06:01:00 -0800 (PST) (envelope-from ajacoutot@lphp.org) Received: from sta01 (sta01.lphp.local [192.168.0.3]) by mail.lphp.org (8.12.10/8.12.10) with ESMTP id i0IDwn5F046416; Sun, 18 Jan 2004 14:58:49 +0100 (CET) (envelope-from ajacoutot@lphp.org) From: Antoine Jacoutot To: Kris Kennaway Date: Sun, 18 Jan 2004 14:58:44 +0100 User-Agent: KMail/1.5.4 References: <200401171338.15670.ajacoutot@lphp.org> <200401172027.19927.ajacoutot@lphp.org> <20040117220110.GB78912@xor.obsecurity.org> In-Reply-To: <20040117220110.GB78912@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401181458.44948.ajacoutot@lphp.org> 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 14:01:10 -0000 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 -o root -g wheel -m 444 rpc.lockd.8.gz /usr/share/man/man8 /usr/share/man/man8/lockd.8.gz -> /usr/share/man/man8/rpc.lockd.8.gz Thanks a lot for your help. Antoine