Skip to content

Instantly share code, notes, and snippets.

@zquestz
Created May 1, 2021 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zquestz/a83cd01bcb3236de58a35be5b0032104 to your computer and use it in GitHub Desktop.
Save zquestz/a83cd01bcb3236de58a35be5b0032104 to your computer and use it in GitHub Desktop.
smartBCH stack trace
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xd98f34]
goroutine 1 [running]:
github.com/smartbch/smartbch/staking.DistributeFee(0x747af, 0xc00062bda0, 0x1607ac8, 0xc000228000, 0xc0001b9310, 0x0, 0x0, 0x0, 0x0, 0xc00010f6e0, ...)
/smart_bch/smartbch/staking/staking.go:382 +0x3d4
github.com/smartbch/smartbch/app.(*App).Commit(0xc000d28000, 0xc000cd6a60, 0xc00010f6c0, 0xc0001b96c8, 0xddaa85)
/smart_bch/smartbch/app/app.go:517 +0xa99
github.com/tendermint/tendermint/abci/client.(*localClient).CommitSync(0xc005703320, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/abci/client/local_client.go:258 +0xab
github.com/tendermint/tendermint/proxy.(*appConnConsensus).CommitSync(0xc000d19780, 0x0, 0x0, 0xf3a86f)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/proxy/app_conn.go:93 +0x33
github.com/tendermint/tendermint/state.(*BlockExecutor).Commit(0xc000611810, 0xb, 0x0, 0x0, 0x0, 0xc000cc68f8, 0x5, 0x1, 0x747af, 0xc000049940, ...)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/state/execution.go:228 +0x244
github.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(0xc000611810, 0xb, 0x0, 0x0, 0x0, 0xc000cc68f8, 0x5, 0x1, 0x747af, 0xc000049940, ...)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/state/execution.go:180 +0x725
github.com/tendermint/tendermint/consensus.(*Handshaker).replayBlock(0xc0001bade8, 0xb, 0x0, 0x0, 0x0, 0xc000cc68f8, 0x5, 0x1, 0x747ae, 0xc0047a12c0, ...)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/consensus/replay.go:503 +0x292
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc0001bade8, 0xb, 0x0, 0x0, 0x0, 0xc000cc68f8, 0x5, 0x1, 0x747ae, 0xc0047a12c0, ...)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/consensus/replay.go:416 +0xd79
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc0001bade8, 0x1605778, 0xc0000a1e10, 0xc000611550, 0xc00062b530)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/consensus/replay.go:268 +0x458
github.com/tendermint/tendermint/node.doHandshake(0x1602e28, 0xc000d19110, 0xb, 0x0, 0x0, 0x0, 0xc000cc68f8, 0x5, 0x1, 0x747ae, ...)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/node/node.go:308 +0x1d8
github.com/tendermint/tendermint/node.NewNode(0xc000bd6280, 0x15f0998, 0xc0000b6dc0, 0xc000d18060, 0x15d7cc0, 0xc005692d50, 0xc000d18150, 0x14b90a0, 0xc000d18160, 0x15f6d78, ...)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/node/node.go:715 +0x2025
main.startInProcess(0xc00000ed98, 0x14ba9e0, 0x27, 0x0, 0x0)
/smart_bch/smartbch/cmd/smartbchd/start.go:65 +0x52a
main.StartCmd.func1(0xc00060ec80, 0x1da2588, 0x0, 0x0, 0x0, 0x0)
/smart_bch/smartbch/cmd/smartbchd/start.go:39 +0x85
github.com/spf13/cobra.(*Command).execute(0xc00060ec80, 0x1da2588, 0x0, 0x0, 0xc00060ec80, 0x1da2588)
/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc00060e500, 0x11f20a0, 0xc00001f200, 0xc00001bf30)
/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc00060e500, 0x14bae40, 0x2, 0xc0001fa0c0)
/go/pkg/mod/github.com/tendermint/tendermint@v0.34.10/libs/cli/setup.go:89 +0x4a
main.main()
/smart_bch/smartbch/cmd/smartbchd/main.go:28 +0x70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment