bitcoin/bitcoin — Issue #639: Memory Leak in walletlock - Threads spawned and never killed
Author: abieganski
Created: 2011-11-17 10:28:10+00:00
State: open

After calling walletlock on the Windows version of bitcoin daemon many times (via command line or json-rpc), this error appears in the debug.log:

N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_21thread_resource_errorEEEEE
boost::thread_resource_error

I checked the number of threads belonging to the bitcoind.exe process, and every time walletlock is called, thread count increases by one. Those thread do not die and eventually the no of threads limit is breached and the daemon crashes.