etclabscore / core-geth

A highly configurable Go implementation of the Ethereum protocol.

Home Page:https://etclabscore.github.io/core-geth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tracing API says transaction failed when it was successful

alecalve opened this issue · comments

System information

Geth version: 1.12.7
OS & Version: Linux

Expected behaviour

This transaction successfully creates a smart contract.

The receipt indicates the address of the created contract:

Web3 call:

{
    "jsonrpc": "2.0",
    "id":1,
    "method":"eth_getTransactionReceipt",
    "params":["0x9a5c2f858d891683ce66d25cce97c4eda58ac520534dfbae77d8529262899d7b"]
}

Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0xa477329d70055bea48ba9e21cd26ff12b79ba7fcb04c1d2b011e78ef6ec5ffb9",
    "blockNumber": "0x5fa8c",
    "contractAddress": "0xfee7707fa4b8c0a923a0e40399db3e7ce26069c6",
    "cumulativeGasUsed": "0x2f9c4",
    "effectiveGasPrice": "0xba43b7400",
    "from": "0x65c13da4feb34aee002678a0b44835ed43142bdc",
    "gasUsed": "0x2f9c4",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "root": "0x8155c88c3a1a9549a30c31a2ddc405b4713f6b7b58381cf5af39e722a9b5e17b",
    "to": null,
    "transactionHash": "0x9a5c2f858d891683ce66d25cce97c4eda58ac520534dfbae77d8529262899d7b",
    "transactionIndex": "0x0",
    "type": "0x0"
  }
}

Yet, tracing the block says the transaction failed:

Web3 Call:

{
    "jsonrpc": "2.0",
    "id":1,
    "method":"debug_traceBlockByHash",
    "params":["0xa477329d70055bea48ba9e21cd26ff12b79ba7fcb04c1d2b011e78ef6ec5ffb9"]
}

Response:

{
	"jsonrpc": "2.0",
	"id": 1,
	"result": [{
		"result": {
			"gas": 195012,
			"failed": true,
			"returnValue": "",
			"structLogs": [{
				"pc": 0,
				"op": "PUSH1",
				"gas": 85608,
				"gasCost": 3,
				"depth": 1,
				"stack": []
			}, {
				"pc": 2,
				"op": "PUSH1",
				"gas": 85605,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60"]
			}, {
				"pc": 4,
				"op": "MSTORE",
				"gas": 85602,
				"gasCost": 12,
				"depth": 1,
				"stack": ["0x60", "0x40"]
			}, {
				"pc": 5,
				"op": "PUSH1",
				"gas": 85590,
				"gasCost": 3,
				"depth": 1,
				"stack": []
			}, {
				"pc": 7,
				"op": "MLOAD",
				"gas": 85587,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x40"]
			}, {
				"pc": 8,
				"op": "PUSH1",
				"gas": 85584,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60"]
			}, {
				"pc": 10,
				"op": "DUP1",
				"gas": 85581,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60", "0x20"]
			}, {
				"pc": 11,
				"op": "PUSH2",
				"gas": 85578,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60", "0x20", "0x20"]
			}, {
				"pc": 14,
				"op": "DUP4",
				"gas": 85575,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60", "0x20", "0x20", "0x5c4"]
			}, {
				"pc": 15,
				"op": "CODECOPY",
				"gas": 85572,
				"gasCost": 9,
				"depth": 1,
				"stack": ["0x60", "0x20", "0x20", "0x5c4", "0x60"]
			}, {
				"pc": 16,
				"op": "ADD",
				"gas": 85563,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60", "0x20"]
			}, {
				"pc": 17,
				"op": "PUSH1",
				"gas": 85560,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x80"]
			}, {
				"pc": 19,
				"op": "MSTORE",
				"gas": 85557,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x80", "0x40"]
			}, {
				"pc": 20,
				"op": "PUSH1",
				"gas": 85554,
				"gasCost": 3,
				"depth": 1,
				"stack": []
			}, {
				"pc": 22,
				"op": "DUP1",
				"gas": 85551,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60"]
			}, {
				"pc": 23,
				"op": "MLOAD",
				"gas": 85548,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60", "0x60"]
			}, {
				"pc": 24,
				"op": "SWAP1",
				"gas": 85545,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x60", "0x186a0"]
			}, {
				"pc": 25,
				"op": "PUSH1",
				"gas": 85542,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x60"]
			}, {
				"pc": 27,
				"op": "ADD",
				"gas": 85539,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x60", "0x20"]
			}, {
				"pc": 28,
				"op": "POP",
				"gas": 85536,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x80"]
			}, {
				"pc": 29,
				"op": "JUMPDEST",
				"gas": 85534,
				"gasCost": 1,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 30,
				"op": "DUP1",
				"gas": 85533,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 31,
				"op": "PUSH1",
				"gas": 85530,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0"]
			}, {
				"pc": 33,
				"op": "PUSH1",
				"gas": 85527,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0"]
			}, {
				"pc": 35,
				"op": "POP",
				"gas": 85524,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0"]
			}, {
				"pc": 36,
				"op": "PUSH1",
				"gas": 85522,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0"]
			}, {
				"pc": 38,
				"op": "CALLER",
				"gas": 85519,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0"]
			}, {
				"pc": 39,
				"op": "PUSH20",
				"gas": 85517,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc"]
			}, {
				"pc": 60,
				"op": "AND",
				"gas": 85514,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc", "0xffffffffffffffffffffffffffffffffffffffff"]
			}, {
				"pc": 61,
				"op": "DUP2",
				"gas": 85511,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc"]
			}, {
				"pc": 62,
				"op": "MSTORE",
				"gas": 85508,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc", "0x0"]
			}, {
				"pc": 63,
				"op": "PUSH1",
				"gas": 85505,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0"]
			}, {
				"pc": 65,
				"op": "ADD",
				"gas": 85502,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x0", "0x20"]
			}, {
				"pc": 66,
				"op": "SWAP1",
				"gas": 85499,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x0", "0x20"]
			}, {
				"pc": 67,
				"op": "DUP2",
				"gas": 85496,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x20", "0x0"]
			}, {
				"pc": 68,
				"op": "MSTORE",
				"gas": 85493,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x20", "0x0", "0x20"]
			}, {
				"pc": 69,
				"op": "PUSH1",
				"gas": 85490,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x20"]
			}, {
				"pc": 71,
				"op": "ADD",
				"gas": 85487,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x20", "0x20"]
			}, {
				"pc": 72,
				"op": "PUSH1",
				"gas": 85484,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x40"]
			}, {
				"pc": 74,
				"op": "KECCAK256",
				"gas": 85481,
				"gasCost": 42,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x40", "0x0"]
			}, {
				"pc": 75,
				"op": "PUSH1",
				"gas": 85439,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3"]
			}, {
				"pc": 77,
				"op": "POP",
				"gas": 85436,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3", "0x0"]
			}, {
				"pc": 78,
				"op": "DUP2",
				"gas": 85434,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3"]
			}, {
				"pc": 79,
				"op": "SWAP1",
				"gas": 85431,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3", "0x186a0"]
			}, {
				"pc": 80,
				"op": "SSTORE",
				"gas": 85428,
				"gasCost": 20000,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3"],
				"storage": {
					"e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3": "00000000000000000000000000000000000000000000000000000000000186a0"
				}
			}, {
				"pc": 81,
				"op": "POP",
				"gas": 65428,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0"]
			}, {
				"pc": 82,
				"op": "DUP1",
				"gas": 65426,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 83,
				"op": "PUSH1",
				"gas": 65423,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0"]
			}, {
				"pc": 85,
				"op": "PUSH1",
				"gas": 65420,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x2"]
			}, {
				"pc": 87,
				"op": "POP",
				"gas": 65417,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x2", "0x0"]
			}, {
				"pc": 88,
				"op": "DUP2",
				"gas": 65415,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x2"]
			}, {
				"pc": 89,
				"op": "SWAP1",
				"gas": 65412,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x2", "0x186a0"]
			}, {
				"pc": 90,
				"op": "SSTORE",
				"gas": 65409,
				"gasCost": 20000,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x186a0", "0x2"],
				"storage": {
					"0000000000000000000000000000000000000000000000000000000000000002": "00000000000000000000000000000000000000000000000000000000000186a0",
					"e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3": "00000000000000000000000000000000000000000000000000000000000186a0"
				}
			}, {
				"pc": 91,
				"op": "POP",
				"gas": 45409,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0"]
			}, {
				"pc": 92,
				"op": "CALLVALUE",
				"gas": 45407,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 93,
				"op": "PUSH1",
				"gas": 45405,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000"]
			}, {
				"pc": 95,
				"op": "PUSH1",
				"gas": 45402,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000", "0x1"]
			}, {
				"pc": 97,
				"op": "POP",
				"gas": 45399,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000", "0x1", "0x0"]
			}, {
				"pc": 98,
				"op": "DUP2",
				"gas": 45397,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000", "0x1"]
			}, {
				"pc": 99,
				"op": "SWAP1",
				"gas": 45394,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000", "0x1", "0x38d7ea4c68000"]
			}, {
				"pc": 100,
				"op": "SSTORE",
				"gas": 45391,
				"gasCost": 20000,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000", "0x38d7ea4c68000", "0x1"],
				"storage": {
					"0000000000000000000000000000000000000000000000000000000000000001": "00000000000000000000000000000000000000000000000000038d7ea4c68000",
					"0000000000000000000000000000000000000000000000000000000000000002": "00000000000000000000000000000000000000000000000000000000000186a0",
					"e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3": "00000000000000000000000000000000000000000000000000000000000186a0"
				}
			}, {
				"pc": 101,
				"op": "POP",
				"gas": 25391,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x38d7ea4c68000"]
			}, {
				"pc": 102,
				"op": "PUSH1",
				"gas": 25389,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 104,
				"op": "PUSH1",
				"gas": 25386,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x2"]
			}, {
				"pc": 106,
				"op": "POP",
				"gas": 25383,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x2", "0x0"]
			}, {
				"pc": 107,
				"op": "SLOAD",
				"gas": 25381,
				"gasCost": 50,
				"depth": 1,
				"stack": ["0x186a0", "0x2"],
				"storage": {
					"0000000000000000000000000000000000000000000000000000000000000001": "00000000000000000000000000000000000000000000000000038d7ea4c68000",
					"0000000000000000000000000000000000000000000000000000000000000002": "00000000000000000000000000000000000000000000000000000000000186a0",
					"e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3": "00000000000000000000000000000000000000000000000000000000000186a0"
				}
			}, {
				"pc": 108,
				"op": "PUSH1",
				"gas": 25331,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0"]
			}, {
				"pc": 110,
				"op": "PUSH1",
				"gas": 25328,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x1"]
			}, {
				"pc": 112,
				"op": "POP",
				"gas": 25325,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x1", "0x0"]
			}, {
				"pc": 113,
				"op": "SLOAD",
				"gas": 25323,
				"gasCost": 50,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x1"],
				"storage": {
					"0000000000000000000000000000000000000000000000000000000000000001": "00000000000000000000000000000000000000000000000000038d7ea4c68000",
					"0000000000000000000000000000000000000000000000000000000000000002": "00000000000000000000000000000000000000000000000000000000000186a0",
					"e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3": "00000000000000000000000000000000000000000000000000000000000186a0"
				}
			}, {
				"pc": 114,
				"op": "DIV",
				"gas": 25273,
				"gasCost": 5,
				"depth": 1,
				"stack": ["0x186a0", "0x186a0", "0x38d7ea4c68000"]
			}, {
				"pc": 115,
				"op": "PUSH1",
				"gas": 25268,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400"]
			}, {
				"pc": 117,
				"op": "PUSH1",
				"gas": 25265,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400", "0x3"]
			}, {
				"pc": 119,
				"op": "POP",
				"gas": 25262,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400", "0x3", "0x0"]
			}, {
				"pc": 120,
				"op": "DUP2",
				"gas": 25260,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400", "0x3"]
			}, {
				"pc": 121,
				"op": "SWAP1",
				"gas": 25257,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400", "0x3", "0x2540be400"]
			}, {
				"pc": 122,
				"op": "SSTORE",
				"gas": 25254,
				"gasCost": 20000,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400", "0x2540be400", "0x3"],
				"storage": {
					"0000000000000000000000000000000000000000000000000000000000000001": "00000000000000000000000000000000000000000000000000038d7ea4c68000",
					"0000000000000000000000000000000000000000000000000000000000000002": "00000000000000000000000000000000000000000000000000000000000186a0",
					"0000000000000000000000000000000000000000000000000000000000000003": "00000000000000000000000000000000000000000000000000000002540be400",
					"e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3": "00000000000000000000000000000000000000000000000000000000000186a0"
				}
			}, {
				"pc": 123,
				"op": "POP",
				"gas": 5254,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0", "0x2540be400"]
			}, {
				"pc": 124,
				"op": "JUMPDEST",
				"gas": 5252,
				"gasCost": 1,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 125,
				"op": "POP",
				"gas": 5251,
				"gasCost": 2,
				"depth": 1,
				"stack": ["0x186a0"]
			}, {
				"pc": 126,
				"op": "PUSH2",
				"gas": 5249,
				"gasCost": 3,
				"depth": 1,
				"stack": []
			}, {
				"pc": 129,
				"op": "DUP1",
				"gas": 5246,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x538"]
			}, {
				"pc": 130,
				"op": "PUSH2",
				"gas": 5243,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x538", "0x538"]
			}, {
				"pc": 133,
				"op": "PUSH1",
				"gas": 5240,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x538", "0x538", "0x8c"]
			}, {
				"pc": 135,
				"op": "CODECOPY",
				"gas": 5237,
				"gasCost": 246,
				"depth": 1,
				"stack": ["0x538", "0x538", "0x8c", "0x0"]
			}, {
				"pc": 136,
				"op": "PUSH1",
				"gas": 4991,
				"gasCost": 3,
				"depth": 1,
				"stack": ["0x538"]
			}, {
				"pc": 138,
				"op": "RETURN",
				"gas": 4988,
				"gasCost": 0,
				"depth": 1,
				"stack": ["0x538", "0x0"]
			}]
		}
	}]
}

Thanks for the report.
It gives an "Out of gas" error. I will investigate further.

p.s.: on your second trace "Web3 call" example, please correct the method from "eth_getTransactionReceipt" to "debug_traceTransaction".

Indeed, I left a copy-paste error, it was debug_traceBlockByHash

I executed the trace request using geth@v1.10.21 so as to check if issue has been introduced at core-geth. For this the chain used was the Ethereum chain, as the block we want to trace is before the DAO fork (1,920,000).

The result was the same.

Will investigate further on resolving the issue and then make a PR at go-ethereum as well, but feel free to open and link an issue there as well.

> debug.traceTransaction('0x9a5c2f858d891683ce66d25cce97c4eda58ac520534dfbae77d8529262899d7b')
{
  failed: true,
  gas: 195012,
  returnValue: "",
  structLogs: [{
      depth: 1,
      gas: 85608,
      gasCost: 3,
      op: "PUSH1",
      pc: 0,
      stack: []
  }, {
      depth: 1,
      gas: 85605,
      gasCost: 3,
      op: "PUSH1",
      pc: 2,
      stack: ["0x60"]
  }, {
      depth: 1,
      gas: 85602,
      gasCost: 12,
      op: "MSTORE",
      pc: 4,
      stack: ["0x60", "0x40"]
  }, {
      depth: 1,
      gas: 85590,
      gasCost: 3,
      op: "PUSH1",
      pc: 5,
      stack: []
  }, {
      depth: 1,
      gas: 85587,
      gasCost: 3,
      op: "MLOAD",
      pc: 7,
      stack: ["0x40"]
  }, {
      depth: 1,
      gas: 85584,
      gasCost: 3,
      op: "PUSH1",
      pc: 8,
      stack: ["0x60"]
  }, {
      depth: 1,
      gas: 85581,
      gasCost: 3,
      op: "DUP1",
      pc: 10,
      stack: ["0x60", "0x20"]
  }, {
      depth: 1,
      gas: 85578,
      gasCost: 3,
      op: "PUSH2",
      pc: 11,
      stack: ["0x60", "0x20", "0x20"]
  }, {
      depth: 1,
      gas: 85575,
      gasCost: 3,
      op: "DUP4",
      pc: 14,
      stack: ["0x60", "0x20", "0x20", "0x5c4"]
  }, {
      depth: 1,
      gas: 85572,
      gasCost: 9,
      op: "CODECOPY",
      pc: 15,
      stack: ["0x60", "0x20", "0x20", "0x5c4", "0x60"]
  }, {
      depth: 1,
      gas: 85563,
      gasCost: 3,
      op: "ADD",
      pc: 16,
      stack: ["0x60", "0x20"]
  }, {
      depth: 1,
      gas: 85560,
      gasCost: 3,
      op: "PUSH1",
      pc: 17,
      stack: ["0x80"]
  }, {
      depth: 1,
      gas: 85557,
      gasCost: 3,
      op: "MSTORE",
      pc: 19,
      stack: ["0x80", "0x40"]
  }, {
      depth: 1,
      gas: 85554,
      gasCost: 3,
      op: "PUSH1",
      pc: 20,
      stack: []
  }, {
      depth: 1,
      gas: 85551,
      gasCost: 3,
      op: "DUP1",
      pc: 22,
      stack: ["0x60"]
  }, {
      depth: 1,
      gas: 85548,
      gasCost: 3,
      op: "MLOAD",
      pc: 23,
      stack: ["0x60", "0x60"]
  }, {
      depth: 1,
      gas: 85545,
      gasCost: 3,
      op: "SWAP1",
      pc: 24,
      stack: ["0x60", "0x186a0"]
  }, {
      depth: 1,
      gas: 85542,
      gasCost: 3,
      op: "PUSH1",
      pc: 25,
      stack: ["0x186a0", "0x60"]
  }, {
      depth: 1,
      gas: 85539,
      gasCost: 3,
      op: "ADD",
      pc: 27,
      stack: ["0x186a0", "0x60", "0x20"]
  }, {
      depth: 1,
      gas: 85536,
      gasCost: 2,
      op: "POP",
      pc: 28,
      stack: ["0x186a0", "0x80"]
  }, {
      depth: 1,
      gas: 85534,
      gasCost: 1,
      op: "JUMPDEST",
      pc: 29,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 85533,
      gasCost: 3,
      op: "DUP1",
      pc: 30,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 85530,
      gasCost: 3,
      op: "PUSH1",
      pc: 31,
      stack: ["0x186a0", "0x186a0"]
  }, {
      depth: 1,
      gas: 85527,
      gasCost: 3,
      op: "PUSH1",
      pc: 33,
      stack: ["0x186a0", "0x186a0", "0x0"]
  }, {
      depth: 1,
      gas: 85524,
      gasCost: 2,
      op: "POP",
      pc: 35,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0"]
  }, {
      depth: 1,
      gas: 85522,
      gasCost: 3,
      op: "PUSH1",
      pc: 36,
      stack: ["0x186a0", "0x186a0", "0x0"]
  }, {
      depth: 1,
      gas: 85519,
      gasCost: 2,
      op: "CALLER",
      pc: 38,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0"]
  }, {
      depth: 1,
      gas: 85517,
      gasCost: 3,
      op: "PUSH20",
      pc: 39,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc"]
  }, {
      depth: 1,
      gas: 85514,
      gasCost: 3,
      op: "AND",
      pc: 60,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc", "0xffffffffffffffffffffffffffffffffffffffff"]
  }, {
      depth: 1,
      gas: 85511,
      gasCost: 3,
      op: "DUP2",
      pc: 61,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc"]
  }, {
      depth: 1,
      gas: 85508,
      gasCost: 3,
      op: "MSTORE",
      pc: 62,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0", "0x65c13da4feb34aee002678a0b44835ed43142bdc", "0x0"]
  }, {
      depth: 1,
      gas: 85505,
      gasCost: 3,
      op: "PUSH1",
      pc: 63,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0"]
  }, {
      depth: 1,
      gas: 85502,
      gasCost: 3,
      op: "ADD",
      pc: 65,
      stack: ["0x186a0", "0x186a0", "0x0", "0x0", "0x20"]
  }, {
      depth: 1,
      gas: 85499,
      gasCost: 3,
      op: "SWAP1",
      pc: 66,
      stack: ["0x186a0", "0x186a0", "0x0", "0x20"]
  }, {
      depth: 1,
      gas: 85496,
      gasCost: 3,
      op: "DUP2",
      pc: 67,
      stack: ["0x186a0", "0x186a0", "0x20", "0x0"]
  }, {
      depth: 1,
      gas: 85493,
      gasCost: 3,
      op: "MSTORE",
      pc: 68,
      stack: ["0x186a0", "0x186a0", "0x20", "0x0", "0x20"]
  }, {
      depth: 1,
      gas: 85490,
      gasCost: 3,
      op: "PUSH1",
      pc: 69,
      stack: ["0x186a0", "0x186a0", "0x20"]
  }, {
      depth: 1,
      gas: 85487,
      gasCost: 3,
      op: "ADD",
      pc: 71,
      stack: ["0x186a0", "0x186a0", "0x20", "0x20"]
  }, {
      depth: 1,
      gas: 85484,
      gasCost: 3,
      op: "PUSH1",
      pc: 72,
      stack: ["0x186a0", "0x186a0", "0x40"]
  }, {
      depth: 1,
      gas: 85481,
      gasCost: 42,
      op: "KECCAK256",
      pc: 74,
      stack: ["0x186a0", "0x186a0", "0x40", "0x0"]
  }, {
      depth: 1,
      gas: 85439,
      gasCost: 3,
      op: "PUSH1",
      pc: 75,
      stack: ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3"]
  }, {
      depth: 1,
      gas: 85436,
      gasCost: 2,
      op: "POP",
      pc: 77,
      stack: ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3", "0x0"]
  }, {
      depth: 1,
      gas: 85434,
      gasCost: 3,
      op: "DUP2",
      pc: 78,
      stack: ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3"]
  }, {
      depth: 1,
      gas: 85431,
      gasCost: 3,
      op: "SWAP1",
      pc: 79,
      stack: ["0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3", "0x186a0"]
  }, {
      depth: 1,
      gas: 85428,
      gasCost: 20000,
      op: "SSTORE",
      pc: 80,
      stack: ["0x186a0", "0x186a0", "0x186a0", "0xe8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3"],
      storage: {
        e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3: "00000000000000000000000000000000000000000000000000000000000186a0"
      }
  }, {
      depth: 1,
      gas: 65428,
      gasCost: 2,
      op: "POP",
      pc: 81,
      stack: ["0x186a0", "0x186a0"]
  }, {
      depth: 1,
      gas: 65426,
      gasCost: 3,
      op: "DUP1",
      pc: 82,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 65423,
      gasCost: 3,
      op: "PUSH1",
      pc: 83,
      stack: ["0x186a0", "0x186a0"]
  }, {
      depth: 1,
      gas: 65420,
      gasCost: 3,
      op: "PUSH1",
      pc: 85,
      stack: ["0x186a0", "0x186a0", "0x2"]
  }, {
      depth: 1,
      gas: 65417,
      gasCost: 2,
      op: "POP",
      pc: 87,
      stack: ["0x186a0", "0x186a0", "0x2", "0x0"]
  }, {
      depth: 1,
      gas: 65415,
      gasCost: 3,
      op: "DUP2",
      pc: 88,
      stack: ["0x186a0", "0x186a0", "0x2"]
  }, {
      depth: 1,
      gas: 65412,
      gasCost: 3,
      op: "SWAP1",
      pc: 89,
      stack: ["0x186a0", "0x186a0", "0x2", "0x186a0"]
  }, {
      depth: 1,
      gas: 65409,
      gasCost: 20000,
      op: "SSTORE",
      pc: 90,
      stack: ["0x186a0", "0x186a0", "0x186a0", "0x2"],
      storage: {
        0000000000000000000000000000000000000000000000000000000000000002: "00000000000000000000000000000000000000000000000000000000000186a0",
        e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3: "00000000000000000000000000000000000000000000000000000000000186a0"
      }
  }, {
      depth: 1,
      gas: 45409,
      gasCost: 2,
      op: "POP",
      pc: 91,
      stack: ["0x186a0", "0x186a0"]
  }, {
      depth: 1,
      gas: 45407,
      gasCost: 2,
      op: "CALLVALUE",
      pc: 92,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 45405,
      gasCost: 3,
      op: "PUSH1",
      pc: 93,
      stack: ["0x186a0", "0x38d7ea4c68000"]
  }, {
      depth: 1,
      gas: 45402,
      gasCost: 3,
      op: "PUSH1",
      pc: 95,
      stack: ["0x186a0", "0x38d7ea4c68000", "0x1"]
  }, {
      depth: 1,
      gas: 45399,
      gasCost: 2,
      op: "POP",
      pc: 97,
      stack: ["0x186a0", "0x38d7ea4c68000", "0x1", "0x0"]
  }, {
      depth: 1,
      gas: 45397,
      gasCost: 3,
      op: "DUP2",
      pc: 98,
      stack: ["0x186a0", "0x38d7ea4c68000", "0x1"]
  }, {
      depth: 1,
      gas: 45394,
      gasCost: 3,
      op: "SWAP1",
      pc: 99,
      stack: ["0x186a0", "0x38d7ea4c68000", "0x1", "0x38d7ea4c68000"]
  }, {
      depth: 1,
      gas: 45391,
      gasCost: 20000,
      op: "SSTORE",
      pc: 100,
      stack: ["0x186a0", "0x38d7ea4c68000", "0x38d7ea4c68000", "0x1"],
      storage: {
        0000000000000000000000000000000000000000000000000000000000000001: "00000000000000000000000000000000000000000000000000038d7ea4c68000",
        0000000000000000000000000000000000000000000000000000000000000002: "00000000000000000000000000000000000000000000000000000000000186a0",
        e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3: "00000000000000000000000000000000000000000000000000000000000186a0"
      }
  }, {
      depth: 1,
      gas: 25391,
      gasCost: 2,
      op: "POP",
      pc: 101,
      stack: ["0x186a0", "0x38d7ea4c68000"]
  }, {
      depth: 1,
      gas: 25389,
      gasCost: 3,
      op: "PUSH1",
      pc: 102,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 25386,
      gasCost: 3,
      op: "PUSH1",
      pc: 104,
      stack: ["0x186a0", "0x2"]
  }, {
      depth: 1,
      gas: 25383,
      gasCost: 2,
      op: "POP",
      pc: 106,
      stack: ["0x186a0", "0x2", "0x0"]
  }, {
      depth: 1,
      gas: 25381,
      gasCost: 50,
      op: "SLOAD",
      pc: 107,
      stack: ["0x186a0", "0x2"],
      storage: {
        0000000000000000000000000000000000000000000000000000000000000001: "00000000000000000000000000000000000000000000000000038d7ea4c68000",
        0000000000000000000000000000000000000000000000000000000000000002: "00000000000000000000000000000000000000000000000000000000000186a0",
        e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3: "00000000000000000000000000000000000000000000000000000000000186a0"
      }
  }, {
      depth: 1,
      gas: 25331,
      gasCost: 3,
      op: "PUSH1",
      pc: 108,
      stack: ["0x186a0", "0x186a0"]
  }, {
      depth: 1,
      gas: 25328,
      gasCost: 3,
      op: "PUSH1",
      pc: 110,
      stack: ["0x186a0", "0x186a0", "0x1"]
  }, {
      depth: 1,
      gas: 25325,
      gasCost: 2,
      op: "POP",
      pc: 112,
      stack: ["0x186a0", "0x186a0", "0x1", "0x0"]
  }, {
      depth: 1,
      gas: 25323,
      gasCost: 50,
      op: "SLOAD",
      pc: 113,
      stack: ["0x186a0", "0x186a0", "0x1"],
      storage: {
        0000000000000000000000000000000000000000000000000000000000000001: "00000000000000000000000000000000000000000000000000038d7ea4c68000",
        0000000000000000000000000000000000000000000000000000000000000002: "00000000000000000000000000000000000000000000000000000000000186a0",
        e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3: "00000000000000000000000000000000000000000000000000000000000186a0"
      }
  }, {
      depth: 1,
      gas: 25273,
      gasCost: 5,
      op: "DIV",
      pc: 114,
      stack: ["0x186a0", "0x186a0", "0x38d7ea4c68000"]
  }, {
      depth: 1,
      gas: 25268,
      gasCost: 3,
      op: "PUSH1",
      pc: 115,
      stack: ["0x186a0", "0x2540be400"]
  }, {
      depth: 1,
      gas: 25265,
      gasCost: 3,
      op: "PUSH1",
      pc: 117,
      stack: ["0x186a0", "0x2540be400", "0x3"]
  }, {
      depth: 1,
      gas: 25262,
      gasCost: 2,
      op: "POP",
      pc: 119,
      stack: ["0x186a0", "0x2540be400", "0x3", "0x0"]
  }, {
      depth: 1,
      gas: 25260,
      gasCost: 3,
      op: "DUP2",
      pc: 120,
      stack: ["0x186a0", "0x2540be400", "0x3"]
  }, {
      depth: 1,
      gas: 25257,
      gasCost: 3,
      op: "SWAP1",
      pc: 121,
      stack: ["0x186a0", "0x2540be400", "0x3", "0x2540be400"]
  }, {
      depth: 1,
      gas: 25254,
      gasCost: 20000,
      op: "SSTORE",
      pc: 122,
      stack: ["0x186a0", "0x2540be400", "0x2540be400", "0x3"],
      storage: {
        0000000000000000000000000000000000000000000000000000000000000001: "00000000000000000000000000000000000000000000000000038d7ea4c68000",
        0000000000000000000000000000000000000000000000000000000000000002: "00000000000000000000000000000000000000000000000000000000000186a0",
        0000000000000000000000000000000000000000000000000000000000000003: "00000000000000000000000000000000000000000000000000000002540be400",
        e8d7418a287548962a330cc94a8c1d1e7194d722eab7cf4a12d4d53c0f1297a3: "00000000000000000000000000000000000000000000000000000000000186a0"
      }
  }, {
      depth: 1,
      gas: 5254,
      gasCost: 2,
      op: "POP",
      pc: 123,
      stack: ["0x186a0", "0x2540be400"]
  }, {
      depth: 1,
      gas: 5252,
      gasCost: 1,
      op: "JUMPDEST",
      pc: 124,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 5251,
      gasCost: 2,
      op: "POP",
      pc: 125,
      stack: ["0x186a0"]
  }, {
      depth: 1,
      gas: 5249,
      gasCost: 3,
      op: "PUSH2",
      pc: 126,
      stack: []
  }, {
      depth: 1,
      gas: 5246,
      gasCost: 3,
      op: "DUP1",
      pc: 129,
      stack: ["0x538"]
  }, {
      depth: 1,
      gas: 5243,
      gasCost: 3,
      op: "PUSH2",
      pc: 130,
      stack: ["0x538", "0x538"]
  }, {
      depth: 1,
      gas: 5240,
      gasCost: 3,
      op: "PUSH1",
      pc: 133,
      stack: ["0x538", "0x538", "0x8c"]
  }, {
      depth: 1,
      gas: 5237,
      gasCost: 246,
      op: "CODECOPY",
      pc: 135,
      stack: ["0x538", "0x538", "0x8c", "0x0"]
  }, {
      depth: 1,
      gas: 4991,
      gasCost: 3,
      op: "PUSH1",
      pc: 136,
      stack: ["0x538"]
  }, {
      depth: 1,
      gas: 4988,
      gasCost: 0,
      op: "RETURN",
      pc: 138,
      stack: ["0x538", "0x0"]
  }]
}

I opened the same issue upstream at go-ethereum.
Below I copy some info added there for reference.


From an initial research I found that ErrCodeStoreOutOfGas is being returned. By checking at contract's code at Etherscan it seems that there is no code stored (similar by checking at chain data below).
I wonder if the following occured:

  • TX was valid,
  • code hasn't been saved on chain because there was no actual check back then
  • and there was no actual way to check the transaction receipt status as EIP-658 wasn't in place.
> eth.getCode('0xfee7707fa4b8c0a923a0e40399db3e7ce26069c6')
"0x"

@alecalve I agree with @holiman's response here and I am closing the issue.
Feel free to reopen if you have a better idea.