cli: nil pointer in cmd/internal/common/exit #429

Closed
opened 2023-06-06 19:56:11 +00:00 by acid-ant · 1 comment
Collaborator

cli failed with nil pointer error when command execution failed.
Stack trace:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xcfe55b]

goroutine 1 [running]:
git.frostfs.info/TrueCloudLab/frostfs-node/cmd/internal/common.ExitOnErr(0x1ca6300, {0x0, 0x0}, {0x1589380, 0xc000399ae0})
	git.frostfs.info/TrueCloudLab/frostfs-node/cmd/internal/common/exit.go:49 +0x4fb
git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules/container.glob..func1(0x1ca6300, {0xc00043a300, 0x0, 0x8})
	git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules/container/create.go:62 +0x6e5
github.com/spf13/cobra.(*Command).execute(0x1ca6300, {0xc00043a280, 0x8, 0x8})
	github.com/spf13/cobra@v1.7.0/command.go:944 +0xd86
github.com/spf13/cobra.(*Command).ExecuteC(0x1ca2f40)
	github.com/spf13/cobra@v1.7.0/command.go:1068 +0x991
github.com/spf13/cobra.(*Command).Execute(0x1ca2f40)
	github.com/spf13/cobra@v1.7.0/command.go:992 +0x38
git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules.Execute()
	git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules/root.go:54 +0x25
main.main()
	git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/main.go:6 +0x17
`cli` failed with nil pointer error when command execution failed. Stack trace: ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xcfe55b] goroutine 1 [running]: git.frostfs.info/TrueCloudLab/frostfs-node/cmd/internal/common.ExitOnErr(0x1ca6300, {0x0, 0x0}, {0x1589380, 0xc000399ae0}) git.frostfs.info/TrueCloudLab/frostfs-node/cmd/internal/common/exit.go:49 +0x4fb git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules/container.glob..func1(0x1ca6300, {0xc00043a300, 0x0, 0x8}) git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules/container/create.go:62 +0x6e5 github.com/spf13/cobra.(*Command).execute(0x1ca6300, {0xc00043a280, 0x8, 0x8}) github.com/spf13/cobra@v1.7.0/command.go:944 +0xd86 github.com/spf13/cobra.(*Command).ExecuteC(0x1ca2f40) github.com/spf13/cobra@v1.7.0/command.go:1068 +0x991 github.com/spf13/cobra.(*Command).Execute(0x1ca2f40) github.com/spf13/cobra@v1.7.0/command.go:992 +0x38 git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules.Execute() git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/modules/root.go:54 +0x25 main.main() git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/main.go:6 +0x17 ```
acid-ant added the
bug
triage
labels 2023-06-06 19:56:11 +00:00
acid-ant changed title from cli: nil pointer in `cmd\internal\common\exit` to cli: nil pointer in `cmd/internal/common/exit` 2023-06-06 19:57:43 +00:00
acid-ant self-assigned this 2023-06-06 20:00:02 +00:00
Poster
Collaborator

Fixed in scope of #427

Fixed in scope of #427
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#429
There is no content yet.