Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: shads on July 04, 2011, 01:13:04 AM



Title: Bug report: ThreadRPCServer crash
Post by: shads on July 04, 2011, 01:13:04 AM
Not sure what the official channel for bug reporting is so here seems a good place.

I'm developing a pool server in java and during testing under load (max 5 concurrent requests, about 1 request / 30ms) the bitcoin server that's feeding it getwork requests keeps crashing with the following message:

http://dl.dropbox.com/u/20541506/bitcoind%20error.jpg

followed by:

http://dl.dropbox.com/u/20541506/bitcoin%20error2.jpg

It's reproducible every time I run the same simple code that generates a lot of requests but usually stays up for about 1-2 mins of load before the crash.

My bitcoin.conf file is standard except for uncommenting the json-rpc user and password fields.  Bitcoin version is: 0.3.23-beta.  Downloaded as windows installer from main website.


Title: Re: Bug report: ThreadRPCServer crash
Post by: error on July 04, 2011, 05:04:19 PM
What's unusual about the data you are sending to bitcoind?


Title: Re: Bug report: ThreadRPCServer crash
Post by: shads on July 05, 2011, 12:16:46 AM
Nothing unusual about the requests themselves just standard getwork and getblocknumber requests with following headers:
Content-Type: application/json
Host: localhost:8999
Content-Length: 32
Authorization: Basic somebase64rubbish

The only thing out of the ordinary is that the requests are all coming from one address but the client is multithreaded so it's very likely there's many concurrent requests from one address at any one time.

Forgot to mention I'm running the bitcoin daemon on winXP 32 bit.

Also I doubt it should be an issue but I'm using org.json library which creates json strings with newlines (but no indenting) i.e.
Code:
{
"id": 1,
"method": "getwork"
}