home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / bugs / 4bsd / 173 next >
Encoding:
Text File  |  1992-07-27  |  1.5 KB  |  45 lines

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