Re: Segmentation fault for man-db _2.3.20-12 on woody
On Wed, Jan 23, 2002 at 03:55:02PM +0000, Colin Watson wrote:
> On Wed, Jan 23, 2002 at 10:49:37AM -0500, Ben Collins wrote:
> > On Wed, Jan 23, 2002 at 11:12:19AM +0000, Colin Watson wrote:
> > > I need, at a bare minimum, the output of 'mandb --debug --no-purge' when
> > > run as the 'man' user. Ideally, I would get a gdb backtrace as well.
> > >
> > > On SPARC, also see bug #111288 in libdb2. Post-woody I'll be moving to
> > > libdb3, which may help matters.
> >
> > Still looks like a mandb bug to me. Perhaps you aren't passing the right
> > flags to db_open.
>
> All I do is dbopen(filename, O_RDWR, mode, DB_BTREE, &b) - or O_RDONLY
> or whatever's appropriate - where b is a BTREEINFO structure as follows:
Well, to be honest, you have a better approach. Man-db uses only the
db185 routines. So instead of linking to -ldb2 and using backward compat
routines, do this:
#define BDB_H db1/db.h
LIBS=-ldb1
No reason to use an abstracted routine when libc6 includes libdb1
anyway.
Ben
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: