Skip to content

Instantly share code, notes, and snippets.

@Vaelatern
Created March 9, 2026 20:38
Show Gist options
  • Select an option

  • Save Vaelatern/83b5fa726b2790362649121d142323b4 to your computer and use it in GitHub Desktop.

Select an option

Save Vaelatern/83b5fa726b2790362649121d142323b4 to your computer and use it in GitHub Desktop.
Stack trace from the terraform-provider-nutanix_v2.4.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1477688]
goroutine 251 [running]:
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.flattenDisk(0xc000d82480)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/structure.go:300 +0x3a8
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.flattenDiskListHelper({0xc0011d1220, 0x2, 0x479659?}, {0xc0015b3020, 0x24}, 0x1)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/structure.go:267 +0x9c
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.flattenDiskListFilterCloudInitHelper({0xc0015b3020, 0x24}, 0x1, {0xc00050fe50, 0x1, 0x479645?}, {0xc0011d1220, 0x2, 0x2}, 0x1)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/structure.go:256 +0x11a
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.flattenDiskListFilterCloudInit(0xc00171e600, {0xc0011d1220, 0x2, 0x2})
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/structure.go:180 +0xd7
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.resourceNutanixVirtualMachineRead({0x1bf7248?, 0xc000d252c0?}, 0xc00171e600, {0x166e4c0?, 0xc0015f3720?})
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/resource_nutanix_virtual_machine.go:786 +0x177f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0007a1c00, {0x1bf7248, 0xc000d252c0}, 0xc00171e600, {0x166e4c0, 0xc0015f3720})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:358 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0007a1c00, {0x1bf7248, 0xc000d252c0}, 0xc000dd5c70, {0x166e4c0, 0xc0015f3720})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:635 +0x391
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000258000, {0x1bf7248, 0xc000d252c0}, 0xc000e0af40)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:576 +0x45c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc0002da900, {0x1bf7210?, 0xc0011d37d0?}, 0xc000e5c6c0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:553 +0x306
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0x1949ca0, 0xc0002da900}, {0x1bf7210, 0xc0011d37d0}, 0xc000e5c660, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:344 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000102700, {0x1bfd420, 0xc0000cef00}, 0xc00104a100, 0xc000bcf3b0, 0x25b7910, 0x0)
google.golang.org/[email protected]/server.go:1194 +0xc31
google.golang.org/grpc.(*Server).handleStream(0xc000102700, {0x1bfd420, 0xc0000cef00}, 0xc00104a100, 0x0)
google.golang.org/[email protected]/server.go:1517 +0x9c8
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:859 +0x87
created by google.golang.org/grpc.(*Server).serveStreams.func1 in goroutine 50
google.golang.org/[email protected]/server.go:857 +0x226
Error: The terraform-provider-nutanix_v2.4.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
Operation failed: failed running terraform plan (exit 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment