Re: Database Corruption after application crash -
11-01-2005
, 11:37 PM
Some things to try:
1. Kill the application process and attempt recovery before it crashes.
See if the database is already corrupt at that point. This might tell
you something about when the corruption arises, and hence what
is causing it.
2. Verify that your application is not performing invalid memory
writes.
e.g. use Purify or Valgrind. It's just possible that your application
is
writing to a buffer before its written to disk, thereby corrupting the
database. BDB has various measures in place to protect itself
from this kind of attack, but I don't believe they're 100% fullproof. |