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

genesis without app_options causes panic #101

Closed
ebuchman opened this issue Jun 5, 2017 · 2 comments
Closed

genesis without app_options causes panic #101

ebuchman opened this issue Jun 5, 2017 · 2 comments

Comments

@ebuchman
Copy link
Member

ebuchman commented Jun 5, 2017

genesis:

{
  "genesis_time":"2017-06-05T04:34:55Z",
  "chain_id":"up-n-comer",
  "app_hash":""
}

Response:

BCHOME=/var/lib/basecoin/.basecoin basecoin start --without-tendermint
no existing db, creating new db
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5d17e2]

goroutine 1 [running]:
panic(0xae6680, 0xc42000e090)
        /usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/tendermint/basecoin/app.loadGenesis(0xc420474c90, 0x28, 0xaa8280, 0x1, 0xc420474cf0)
        /go/src/github.com/tendermint/basecoin/app/genesis.go:74 +0x122
github.com/tendermint/basecoin/app.(*Basecoin).LoadGenesis(0xc420474900, 0xc420474c90, 0x28, 0xc420056340, 0x0)
        /go/src/github.com/tendermint/basecoin/app/genesis.go:16 +0x50
github.com/tendermint/basecoin/cmd/commands.startCmd(0x109b260, 0xc42046b520, 0x0, 0x1, 0x0, 0x0)
        /go/src/github.com/tendermint/basecoin/cmd/commands/start.go:87 +0xeec
github.com/tendermint/basecoin/vendor/github.com/spf13/cobra.(*Command).execute(0x109b260, 0xc42046b4f0, 0x1, 0x1, 0x109b260, 0xc42046b4f0)
        /go/src/github.com/tendermint/basecoin/vendor/github.com/spf13/cobra/command.go:656 +0x247
github.com/tendermint/basecoin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4200766c0, 0x2, 0x2, 0xc420072620)
        /go/src/github.com/tendermint/basecoin/vendor/github.com/spf13/cobra/command.go:735 +0x367
github.com/tendermint/basecoin/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4200766c0, 0xc42046b3e0, 0x16)
        /go/src/github.com/tendermint/basecoin/vendor/github.com/spf13/cobra/command.go:694 +0x2b
github.com/tendermint/basecoin/vendor/github.com/tendermint/tmlibs/cli.Executor.Execute(0xc4200766c0, 0xba5cce, 0x2)
        /go/src/github.com/tendermint/basecoin/vendor/github.com/tendermint/tmlibs/cli/setup.go:92 +0x4e
main.main()
        /go/src/github.com/tendermint/basecoin/cmd/basecoin/main.go:33 +0x1c1

@melekes
Copy link
Contributor

melekes commented Jun 5, 2017

ebuchman added a commit that referenced this issue Jun 5, 2017
…p-options

fix panic when genesis file does not include app_options (Fixes #101)
@ethanfrey
Copy link
Contributor

Already done. Thanks anton!

liamsi pushed a commit to liamsi/cosmos-sdk that referenced this issue Jun 26, 2018
Get rid of go-bindata in Makefile
ParthDesai pushed a commit to ChorusOne/cosmos-sdk that referenced this issue Apr 19, 2021
Raumo0 pushed a commit to mapofzones/cosmos-sdk that referenced this issue Feb 13, 2022
chillyvee pushed a commit to chillyvee/cosmos-sdk that referenced this issue Mar 1, 2024
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

3 participants