rpc.lockd segfault
Dan Nelson
dnelson at allantgroup.com
Sun Jan 18 12:36:52 PST 2004
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 at allantgroup.com
More information about the freebsd-questions
mailing list