Skip to content

Instantly share code, notes, and snippets.

@sebhoss
Created November 1, 2022 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebhoss/9c6f99a1a6014f2807c0b6589dc61de8 to your computer and use it in GitHub Desktop.
Save sebhoss/9c6f99a1a6014f2807c0b6589dc61de8 to your computer and use it in GitHub Desktop.
tf framework bug
=== RUN TestListValue
--- FAIL: TestListValue (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x98b35f]
goroutine 18 [running]:
testing.tRunner.func1.2({0xf22fa0, 0x18bba60})
/usr/local/go/src/testing/testing.go:1396 +0x24e
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1399 +0x39f
panic({0xf22fa0, 0x18bba60})
/usr/local/go/src/runtime/panic.go:884 +0x212
github.com/hashicorp/terraform-plugin-framework/types.ListType.TerraformType(...)
/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v0.15.0/types/list.go:47
github.com/hashicorp/terraform-plugin-framework/internal/reflect.reflectSlice({0x1220330, 0xc00003c080}, {0x1223c88?, 0xc0001158e0?}, {{0x1225400?, 0xc0001114a0?}, {0xebb840?, 0xc0001261c8?}}, {0xebf1c0, 0xc000126168, ...}, ...)
/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v0.15.0/internal/reflect/slice.go:69 +0xea5
github.com/hashicorp/terraform-plugin-framework/internal/reflect.BuildValue({0x1220330, 0xc00003c080}, {0x1223c88, 0xc0001158e0}, {{0x1225400?, 0xc0001114a0?}, {0xebb840?, 0xc0001261c8?}}, {0xebf1c0, 0xc000126168, ...}, ...)
/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v0.15.0/internal/reflect/into.go:175 +0x1005
github.com/hashicorp/terraform-plugin-framework/internal/reflect.Into({0x1220330, 0xc00003c080}, {0x1223c88, 0xc0001158e0}, {{0x1225400?, 0xc0001114a0?}, {0xebb840?, 0xc0001261c8?}}, {0xe9aa40, 0xc000126168}, ...)
/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v0.15.0/internal/reflect/into.go:39 +0x279
github.com/hashicorp/terraform-plugin-framework/types.List.ElementsAs({0x0, 0x0, {0x0, 0x0, 0x0}, {0x0, 0x0}, {0xc000115890, 0x1, 0x1}, ...}, ...)
/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v0.15.0/types/list.go:379 +0x229
github.com/metio/terraform-provider-git/internal/provider_test.TestListValue(0x11?)
/var/home/seb/git/metio/terraform-provider-git/development/internal/provider/terraform_test.go:21 +0x1cb
testing.tRunner(0xc000102820, 0x10c5be8)
/usr/local/go/src/testing/testing.go:1446 +0x10b
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1493 +0x35f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment