Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Transactions fail on GoS 5. #3483

Closed
4 tasks
zmanian opened this issue Feb 2, 2019 · 1 comment
Closed
4 tasks

Send Transactions fail on GoS 5. #3483

zmanian opened this issue Feb 2, 2019 · 1 comment

Comments

@zmanian
Copy link
Member

zmanian commented Feb 2, 2019

➜  ~ gaiacli query tx D5A92FBA8C86737982337CBA6CC14D487D242FB2E2907DE906A13DE6D964D5DE --node=tcp://35.226.134.154:26657 --chain-id=game_of_stakes_5

{"hash":"D5A92FBA8C86737982337CBA6CC14D487D242FB2E2907DE906A13DE6D964D5DE","height":"601","tx":{"type":"auth/StdTx","value":{"msg":[{"type":"cosmos-sdk/Send","value":{"inputs":[{"address":"cosmos127lpxh27f2jd684eyx9tzzcdk06r9kncsqqvgg","coins":[{"denom":"stake","amount":"10000"}]}],"outputs":[{"address":"cosmos1l4e635npmt4yymver3n09f7xtsc7z89f4gdknr","coins":[{"denom":"stake","amount":"10000"}]}]}}],"fee":{"amount":null,"gas":"200000"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AkPeoIhBc0WQ5t4PEy0n1N3ZYgj4tHnWt82fbxE7b5vX"},"signature":"DjKRU3G69VPT0Wyp/zIl6NXPPZMS68mhHwc8jDoauQNp1id1E4JsfGA7Lfqzontvn2W5wVfMVkWFCu91XqlkgA=="}],"memo":""}},"result":{"code":1,"log":"{\"codespace\":\"sdk\",\"code\":1,\"message\":\"recovered: runtime error: index out of range
stack:
goroutine 8003 [running]:
runtime/debug.Stack(0xc00b2f2958, 0xeb0ea0, 0x1a20450)
/snap/go/3129/src/runtime/debug/stack.go:24 +0xa7
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1(0xc00b2f4168, 0xc00b2f3ed8, 0xc00b2f3f00)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:725 +0xb9
panic(0xeb0ea0, 0x1a20450)
/snap/go/3129/src/runtime/panic.go:513 +0x1b9
github.com/cosmos/cosmos-sdk/x/auth.BaseVestingAccount.spendableCoins(0xc0032aaf00, 0xc0066491c0, 0x1, 0x1, 0xc0066492a0, 0x1, 0x1, 0xc006649380, 0x1, 0x1, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/auth/account.go:225 +0x41d
github.com/cosmos/cosmos-sdk/x/auth.ContinuousVestingAccount.SpendableCoins(0xc00f2254a0, 0x5c536a68, 0x1a94a0cb, 0xed3e7c85d, 0x0, 0x0, 0x0, 0x0)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/auth/account.go:451 +0xc8
github.com/cosmos/cosmos-sdk/x/bank.subtractCoins(0x124ed00, 0xc009d18990, 0xc0025677c0, 0x14, 0x1246a00, 0xc000ab7960, 0x1155068, 0xc000160460, 0xc000160460, 0x1246a00, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:207 +0x6ec
github.com/cosmos/cosmos-sdk/x/bank.inputOutputCoins(0x124ed00, 0xc009d18990, 0xc0025677c0, 0x14, 0x1246a00, 0xc000ab7960, 0x1155068, 0xc000160460, 0xc000160460, 0x1246a00, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:272 +0x242
github.com/cosmos/cosmos-sdk/x/bank.BaseKeeper.InputOutputCoins(0x1246a00, 0xc000ab7960, 0x1155068, 0xc000160460, 0xc000160460, 0x1246a00, 0xc000ab79f0, 0x1246a40, 0xc000ab7a00, 0xc000a015a0, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:72 +0xf4
github.com/cosmos/cosmos-sdk/x/bank.handleMsgSend(0x124ed00, 0xc009d18990, 0xc0025677c0, 0x14, 0x1256240, 0xc00011ba40, 0xc00c854750, 0x1, 0x1, 0xc00c854930, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/bank/handler.go:23 +0xec
github.com/cosmos/cosmos-sdk/x/bank.NewHandler.func1(0x124ed00, 0xc009d18990, 0xc0025677c0, 0x14, 0x1251600, 0xc00c854960, 0x0, 0x0, 0x0, 0x0, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/x/bank/handler.go:12 +0x227
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs(0xc0004d5000, 0x124ed00, 0xc009d18990, 0xc0025677c0, 0x14, 0xc0118cddc0, 0x1, 0x1, 0x124ed02, 0x0, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:626 +0xc14
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0xc0004d5000, 0x2, 0xc00613cc30, 0xce, 0xce, 0x1248d80, 0xc00aa33e60, 0x0, 0x0, 0x0, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:798 +0x328
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).DeliverTx(0xc0004d5000, 0xc00613cc30, 0xce, 0xce, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:559 +0x286
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client.(*localClient).DeliverTxAsync(0xc0000bbb60, 0xc00613cc30, 0xce, 0xce, 0x0)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client/local_client.go:88 +0xc5
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy.(*appConnConsensus).DeliverTxAsync(0xc000ab6ab0, 0xc00613cc30, 0xce, 0xce, 0x9)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy/app_conn.go:73 +0x51
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/state.execBlockOnProxyApp(0x124f940, 0xc0007bda60, 0x1254560, 0xc000ab6ab0, 0xc010160000, 0xc009330450, 0x1258be0, 0xc0000b82d8, 0x167, 0xc0038b8e40, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/state/execution.go:284 +0x677
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(0xc0007f53b0, 0x9, 0x0, 0xc0009decf0, 0x6, 0xc0009ded10, 0x10, 0x258, 0x167, 0xc0038b8e40, ...)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/state/execution.go:122 +0x15f
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*ConsensusState).finalizeCommit(0xc0007aa700, 0x259)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/state.go:1297 +0xa8c
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*ConsensusState).tryFinalizeCommit(0xc0007aa700, 0x259)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/state.go:1228 +0x451
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*ConsensusState).addProposalBlockPart(0xc0007aa700, 0xc00256bd40, 0xc0064a80c0, 0x28, 0xc0081cd500, 0x3158, 0x3158)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/state.go:1467 +0x4e7
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*ConsensusState).handleMsg(0xc0007aa700, 0x1243060, 0xc00256bd40, 0xc0064a80c0, 0x28)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/state.go:656 +0x7a0
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*ConsensusState).receiveRoutine(0xc0007aa700, 0x0)
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/state.go:625 +0x670
created by github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*ConsensusState).OnStart
/home/zaki/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/state.go:318 +0x132
\"}","gas_wanted":"200000","gas_used":"11588","codespace":"sdk"}}

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@zmanian
Copy link
Member Author

zmanian commented Feb 2, 2019

I think #3482 is the same bug

		vestingAmt := sdk.ZeroInt()
		if len(vestingCoins) > 0 {
			vestingAmt = vestingCoins[j].Amount
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant