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

"lawsg streams" runtime error #8

Open
caidingyu opened this issue Nov 16, 2023 · 0 comments
Open

"lawsg streams" runtime error #8

caidingyu opened this issue Nov 16, 2023 · 0 comments

Comments

@caidingyu
Copy link

lawsg version 0.4.0 installed on Apple M2 Pro chip macOS 14.1.1 with brew.

Running lawsg streams <log_group> got below error:

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

goroutine 1 [running]:
github.com/mmcquillan/lawsg/fetch.getStreams(0x0, 0x0, 0x0, 0x0, 0x18bd5d4e060, 0x18bd5de0820, 0x0, 0x2710, 0x0, 0x0, ...)
	/Users/matt/code/lawsg/fetch/streams.go:63 +0x16f
github.com/mmcquillan/lawsg/fetch.Streams(0x0, 0x0, 0x0, 0x0, 0x18bd5d4e060, 0x18bd5de0820, 0x0, 0x2710, 0x0, 0x0, ...)
	/Users/matt/code/lawsg/fetch/streams.go:18 +0x55
main.main()
	/Users/matt/code/lawsg/lawsg.go:23 +0x371
       0

Notes:
Tested with my 3 different AWS accounts and only got the error on one, which has much larger number of log streams (6669) in the log group.
Another 2 accounts with smaller number of log streams (71 & 95) don't have the issue.

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