Raphaeljunior / blockchain

Automatically exported from code.google.com/p/blockchain
0 stars 0 forks source link

Segfault on initial run #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I compiled with make then tried to run for the first time with 
"./blockchain.out ~/.bitcoin/blocks"
2. The first 200,000 or so blocks scan fine and then I started getting a lot of 
"failed to decode public key in output script" over various blocks but it keeps 
going.
3. Eventually it segfaults on block 249,957 with the below output.

WARNING: Failed to decode public key in output script. Block 249,957 : 
Transaction: 49 : OutputIndex: 0 scriptLength: 60
TRANSACTION 
HASH:587f949b39e4590e40ed2a1e06c9cfb3ae4b73a18f7261251e6e68a4a2d41896
==========================================
FAILED TO LOCATE PUBLIC KEY
ChallengeScriptLength: 73 bytes long
63 
aa 20 00 00 00 00 00 19 d6 68 9c 08 5a e1 65 83 
1e 93 4f f7 63 ae 46 a2 a6 c1 72 b3 f1 b6 0a 8c 
e2 6f 87 67 aa 20 6f e2 8c 0a b6 f1 b3 72 c1 a6 
a2 46 ae 63 f7 4f 93 1e 83 65 e1 5a 08 9c 68 d6 
19 00 00 00 00 00 87 68 
==========================================

WARNING: Failed to decode public key in output script. Block 249,957 : 
Transaction: 97 : OutputIndex: 0 scriptLength: 73
TRANSACTION 
HASH:b5765f55d18f0c0b31132c71294b40dde96d629538f2121d17f4bd4dc0c25008
Processed block #250000 of 339111 total.
blockchain.out: BlockChain.cpp:811: bool 
BlockImpl::readOutput(BlockChain::BlockOutput&): Assertion `0' failed.
Aborted (core dumped)

What version of the product are you using? On what operating system?
I'm running ubuntu 14.04 and the latest version of the code I downloaded on 
1/14/15

Original issue reported on code.google.com by arennh...@gmail.com on 15 Jan 2015 at 10:08