eos icon indicating copy to clipboard operation
eos copied to clipboard

nodeos crashes when set contract eosio.bios

Open pplam opened this issue 8 years ago • 3 comments

After pulled the latest eos code and successfully rebuilt, when I publish the eosio.bios contract by

cleos wallet create -n timl
cleos create key # Which gives [public_key] & [private_key]
cleos wallet import -n timl [private_key]
cleos create account eosio timl [public_key] [public_key]
cd build/contracts/
cleos set contract timl eosio.bios/ -p timl

At the last step, the following error occurs

Reading WAST/WASM from eosio.bios/eosio.bios.wasm...
Using already assembled WASM...
Publishing contract...
803639ms thread-0   main.cpp:2493                 main                 ] Failed with error: Bad Cast (7)
Invalid cast from type 'null_type' to Object

and the nodeos process crashes with the following error

1608315ms thread-0   net_plugin.cpp:2954           plugin_shutdown      ] shutdown..
1608316ms thread-0   net_plugin.cpp:2957           plugin_shutdown      ] close acceptor
1608316ms thread-0   net_plugin.cpp:2960           plugin_shutdown      ] close 0 connections
1608316ms thread-0   net_plugin.cpp:2968           plugin_shutdown      ] exit shutdown
1608316ms thread-0   fork_database.cpp:94          close                ] states.size(): 2
1608316ms thread-0   controller.cpp:261            ~controller_impl     ] db.revision(): 22946 head->block_num: 22946 blog.read_head()->block_num(): 22945
1608388ms thread-0   main.cpp:101                  main                 ] bad alloc

Maybe there is a bug in the latest eos code.

pplam avatar May 29 '18 07:05 pplam

cleos set contract eosio ${eos_path}/contracts/eosio.bios contracts/eosio.bios/eosio.bios.wast ${eos_path}/contracts/eosio.bios/eosio.bios.abi

maxb14 avatar May 29 '18 09:05 maxb14

eosio.bios is stable on v1.1.0, if you still encounter this issue with v1.1.0 please reopen this issue

andriantolie avatar Jul 20 '18 08:07 andriantolie

thanks guys, my job was done

pplam avatar Sep 21 '18 06:09 pplam