Skip to content

Instantly share code, notes, and snippets.

@sflandergan
Created May 5, 2022 06:25
Show Gist options
  • Save sflandergan/16f23ce66e8a3d568828fa60dad43143 to your computer and use it in GitHub Desktop.
Save sflandergan/16f23ce66e8a3d568828fa60dad43143 to your computer and use it in GitHub Desktop.
terraform-provider-astra astra_role module crashing
Stack trace from the terraform-provider-astra_v2.1.0-beta2 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc1d1ab]
goroutine 60 [running]:
github.com/datastax/terraform-provider-astra/v2/internal/provider.listRole(0xf005a8, 0xc0003815c0, 0xc00014ab30, 0xc00003a930, 0x24, 0x0, 0x0, 0xc0003815d0)
github.com/datastax/terraform-provider-astra/v2/internal/provider/data_source_role.go:105 +0x8b
github.com/datastax/terraform-provider-astra/v2/internal/provider.resourceRoleRead(0xf005a8, 0xc0003815c0, 0xc000397300, 0xd70fc0, 0xc000156040, 0xc00074e7f0, 0x616d65686373, 0x40e0f8)
github.com/datastax/terraform-provider-astra/v2/internal/provider/resource_role.go:155 +0x1f3
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0004716c0, 0xf005e0, 0xc00031d9b0, 0xc000397300, 0xd70fc0, 0xc000156040, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.12.0/helper/schema/resource.go:359 +0x17f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0004716c0, 0xf005e0, 0xc00031d9b0, 0xc00053b040, 0xd70fc0, 0xc000156040, 0xc00038c7b8, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.12.0/helper/schema/resource.go:650 +0x230
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000394078, 0xf00538, 0xc00031d9b0, 0xc0001566c0, 0xdf96fe, 0x12, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.12.0/helper/schema/grpc_provider.go:613 +0x4bb
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc000265c20, 0xf005e0, 0xc00031d320, 0xc000380d80, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.8.0/tfprotov5/tf5server/server.go:746 +0x430
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler(0xdb72e0, 0xc000265c20, 0xf005e0, 0xc00031d320, 0xc000380d20, 0x0, 0xf005e0, 0xc00031d320, 0xc0004fc280, 0x26c)
github.com/hashicorp/terraform-plugin-go@v0.8.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:349 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003ac540, 0xf07cf8, 0xc00046e1a0, 0xc0000bac60, 0xc000313350, 0x13b8510, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.45.0/server.go:1282 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0003ac540, 0xf07cf8, 0xc00046e1a0, 0xc0000bac60, 0x0)
google.golang.org/grpc@v1.45.0/server.go:1619 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000182190, 0xc0003ac540, 0xf07cf8, 0xc00046e1a0, 0xc0000bac60)
google.golang.org/grpc@v1.45.0/server.go:921 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.45.0/server.go:919 +0x1fd
Error: The terraform-provider-astra_v2.1.0-beta2 plugin crashed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment