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]: panic when query gov proposals by depositor #23305

Closed
1 task done
mmsqe opened this issue Jan 10, 2025 · 0 comments · Fixed by #23325
Closed
1 task done

[Bug]: panic when query gov proposals by depositor #23305

mmsqe opened this issue Jan 10, 2025 · 0 comments · Fixed by #23325
Labels

Comments

@mmsqe
Copy link
Contributor

mmsqe commented Jan 10, 2025

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

getting nil addressCodec when query by depositor or voter

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x10468c504]

goroutine 1 [running]:
cosmossdk.io/client/v2/autocli/flag.(*addressValue).Set(0x14001533d40, {0x16d7cf609, 0x2d})
	cosmossdk.io/client/v2@v2.0.0-beta.6/autocli/flag/address.go:69 +0xb4
github.com/spf13/pflag.(*FlagSet).Set(0x14001548400, {0x140014fb3b0, 0x9}, {0x16d7cf609, 0x2d})
	github.com/spf13/pflag@v1.0.5/flag.go:463 +0x88
github.com/spf13/pflag.(*FlagSet).Parse.func1(0x1058f7f60?, {0x16d7cf609?, 0x16d7cf5ff?})
	github.com/spf13/pflag@v1.0.5/flag.go:1138 +0x40
github.com/spf13/pflag.(*FlagSet).parseLongArg(0x14001548400, {0x16d7cf5fd, 0xb}, {0x14000070290, 0x1, 0x1}, 0x14000089688)
	github.com/spf13/pflag@v1.0.5/flag.go:1000 +0x1e4
github.com/spf13/pflag.(*FlagSet).parseArgs(0x14001548400, {0x14000070250?, 0x3?, 0x1400169a1c0?}, 0x14000089688)
	github.com/spf13/pflag@v1.0.5/flag.go:1108 +0x180
github.com/spf13/pflag.(*FlagSet).Parse(0x14001548400, {0x14000070250, 0x5, 0x5})
	github.com/spf13/pflag@v1.0.5/flag.go:1141 +0xb0
github.com/spf13/cobra.(*Command).ParseFlags(0x14001546608, {0x14000070250, 0x5, 0x5})
	github.com/spf13/cobra@v1.8.1/command.go:1844 +0xbc
cosmossdk.io/server/v2.(*CommandFactory).ParseCommand(0x140001cf4f0, 0x14000b7f208, {0x14000070250, 0x5, 0x5})
	cosmossdk.io/server/v2@v2.0.0-beta.1/command_factory.go:151 +0x64
cosmossdk.io/simapp/v2/simdv2/cmd.NewRootCmd[...]({0x14000070250, 0x5, 0x5})
	cosmossdk.io/simapp/v2/simdv2/cmd/root.go:56 +0x348
main.main()
	cosmossdk.io/simapp/v2/simdv2/main.go:16 +0x64

Cosmos SDK Version

main

How to reproduce?

simdv2 q gov proposals --depositor cosmos12uks2f54hef26f78u0lzzhkvt42hkskwhwkygt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🥳 Done
1 participant