Common Errors
This page outlines some of the most common problems that people encounter and some suggested courses of action.
Symptom: Core dumps or garbage returns from random Berkeley DB operations.
Possible Cause: Failure to zero out DBT structure before issuing request.
Fix: Before using a DBT, you must initialize all its elements to 0 and then set the ones you are using explicitly.
Symptom: Random crashes and/or database corruption.
Possible Cause: Running multiple threads, but did not specify DB_THREAD to DB→open or DBENV→open.
Fix: Any time you are sharing a handle across multiple threads, you must specify DB_THREAD when you open that handle.
Symptom: DBENV→open returns EINVAL.
Possible Cause: The environment home directory is a remote mounted ...