Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created February 27, 2018 21:32
Show Gist options
  • Save hugo-dc/b2870e5aaaa382d405e6727f93b6867b to your computer and use it in GitHub Desktop.
Save hugo-dc/b2870e5aaaa382d405e6727f93b6867b to your computer and use it in GitHub Desktop.
[test](develop)$ ETHEREUM_TEST_PATH=/Users/hugo/workspace/EWASM/GasUsage/tests ./testeth -t GeneralStateTests/stEWASMTests -- --filltests --vm hera --singlenet "Byzantium"
Running 1 test case...
Test Case "stEWASMTests":
Executing...
$callDelegate 3e8 0 0 14 2
Executing...
getAddress 20
storageStore 0 20
Out of gas :(
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:540: error: in "GeneralStateTests/stEWASMTests": callDelegateOOG Check State: a94f5374fce5edbc8e2a8697c15331677e6ebf0b: incorrect balance 99999977315, expected 99999979000
Byzantium data: 0 gas: 0 val: 0
Executing...
$callDelegate 3e8 0 0 14 2
Executing...
getAddress 20
storageStore 0 20
Out of gas :(
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
create 0 10 0 0
Executing...
create 0 10 0 0
Executing...
storageStore c8 12c
$call 30d40 0 0 0 0
storageStore c8 64
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:551: error: in "GeneralStateTests/stEWASMTests": callNoDataNoValue Check State: deadbeef00000000000000000000000000000001: incorrect storage [0x] = 0x, expected [0x] = 0x01
Byzantium data: 0 gas: 0 val: 0
Executing...
storageStore c8 12c
$call 30d40 0 0 0 0
storageStore c8 64
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
$callStatic 30d40 0 0 14 2
Executing...
getAddress 20
storageStore 62 20
InternalError: "storageStore" attempted in static mode
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Executing...
$callStatic 30d40 0 0 14 2
Executing...
getAddress 20
storageStore 62 20
InternalError: "storageStore" attempted in static mode
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Executing...
getCodeSize
storageStore 0 20
Executing...
getCodeSize
storageStore 0 20
Executing...
$callDelegate 30d40 0 0 14 2
Executing...
getAddress 20
storageStore 0 20
return 40 2
InternalError: Out of bounds (destination) memory copy.
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Executing...
$callDelegate 30d40 0 0 14 2
Executing...
getAddress 20
storageStore 0 20
return 40 2
InternalError: Out of bounds (destination) memory copy.
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Executing...
getBlockCoinbase 20
storageStore 0 20
Executing...
getBlockCoinbase 20
storageStore 0 20
Executing...
callDataSize
storageStore ffff0 fffec
Executing...
callDataSize
storageStore ffff0 fffec
Executing...
getBalance 0 64
storageStore 64 c8
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:540: error: in "GeneralStateTests/stEWASMTests": extCodeCopy Check State: a94f5374fce5edbc8e2a8697c15331677e6ebf0b: incorrect balance 99999946928, expected 99999957728
Byzantium data: 0 gas: 0 val: 0
Executing...
getBalance 0 64
storageStore 64 c8
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
24%...
Executing...
callDataSize
storageStore 0 20
Executing...
callDataSize
storageStore 0 20
Executing...
$call 186a0 0 20 20 1
Executing...
storageStore c0 100
DEBUG printMemHex(0x0:0x2): cd ab
revert 0 2
InternalError: Out of bounds (destination) memory copy.
DEBUG printMemHex(0x60:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
getReturnDataSize
DEBUG printMemHex(0xe0:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
storageStore 80 e0
getReturnDataSize
InternalError: Trap condition: unreachable
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:551: error: in "GeneralStateTests/stEWASMTests": revert Check State: abcdabcdabcdabcdabcdabcdabcdabcdabcdabcd: incorrect storage [0x] = 0x, expected [0x] = 0x02
Byzantium data: 0 gas: 0 val: 0
Executing...
$call 186a0 0 20 20 1
Executing...
storageStore c0 100
DEBUG printMemHex(0x0:0x2): cd ab
revert 0 2
InternalError: Out of bounds (destination) memory copy.
DEBUG printMemHex(0x60:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
getReturnDataSize
DEBUG printMemHex(0xe0:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
storageStore 80 e0
getReturnDataSize
InternalError: Trap condition: unreachable
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
getAddress fffd0
storageStore ffff0 fffd0
Executing...
getAddress fffd0
storageStore ffff0 fffd0
Executing...
codeCopy 0 0 a
storageStore 64 0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:540: error: in "GeneralStateTests/stEWASMTests": codeCopy Check State: a94f5374fce5edbc8e2a8697c15331677e6ebf0b: incorrect balance 99999917716, expected 99999957728
Byzantium data: 0 gas: 0 val: 0
Executing...
codeCopy 0 0 a
storageStore 64 0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
callDataCopy 101818 0 80
storageStore 1019f0 1019b0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:551: error: in "GeneralStateTests/stEWASMTests": ecAddCallDataCopy Check State: b94f5374fce5edbc8e2a8697c15331677e6ebf0b: incorrect storage [0x] = 0xd3cf876dc108c2d3a81c8716a91678d9851518685b04859b021a132ee7440603, expected [0x] = 0x030644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd3
Byzantium data: 0 gas: 0 val: 0
Executing...
callDataCopy 101818 0 80
storageStore 1019f0 1019b0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
useGas 5221880
getGasLeft
Out of gas :(
Executing...
useGas 5221880
getGasLeft
Out of gas :(
Executing...
getAddress 0
getBalance 0 64
storageStore c8 64
Executing...
getAddress 0
getBalance 0 64
storageStore c8 64
Executing...
getBlockNumber
storageStore 0 20
Executing...
getBlockNumber
storageStore 0 20
Executing...
callDataCopy fffd0 0 2
storageStore ffff0 fffd0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:551: error: in "GeneralStateTests/stEWASMTests": callDataCopyInRust Check State: deadbeef00000000000000000000000000000001: incorrect storage [0x] = 0x4523, expected [0x] = 0x2345
Byzantium data: 0 gas: 0 val: 0
Executing...
callDataCopy fffd0 0 2
storageStore ffff0 fffd0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
getBlockHash 0 20
storageStore 0 20
Executing...
getBlockHash 0 20
storageStore 0 20
48%...
Executing...
getTxGasPrice 0
storageStore 64 0
Executing...
getTxGasPrice 0
storageStore 64 0
Executing...
getCaller 20
storageStore 0 20
Executing...
getCaller 20
storageStore 0 20
Executing...
getAddress 20
storageStore 0 20
Executing...
getAddress 20
storageStore 0 20
Executing...
$callCode 186a0 0 20 20 1
Executing...
storageStore 0 20
storageStore 80 60
Executing...
$callCode 186a0 0 20 20 1
Executing...
storageStore 0 20
storageStore 80 60
Executing...
getBalance 0 64
storageStore c8 64
Executing...
getBalance 0 64
storageStore c8 64
Executing...
getCaller 20
selfDestruct 20
Executing...
getCaller 20
selfDestruct 20
Executing...
storageStore ffff0 fffd0
Executing...
storageStore ffff0 fffd0
Executing...
getBlockGasLimit
DEBUG printMemHex(0x0:0x40): 0 0 50 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
storageStore 64 0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:551: error: in "GeneralStateTests/stEWASMTests": getBlockGasLimit Check State: deadbeef00000000000000000000000000000000: incorrect storage [0x] = 0x05500000, expected [0x] = 0x05000001
Byzantium data: 0 gas: 0 val: 0
Executing...
getBlockGasLimit
DEBUG printMemHex(0x0:0x40): 0 0 50 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
storageStore 64 0
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
getAddress 40
getExternalCodeSize 40
storageStore 0 20
getExternalCodeSize 60
storageStore a0 80
Executing...
getAddress 40
getExternalCodeSize 40
storageStore 0 20
getExternalCodeSize 60
storageStore a0 80
Executing...
getAddress 0
getBalance 0 20
getGasLeft
storageStore 40 60
Executing...
getAddress 0
getBalance 0 20
getGasLeft
storageStore 40 60
73%...
Executing...
getBlockDifficulty 20
storageStore 0 20
Executing...
getBlockDifficulty 20
storageStore 0 20
Executing...
return 0 1
InternalError: Out of bounds (destination) memory copy.
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:562: error: in "GeneralStateTests/stEWASMTests": createFromTransaction Check State: 6295ee1b4f6dd65047762f924ecd367c17eabf8f: incorrect code '0x', expected '0x01'
Byzantium data: 0 gas: 0 val: 0
Executing...
return 0 1
InternalError: Out of bounds (destination) memory copy.
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
Executing...
getCallValue 20
storageStore 0 20
Executing...
getCallValue 20
storageStore 0 20
Executing...
getTxOrigin 0
storageStore 64 0
Executing...
getTxOrigin 0
storageStore 64 0
Executing...
getBlockNumber
storageStore 0 20
Executing...
getBlockNumber
storageStore 0 20
Executing...
DEBUG printMemHex(0x0:0x14): 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ef be ad de
DEBUG printMemHex(0x14:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DEBUG printMemHex(0x34:0x4): 42 4 20 42
DEBUG printMemHex(0x38:0x4): 4 20 42 0
$call 30d40 0 14 34 4
Executing...
callDataSize
DEBUG printMemHex(0x0:0x64): 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DEBUG printMemHex(0x64:0xc8): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
storageStore 64 0
Executing...
DEBUG printMemHex(0x0:0x14): 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ef be ad de
DEBUG printMemHex(0x14:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DEBUG printMemHex(0x34:0x4): 42 4 20 42
DEBUG printMemHex(0x38:0x4): 4 20 42 0
$call 30d40 0 14 34 4
Executing...
callDataSize
DEBUG printMemHex(0x0:0x64): 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DEBUG printMemHex(0x64:0xc8): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
storageStore 64 0
Executing...
useGas 1000000
getGasLeft
storageStore 0 20
Executing...
useGas 1000000
getGasLeft
storageStore 0 20
Executing...
callDataCopy 20 0 2
storageStore 0 20
Executing...
callDataCopy 20 0 2
storageStore 0 20
Executing...
useGas 5242880
Out of gas :(
Executing...
useGas 5242880
Out of gas :(
Executing...
getBlockTimestamp
storageStore 64 0
Executing...
getBlockTimestamp
storageStore 64 0
97%...
Executing...
storageLoad 0 1f4
storageStore 190 1f4
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/ImportTest.cpp:540: error: in "GeneralStateTests/stEWASMTests": storageLoad Check State: a94f5374fce5edbc8e2a8697c15331677e6ebf0b: incorrect balance 99999958664, expected 99999958528
Byzantium data: 0 gas: 0 val: 0
Executing...
storageLoad 0 1f4
storageStore 190 1f4
/Users/hugo/workspace/EWASM/GasUsage/cpp-ethereum-circleci/test/tools/libtesteth/TestHelper.cpp:614: error: in "GeneralStateTests/stEWASMTests": postState should not be declared in expect section!
100%
Executing...
useGas 1000
Executing...
useGas 1000
*** 20 failures are detected (7 failures are expected) in the test module "Master Test Suite"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment