rpc.lockd segfault

Kris Kennaway kris at obsecurity.org
Sun Jan 18 06:06:00 PST 2004


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.

e.g

cd /usr/src/usr.sbin/rpc.lockd
make objdir
cd obj
gdb ./rpc.lockd

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040118/6c129682/attachment.bin


More information about the freebsd-questions mailing list