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

Bug Report: invalid memory address or nil pointer dereference #2466

Closed
WALL-E opened this issue Oct 10, 2018 · 0 comments · Fixed by #2468
Closed

Bug Report: invalid memory address or nil pointer dereference #2466

WALL-E opened this issue Oct 10, 2018 · 0 comments · Fixed by #2468
Labels

Comments

@WALL-E
Copy link
Contributor

WALL-E commented Oct 10, 2018

Summary of Bug

Multiple runtime errors

Steps to Reproduce

  1. start tendermint node

  2. start kvstore in cosmos/example

  3. open url: http://tendermint-node-ip:26657/abci_query?path="custom"

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x17e516f]

goroutine 37 [running]:
github.com/cosmos/cosmos-sdk/baseapp.handleQueryCustom(0xc00024fd10, 0xc000934060, 0x2, 0x2, 0x0, 0x0, 0x0, 0xc000932240, 0x7, 0x0, ...)
   /workspace/cosmos-sdk/baseapp/baseapp.go:399 +0x2cf
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Query(0xc00024fd10, 0x0, 0x0, 0x0, 0xc000932240, 0x7, 0x0, 0x1, 0x0, 0x0, ...)
   /workspace/cosmos-sdk/baseapp/baseapp.go:311 +0x327
github.com/tendermint/tendermint/abci/server.(*SocketServer).handleRequest(0xc0000b2c80, 0xc00019b080, 0xc000196600)
   /workspace/gocode/pkg/mod/github.com/tendermint/tendermint@v0.25.0/abci/server/socket_server.go:190 +0xd7b
github.com/tendermint/tendermint/abci/server.(*SocketServer).handleRequests(0xc0000b2c80, 0xc0001965a0, 0x1beacc0, 0xc0001b60b0, 0xc000196600)
   /workspace/gocode/pkg/mod/github.com/tendermint/tendermint@v0.25.0/abci/server/socket_server.go:163 +0xe5
created by github.com/tendermint/tendermint/abci/server.(*SocketServer).acceptConnectionsRoutine
   /workspace/gocode/pkg/mod/github.com/tendermint/tendermint@v0.25.0/abci/server/socket_server.go:119 +0x269

Process finished with exit code 2
  1. open url: http://tendermint-node-ip:26657/abci_query?path="custom/name"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x17e516f]

goroutine 22 [running]:
github.com/cosmos/cosmos-sdk/baseapp.handleQueryCustom(0xc00024ee10, 0xc0010e6760, 0x2, 0x2, 0x0, 0x0, 0x0, 0xc0001ef970, 0xb, 0x0, ...)
	/workspace/cosmos-sdk/baseapp/baseapp.go:399 +0x2cf
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Query(0xc00024ee10, 0x0, 0x0, 0x0, 0xc0001ef970, 0xb, 0x0, 0x1, 0x0, 0x0, ...)
	/workspace/cosmos-sdk/baseapp/baseapp.go:311 +0x327
github.com/tendermint/tendermint/abci/server.(*SocketServer).handleRequest(0xc0000c28c0, 0xc00108c0c0, 0xc0000b6840)
	/workspace/gocode/pkg/mod/github.com/tendermint/tendermint@v0.25.0/abci/server/socket_server.go:190 +0xd7b
github.com/tendermint/tendermint/abci/server.(*SocketServer).handleRequests(0xc0000c28c0, 0xc0000b67e0, 0x1beacc0, 0xc0001c20c0, 0xc0000b6840)
	/workspace/gocode/pkg/mod/github.com/tendermint/tendermint@v0.25.0/abci/server/socket_server.go:163 +0xe5
created by github.com/tendermint/tendermint/abci/server.(*SocketServer).acceptConnectionsRoutine
	/workspace/gocode/pkg/mod/github.com/tendermint/tendermint@v0.25.0/abci/server/socket_server.go:119 +0x269

Process finished with exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants