Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

index out of range CommitStateDB.getStateObject #491

Closed
fedekunze opened this issue Sep 1, 2020 · 0 comments
Closed

index out of range CommitStateDB.getStateObject #491

fedekunze opened this issue Sep 1, 2020 · 0 comments

Comments

@fedekunze
Copy link
Contributor

make test-import
# github.com/keybase/go-keychain
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here
=== RUN   TestImportBlocks
processed block: 1000 (time so far: 412.813509ms)
...
processed block: 82000 (time so far: 1m7.360089469s)
cleaning up test execution...
--- FAIL: TestImportBlocks (69.17s)
panic: runtime error: index out of range [14498] with length 14498 [recovered]
	panic: runtime error: index out of range [14498] with length 14498

goroutine 63 [running]:
testing.tRunner.func1.1(0x4c041c0, 0xc0040d65c0)
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:1057 +0x30d
testing.tRunner.func1(0xc000503e00)
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:1060 +0x41a
panic(0x4c041c0, 0xc0040d65c0)
	/usr/local/Cellar/go/1.15/libexec/src/runtime/panic.go:969 +0x175
github.com/cosmos/ethermint/x/evm/types.(*CommitStateDB).getStateObject(0xc0001b7000, 0xb00b7c1b09b3fb8a, 0x68f4123c5124078d, 0x5124078d646ecf16, 0x646ecf1668f4123c)
	/Users/federico/ethermint/x/evm/types/statedb.go:827 +0x5ea
github.com/cosmos/ethermint/x/evm/types.(*CommitStateDB).Exist(0xc0001b7000, 0xb00b7c1b09b3fb8a, 0x68f4123c5124078d, 0x646ecf16, 0x2)
	/Users/federico/ethermint/x/evm/types/statedb.go:585 +0x3f
github.com/ethereum/go-ethereum/core/vm.gasCall(0xc006338000, 0xc0058ab680, 0xc00b8d8e20, 0xc004332f20, 0x0, 0x0, 0x0, 0x0)
	/Users/federico/go/pkg/mod/github.com/ethereum/[email protected]/core/vm/gas_table.go:338 +0x312
github.com/ethereum/go-ethereum/core/vm.(*EVMInterpreter).Run(0xc00622c900, 0xc0058ab680, 0xc0090c7538, 0x4, 0x4, 0xc000e73100, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/federico/go/pkg/mod/github.com/ethereum/[email protected]/core/vm/interpreter.go:271 +0x92f
github.com/ethereum/go-ethereum/core/vm.run(0xc006338000, 0xc0058ab680, 0xc0090c7538, 0x4, 0x4, 0x57ba10be6c11a600, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/federico/go/pkg/mod/github.com/ethereum/[email protected]/core/vm/evm.go:73 +0x224
github.com/ethereum/go-ethereum/core/vm.(*EVM).Call(0xc006338000, 0x4f63540, 0xc0040d6400, 0x92501669972f035, 0x539d465f490cc4bf, 0xc01217538e, 0xc0090c7538, 0x4, 0x4, 0x1f6d8, ...)
	/Users/federico/go/pkg/mod/github.com/ethereum/[email protected]/core/vm/evm.go:245 +0x6a5
github.com/ethereum/go-ethereum/core.(*StateTransition).TransitionDb(0xc0050a6b60, 0x4f85fa0, 0xc0062faf60, 0xc0090c7560)
	/Users/federico/go/pkg/mod/github.com/ethereum/[email protected]/core/state_transition.go:260 +0x405
github.com/ethereum/go-ethereum/core.ApplyMessage(0xc006338000, 0x4f85fa0, 0xc0062faf60, 0xc0090c7560, 0xd9df9122fdcffe9, 0x70ef9b20, 0xc00431dae0)
	/Users/federico/go/pkg/mod/github.com/ethereum/[email protected]/core/state_transition.go:164 +0x57
github.com/cosmos/ethermint/importer.applyTransaction(0x55c0dc0, 0x4f6dda0, 0xc000024400, 0x0, 0xc0090c7560, 0xc0001e8070, 0x4f6dd20, 0xc0001c39f0, 0xc0001b7000, 0x0, ...)
	/Users/federico/ethermint/importer/importer_test.go:357 +0x2cb
github.com/cosmos/ethermint/importer.TestImportBlocks(0xc000503e00)
	/Users/federico/ethermint/importer/importer_test.go:258 +0xf6e
testing.tRunner(0xc000503e00, 0x4e67130)
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:1108 +0xef
created by testing.(*T).Run
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:1159 +0x386
FAIL	github.com/cosmos/ethermint/importer	69.500s
FAIL
make: *** [test-import] Error 1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants