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

Authentication (and other) errors cause segfault #1

Open
prydin opened this issue Feb 7, 2018 · 0 comments
Open

Authentication (and other) errors cause segfault #1

prydin opened this issue Feb 7, 2018 · 0 comments

Comments

@prydin
Copy link

prydin commented Feb 7, 2018

When using the creategroup subcommand, authentication errors and other user errors cause nil-pointer references and segfaults.

Here is an example:

[ggc@prome-2n-dhcp71:~$ ./gghelper_linux creategroup -name test
CreateCore error: UnrecognizedClientException: The security token included in the request is invalid.
	status code: 403, request id: 846d2db5-0baf-11e8-8b00-a353ea141895
Created core 'test'
CreateCoreDefinition error: UnrecognizedClientException: The security token included in the request is invalid.
	status code: 403, request id: 84a9259f-0baf-11e8-8a0f-295e0f4132bf
Error: UnrecognizedClientException: The security token included in the request is invalid.
	status code: 403, request id: 84a9259f-0baf-11e8-8a0f-295e0f4132bf
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x70e7ee]

goroutine 1 [running]:
github.com/cloudtools/gghelper.(*GreengrassSession).GetConfigArchive(0xc420154000, 0x0)
	/Users/mark/go/src/github.com/cloudtools/gghelper/archive.go:37 +0x19e
main.CreateGroup(0xc42000e0a0, 0x2, 0x2)
	/Users/mark/go/src/github.com/cloudtools/gghelper/cmd/gghelper/group.go:36 +0x2cc
main.main()
	/Users/mark/go/src/github.com/cloudtools/gghelper/cmd/gghelper/gghelper.go:40 +0x637
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

1 participant