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

panic: runtime error: invalid memory address or nil pointer dereference with aztfexport v0.13.0 #433

Closed
lintaonz opened this issue Jul 17, 2023 · 1 comment · Fixed by #434
Labels
bug Something isn't working

Comments

@lintaonz
Copy link

Hi,

OS: macOS Ventura v13.4.1
aztfexport: v0.13.0

When I try to use the latest aztfexport v0.13.0 to export a resource group created by startstopv2-deployments template. I got the error:

aztfexport resource-group <myResourceGroup>

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

goroutine 601 [running]:
github.com/magodo/aztft/aztft.queryType({0x14001b6e780?, 0x102ec4f4c?}, 0x14001791dd8)
	github.com/magodo/[email protected]/aztft/aztft.go:138 +0x1a4
github.com/magodo/aztft/aztft.QueryTypeAndId({0x14001b6e780?, 0x2020202020202020?}, 0x3a226b636f6c6222?)
	github.com/magodo/[email protected]/aztft/aztft.go:48 +0x2c
github.com/Azure/aztfexport/internal/resourceset.AzureResourceSet.ToTFResources.func2()
	github.com/Azure/aztfexport/internal/resourceset/azure_resource_set.go:78 +0x9c
github.com/magodo/workerpool.(*workPool).Run.func1(0x2020202020202020?)
	github.com/magodo/[email protected]/workerpool.go:75 +0x78
created by github.com/magodo/workerpool.(*workPool).Run
	github.com/magodo/[email protected]/workerpool.go:66 +0x50

I don't have any issue when I used aztfexport v0.12.0. I don't think it's the same problem as issue#257

Is this a new bug?

Cheers,

Tao

@lintaonz lintaonz changed the title panic: runtime error: invalid memory address or nil pointer dereference with aztfexport panic: runtime error: invalid memory address or nil pointer dereference with aztfexport v0.13.0 Jul 17, 2023
@miltoncamara
Copy link

Same error here in MacOS Monterey 12.6.7...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants