Skip to content

[issue] panic: runtime error: invalid memory address or nil pointer dereference #681

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

Open
david-botelho-mariano opened this issue May 15, 2025 · 2 comments · May be fixed by #682
Open

[issue] panic: runtime error: invalid memory address or nil pointer dereference #681

david-botelho-mariano opened this issue May 15, 2025 · 2 comments · May be fixed by #682
Assignees

Comments

@david-botelho-mariano
Copy link

Describe the bug
The command ./cloudlist -provider-config ../cloudlist.yaml gives the error that I have attached in the screenshot topic. Tip: ./cloudlist -provider-config ../cloudlist.yaml -s compute,s3,dns,cloud-run,gke is working fine, which means that the problem is in the cloud-function.

Cloudlist version
1.2.2

Screenshot of the error or bug

./cloudlist -provider-config ../cloudlist.yaml

  _______             _____     __ 
 / ___/ /__  __ _____/ / (_)__ / /_
/ /__/ / _ \/ // / _  / / (_-</ __/
\___/_/\___/\_,_/\_,_/_/_/___/\__/ 

		projectdiscovery.io

[INF] Current cloudlist version 1.2.2 (latest)
[INF] Listing assets from provider: gcp services: compute,dns,cloud-function,cloud-run,s3,gke id: educorp-staging-e-production
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x10 pc=0x107a59b94]

goroutine 1 [running]:
github.com/projectdiscovery/cloudlist/pkg/providers/gcp.(*cloudFunctionsProvider).GetResource(0x14001d0f950, {0x140016194d0?, 0x10c08fb60?})
	github.com/projectdiscovery/cloudlist/pkg/providers/gcp/function.go:30 +0x124
github.com/projectdiscovery/cloudlist/pkg/providers/gcp.(*Provider).Resources(0x140016056e0, {0x109718cc0, 0x10c08fb60})
	github.com/projectdiscovery/cloudlist/pkg/providers/gcp/gcp.go:188 +0x384
github.com/projectdiscovery/cloudlist/internal/runner.(*Runner).Enumerate(0x140010bc320)
	github.com/projectdiscovery/cloudlist/internal/runner/runner.go:102 +0x674
main.main()
	./main.go:14 +0x74
@david-mariano-gupy david-mariano-gupy marked this as a duplicate of #680 May 15, 2025
@dogancanbakir dogancanbakir self-assigned this May 20, 2025
@dogancanbakir dogancanbakir linked a pull request May 20, 2025 that will close this issue
@dogancanbakir
Copy link
Member

@david-botelho-mariano Thanks for letting us know! Could you retry with the branch called guard_fn and let us know if it works? Details: #682

@david-botelho-mariano
Copy link
Author

@dogancanbakir, the errors have been fixed!

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

Successfully merging a pull request may close this issue.

2 participants