*BSD News Article 7955


Return to BSD News archive

Xref: sserve comp.unix.bsd:8006 comp.unix.misc:5590
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!sunic!psinntp!psinntp!dg-rtp!webo!dg-webo!pds
From: pds@lemming.webo.dg.com (Paul D. Smith)
Newsgroups: comp.unix.bsd,comp.unix.misc
Subject: Bugs in the 4.3BSD-Reno+ db BTREE library...
Message-ID: <PDS.92Nov19121428@lemming.webo.dg.com>
Date: 19 Nov 92 16:14:27 GMT
Sender: usenet@webo.dg.com (Usenet Administration)
Organization: NSDD/ONSD, Data General Corp., Westboro, MA
Lines: 53

Is it just me or has anyone else noticed the plethora of bugs in the
4.3BSD-Reno version of the db BTREE library?  The Hash library seems
to work fine (I haven't tested it extensively), but the BTREE library
has bugs such that even the simple test program that comes with it
won't run!

I've fixed the obvious bugs (mainly calling the DB.put(), etc.
functions with DB.internal instead of DB itself)--this also involved
creating an internal version of bt_put() which takes DB.internal since
bt_put() is called recursively and DB is not available at the point of
recursion.

Now the test program (words.c) reads my dictionary up to about the d's
and then dies because the BTHEADER.h_linp[] array has been corrupted
by having data copied into the middle of it.  I haven't finished
tracking that down yet.

I pulled this version of the db library from an anonymous ftp site (I
think gatekeeper.dec.com) and it seems kind of old--basically early
1991.  The what strings from the .c files are below.

Is this the latest version?  Has anyone fixed these problems already?
Can anyone point me to an archive site which has the very latest
stuff?

Although I do have this group subscribed, my feed is quite slow so
email is best, thanks.

        big.c   5.2 (Berkeley) 2/22/91
        btree.c 5.9 (Berkeley) 5/7/91
        btree.h 5.2 (Berkeley) 2/22/91
        delete.c        5.2 (Berkeley) 2/22/91
        insert.c        5.3 (Berkeley) 2/22/91
        lrucache.c      5.3 (Berkeley) 2/22/91
        lrucache.h      5.1 (Berkeley) 1/23/91
        lruhash.c       5.2 (Berkeley) 2/22/91
        lrutils.c       5.2 (Berkeley) 2/22/91
        search.c        5.2 (Berkeley) 4/8/91
        seq.c   5.4 (Berkeley) 3/3/91
        split.c 5.2 (Berkeley) 2/22/91
        storage.c       5.2 (Berkeley) 2/22/91
        updutils.c      5.2 (Berkeley) 2/22/91
        utils.c 5.3 (Berkeley) 3/3/91
--

                                                                paul
-----
 ------------------------------------------------------------------
| Paul D. Smith                          |    paul_smith@dg.com    |
| Data General Corp.                     | pds@lemming.webo.dg.com |
| Network Systems Development Division   |                         |
| Open Network Systems Development       |   "Pretty Damn S..."    |
 ------------------------------------------------------------------