Bitcoin Forum
August 20, 2019, 11:51:09 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bug report: ThreadRPCServer crash  (Read 1081 times)
shads
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


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.
1566345069
Hero Member
*
Offline Offline

Posts: 1566345069

View Profile Personal Message (Offline)

Ignore
1566345069
Reply with quote  #2

1566345069
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1566345069
Hero Member
*
Offline Offline

Posts: 1566345069

View Profile Personal Message (Offline)

Ignore
1566345069
Reply with quote  #2

1566345069
Report to moderator
1566345069
Hero Member
*
Offline Offline

Posts: 1566345069

View Profile Personal Message (Offline)

Ignore
1566345069
Reply with quote  #2

1566345069
Report to moderator
1566345069
Hero Member
*
Offline Offline

Posts: 1566345069

View Profile Personal Message (Offline)

Ignore
1566345069
Reply with quote  #2

1566345069
Report to moderator
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
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!