Bitcoin Forum
December 11, 2024, 10:46:00 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bug report: ThreadRPCServer crash  (Read 1203 times)
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
July 04, 2011, 01:13:04 AM
 #1

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:



followed by:



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.

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
July 04, 2011, 05:04:19 PM
 #2

What's unusual about the data you are sending to bitcoind?

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
July 05, 2011, 12:16:46 AM
 #3

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"
}

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!