No description provided.
Avoid a segfault in getblock if it can't read a block from disk. #4501
pull rdponticelli wants to merge 1 commits into bitcoin:master from Criptomonedas:segfaultgetblock changing 1 files +3 −1-
rdponticelli commented at 12:50 AM on July 10, 2014: contributor
-
jgarzik commented at 1:33 AM on July 10, 2014: contributor
General concept is OK. Needs minor revisions.
-
rdponticelli commented at 2:10 AM on July 10, 2014: contributor
Thanks for the feedback. Revisions done.
-
Avoid a segfault on getblock if it can't read a block from disk. 954d2e7201
-
BitcoinPullTester commented at 4:20 AM on July 10, 2014: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4501_954d2e7201fcea7a95c5a95be574a8c0a1f16ce1/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
-
laanwj commented at 6:08 AM on July 10, 2014: member
Code changes look straightforward and correct, haven't tested.
-
laanwj commented at 3:01 AM on July 11, 2014: member
Tested:
- Start bitcoind -testnet
mv blk00000.dat blk00000.dat.oldgetblock 00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206
Without patch: Segmentation fault With patch: {"code":-32603,"message":"Can't read block from disk"}
ACK
- laanwj merged this on Jul 11, 2014
- laanwj closed this on Jul 11, 2014
- laanwj referenced this in commit f0fc81a083 on Jul 11, 2014
- MarcoFalke locked this on Sep 8, 2021
Contributors