boost::thread_resource_error

1

I am getting this error in the debug.log of bitcoind:

EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_21thread_resource_errorEEEEE
boost::thread_resource_error

It happens every 2 to 4 hours, and I need to restart bitcoind.

What I do is I request recent transactions every 2 seconds, via json-rpc.

Does anybody else got this error? Is there a way of avoiding this error?

UPDATE:

I actually managed to figure out it is related to calling walletlock. Whenever walletlock is called (via json-rpc or command line, doesn't matter), a new thread is spawned and it doesn't die. Looks like a bug.

bitboy9999

Posted 2011-11-16T09:42:09.223

Reputation: 163

What is the exact RPC call you issue? listtransactions?David Schwartz 2011-11-16T16:47:47.343

I actually managed to figure out it related to calling walletlock. Whenever walletlock is called (via json-rpc or command line, doesn't matter), a new thread is spawned and it doesn't die. Looks like a bug.bitboy9999 2011-11-16T17:32:33.663

Answers

1

It seems to be an error from the Boost library that is thrown "thread-related resources cannot be acquired". You probably should contact the dev team about this error, from your description it appears to be a memory leak.

ThePiachu

Posted 2011-11-16T09:42:09.223

Reputation: 41 594

It seems like the problem is the walletlock method of the API. Whenever it is called, a new thread is created and it doesn't die. Do you know where I can report this bug?bitboy9999 2011-11-16T16:51:54.743

I`d submit it either here https://bitcointalk.org/index.php?board=4.0 or here https://github.com/bitcoin/bitcoin/issues or email the devs. Probably the second option is the best.

ThePiachu 2011-11-16T18:39:57.520