Skip to content

Instantly share code, notes, and snippets.

@zswanson
Created May 26, 2021 13:19
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 zswanson/d6e9058e17151066f1fe2de1384abcbb to your computer and use it in GitHub Desktop.
Save zswanson/d6e9058e17151066f1fe2de1384abcbb to your computer and use it in GitHub Desktop.
ecs_task_definition panic
Stack trace from the terraform-provider-aws_v3.42.0_x5 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xa8 pc=0x516c61b]
goroutine 252 [running]:
github.com/terraform-providers/terraform-provider-aws/aws.containerDefinitions.OrderEnvironmentVariables(0xc001d9e5a0, 0x4, 0x4)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/ecs_task_definition_equivalency.go:107 +0x3b
github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsEcsTaskDefinition.func2(0x6387780, 0xc001d8f0b0, 0x15, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/resource_aws_ecs_task_definition.go:83 +0x85
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diffString(0xc000b061b0, 0x7a34099, 0x15, 0xc000b09180, 0xc001c35508, 0x8519d70, 0xc001781480, 0x203000, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/schema.go:1375 +0x6e3
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diff(0xc000b061b0, 0x7a34099, 0x15, 0xc000b09180, 0xc001d9e360, 0x8519d70, 0xc001781480, 0xc001a2b900, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/schema.go:957 +0x4e8
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0xc000b061b0, 0x84ff548, 0xc001a50740, 0xc000db8310, 0xc001a7fcb0, 0x7b4b1d0, 0x6c6f040, 0xc001052600, 0xbb4c700, 0x6387780, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/schema.go:522 +0x219
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0xc000a71dc0, 0x84ff548, 0xc001a50740, 0xc000db8310, 0xc001a7fcb0, 0x6c6f040, 0xc001052600, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/resource.go:506 +0xa5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).PlanResourceChange(0xc0007a05b8, 0x84ff548, 0xc001a50740, 0xc0019e1450, 0xc001a50740, 0x77ee4a0, 0xc001a7e900)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/grpc_provider.go:693 +0x7c5
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).PlanResourceChange(0xc002014600, 0x84ff5f0, 0xc001a50740, 0xc000db81c0, 0xc002014600, 0xc001a7e9c0, 0xc001ff1ba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/server/server.go:315 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler(0x77ee4a0, 0xc002014600, 0x84ff5f0, 0xc001a7e9c0, 0xc00128ac60, 0x0, 0x84ff5f0, 0xc001a7e9c0, 0xc001a3e600, 0x10a3)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:362 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0009a5340, 0x85203f8, 0xc00035a600, 0xc0019d6d00, 0xc0013bbec0, 0xbb0a4a8, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0009a5340, 0x85203f8, 0xc00035a600, 0xc0019d6d00, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000efeb40, 0xc0009a5340, 0x85203f8, 0xc00035a600, 0xc0019d6d00)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:857 +0x1fd
Error: The terraform-provider-aws_v3.42.0_x5 plugin crashed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment