Crash when `block_api.get_block_range` is called
For {"jsonrpc":"2.0", "method":"block_api.get_block_range", "params":{"starting_block_num": 60, "count": 30}, "id":1}
an exception is triggered:
2022-07-20T11:32:38.601012 witness_plugin.cpp:346 block_production_loo ] Generated block #117 with timestamp 2022-07-20T11:32:39 at time 2022-07-20T11:32:39
2022-07-20T11:32:38.916637 database.cpp:609 fetch_block_range ] starting_block_num: 60 count: 30
2022-07-20T11:32:38.916684 database.cpp:612 fetch_block_range ] fork_items.size(): 0
2022-07-20T11:32:38.916701 database.cpp:620 fetch_block_range ] remaining_count: 30
2022-07-20T11:32:38.916730 block_log.cpp:413 read_block_range_by_ ] size_of_all_blocks: 3516
2022-07-20T11:32:38.916758 database.cpp:626 fetch_block_range ] result.size(): 30
2022-07-20T11:32:38.916772 database.cpp:628 fetch_block_range ] result.front()->get_block_num(): 60 result.back()->get_block_num(): 89
2022-07-20T11:32:38.924226 block_log.cpp:326 decompress_raw_block ] Fatal error decompressing block from block log: {"code":0,"name":"exception","message":"unspecified","stack":[{"context":{"level":"error","file":"block_log.cpp","line":591,"method":"decompress_block_zstd_helper","hostname":"","timestamp":"2022-07-20T11:32:38"},"format":"Error decompressing block with zstd","data":{}}]}
terminate called after throwing an instance of 'fc::exception'
Aborted (core dumped)
The crash is observed in testnet.