I am trying to start bitcoind on various debian machines. The blockchain loading stops at a consistent location with a db error:
tytus@home:~/.bitcoin$ ~/.bitcoin/bitcoind getinfo
{
"version" : 60006,
"protocolversion" : 60000,
"walletversion" : 60000,
"balance" : 0.00000000,
"blocks" : 156638,
"connections" : 8,
"proxy" : "",
"difficulty" : 1090715.68005127,
"testnet" : false,
"keypoololdest" : 1336563519,
"keypoolsize" : 101,
"paytxfee" : 0.00000000,
"errors" : "EXCEPTION: 11DbException \nDb::put: Cannot allocate memory \nbitcoin in ProcessMessage() \n"
}
tytus@home:~/.bitcoin$ head db.log
unable to allocate memory for mutex; resize mutex region
It looks like a db4.8 problem. I have tried the latest binaries and a self compiled version. My ulimits are:
tytus@home:~/.bitcoin$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) 2097152
file locks (-x) unlimited
I have searched for answers on the web and found only this transcript:
http://bitcoinstats.com/irc/bitcoin-dev/logs/2011/08/11but without a solution.
Maybe by manually adding a DB_CONFIG file in ~/.bitcoin I can solve this but there must be an official solution. Can anybody help?