Skip to content

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

@lintaonz

Description

@lintaonz

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/aztft@v0.3.1-0.20230713032200-ac231869c31f/aztft/aztft.go:138 +0x1a4
github.com/magodo/aztft/aztft.QueryTypeAndId({0x14001b6e780?, 0x2020202020202020?}, 0x3a226b636f6c6222?)
	github.com/magodo/aztft@v0.3.1-0.20230713032200-ac231869c31f/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/workerpool@v0.0.0-20230119025400-40192d2716ea/workerpool.go:75 +0x78
created by github.com/magodo/workerpool.(*workPool).Run
	github.com/magodo/workerpool@v0.0.0-20230119025400-40192d2716ea/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions