Loading...
Loading...
### Terraform Version ```shell branch main ``` ### Terraform Configuration Files ```terraform ...terraform config... ``` ### Debug Output panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x20 pc=0xa041dc] goroutine 79 [running]: github.com/zclconf/go-cty/cty.Type.FriendlyName(...) C:/Users/go/pkg/mod/github.com/zclconf/go-cty@v1.12.2/cty/type.go:47 github.com/zclconf/go-cty/cty.testConformance({{0x0?, 0x0?}}, {{0x1bbc330?, 0xc000f0a640?}}, {0xc000051af8, 0x0, 0x0}, 0xc000051b00) C:/Users/go/pkg/mod/github.com/zclconf/go-cty@v1.12.2/cty/type_conform.go:137 +0xc5c github.com/zclconf/go-cty/cty.Type.TestConformance(...) C:/Users/go/pkg/mod/github.com/zclconf/go-cty@v1.12.2/cty/type_conform.go:27 github.com/zclconf/go-cty/cty/msgpack.Marshal({{{0x0?, 0x0?}}, {0x0?, 0x0?}}, {{0x1bbc330?, 0xc000f0a640?}}) C:/Users/go/pkg/mod/github.com/zclconf/go-cty@v1.12.2/cty/msgpack/marshal.go:19 +0x9b github.com/hashicorp/terraform/internal/plugin.(*GRPCProvider).ReadResource(0xc000434120, {{0x16f7a52, 0xf}, {{{0x1bbc330, 0xc000f0a2c0}}, {0x1554ba0, 0xc00105f3b0}}, {0x25aa080, 0x0, 0x0}, ...}) D:/work_space/terraform/internal/plugin/grpc_provider.go:379 +0x385 ### Expected Behavior no panic ### Actual Behavior nil pointer panic ### Steps to Reproduce run the following codes `resp = p.provider.ReadResource(providers.ReadResourceRequest{ TypeName: info.Type, PriorState: priorState, Private: []byte{}, }) ` ### Additional Context _No response_ ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.