Article View: comp.bugs.4bsd
Article #7bsd db deletion problem
From: Ron Mcewen
Date: Mon, 27 Jul 1992 19:40
Date: Mon, 27 Jul 1992 19:40
33 lines
1578 bytes
1578 bytes
I using the Berkeley DB hash routines (recently picked up from gatekeeper.dec.com - all sccs id 5.?, updated as recently as 6/17/91), primarily using the supplied ndbm interface. I'm running them on a Sun Sparc 1+ under SunOS 4.1.1. I had a database corruption problem so I wrote a simple test program and discovered a problem when doing the following: A new database is created and opened. Records are added to it (small key and data (less than 50 characters total)). All the records are retrieved (they're there). All the records are successfully deleted (no non-zero return codes). Then, a call to dbm_firstkey returns a non-NULL key pointer (ack!!) which turns out to be some garbled part of what was previously in a data record. This problem does NOT happen when doing this with 100 or 1000 records, but does for a 10000 record database. Questions: Has this problem or a similar one been noted before? Is there a fix? Where is the best place to get the latest bug fixes and versions? An other ideas? Thank you. -- Ron McEwen | email : chucker@bnr.ca | phone: (613) 765-4591 Bell-Northern Research Ltd., Ottawa, Ontario, Canada
Technical Details
Message-ID:
<1992Jul27.194056.26921@bnr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bcars267!chuckerShow Full Headers
Complete Article Headers
Newsgroups: comp.bugs.4bsd Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bcars267!chucker From: chucker@bnr.ca (Ron Mcewen) Subject: bsd db deletion problem Message-ID: <1992Jul27.194056.26921@bnr.ca> Sender: news@bnr.ca (usenet) Nntp-Posting-Host: bcars206 Organization: Bell-Northern Research, Ontario, Canada Date: Mon, 27 Jul 1992 19:40:56 GMT Lines: 33