terraform-provider-artifactory: v7.10.0 causing SIGSEGV errors during plan
When running a terraform plan with provider version 7.10.0 - a SIGSEGV is thrown and the plan fails:
Stack trace from the terraform-provider-artifactory_v7.10.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x98 pc=0xb7f15d]
goroutine 62 [running]:
github.com/go-resty/resty/v2.(*Request).Execute(0xc000664820, {0xe163b1?, 0xc000048e00?}, {0xe31ba9, 0x1f})
github.com/go-resty/resty/v2@v2.7.0/request.go:756 +0x21d
github.com/go-resty/resty/v2.(*Request).Get(...)
github.com/go-resty/resty/v2@v2.7.0/request.go:689
github.com/jfrog/terraform-provider-shared/util/sdk.GetArtifactoryVersion(0x0)
github.com/jfrog/terraform-provider-shared@v1.15.0/util/sdk/sdk.go:335 +0x218
github.com/jfrog/terraform-provider-artifactory/v7/pkg/artifactory/provider.(*ArtifactoryProvider).Configure(0x0?, {0xfad820, 0xc000651140}, {{0xc0007d9ff8, 0x5}, {{{0xfb1350, 0xc000654db0}, {0xd1aa60, 0xc000651f20}}, {0xfb2330, ...}}}, ...)
github.com/jfrog/terraform-provider-artifactory/v7/pkg/artifactory/provider/framework.go:139 +0x885
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ConfigureProvider(0xc0000c6160, {0xfad820, 0xc000651140}, 0xc0007d1ec0, 0xc0007d1e40)
github.com/hashicorp/terraform-plugin-framework@v1.2.0/internal/fwserver/server_configureprovider.go:15 +0x10f
github.com/hashicorp/terraform-plugin-framework/internal/proto5server.(*Server).ConfigureProvider(0xc0000c6160, {0xfad820?, 0xc000650ff0?}, 0x3?)
github.com/hashicorp/terraform-plugin-framework@v1.2.0/internal/proto5server/server_configureprovider.go:36 +0x292
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ConfigureProvider({0xc00042a3c0, 0xc00042a420, {0xc00007a4a0, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
github.com/hashicorp/terraform-plugin-mux@v0.9.0/tf5muxserver/mux_server_ConfigureProvider.go:25 +0x1b3
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).Configure(0xc000326b40, {0xfad820?, 0xc000645830?}, 0xc0007d1b00)
github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/tf5server/server.go:556 +0x2ce
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_Configure_Handler({0xde4800?, 0xc000326b40}, {0xfad820, 0xc000645830}, 0xc000800b60, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:331 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000001e0, {0xfb1520, 0xc00047aea0}, 0xc00084bb00, 0xc000689500, 0x151a478, 0x0)
google.golang.org/grpc@v1.51.0/server.go:1340 +0xd13
google.golang.org/grpc.(*Server).handleStream(0xc0000001e0, {0xfb1520, 0xc00047aea0}, 0xc00084bb00, 0x0)
google.golang.org/grpc@v1.51.0/server.go:1713 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.51.0/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.51.0/server.go:963 +0x28a
Error: The terraform-provider-artifactory_v7.10.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.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (1 by maintainers)
Commits related to this issue
- GH-731, fixed nil pointer, when JFROG-URL is empty artifactory_group is migrated to Plugin Framework — committed to jfrog/terraform-provider-artifactory by danielmkn a year ago
I am also experiencing this issue with version 7.10.0. I’m running in the cloud (linux_amd64) with terraform version 1.4.6
Although there are many resources in the workspace - the only artifactory resource is a data resource of type “artifactory_file”.