aws_db_snapshot "most_recent" breaks while snapshot is being taken #3870
Labels
bug
Addresses a defect in current functionality.
crash
Results from or addresses a Terraform crash or kernel panic.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
This issue was originally opened by @vikrim1 as hashicorp/terraform#17670. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
panic: runtime error: invalid memory address or nil pointer dereference
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x2064962]
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4:
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: goroutine 141 [running]:
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.rdsSnapshotSort.Less(0xc4206a2ea0, 0x22, 0x22, 0x21, 0x0, 0x1)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_snapshot.go:185 +0x42
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.(*rdsSnapshotSort).Less(0xc42064f960, 0x21, 0x0, 0x10a1e01)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: :1 +0x62
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: sort.medianOfThree(0x41363a0, 0xc42064f960, 0x0, 0x11, 0x21)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: /usr/local/go/src/sort/sort.go:82 +0x7e
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: sort.doPivot(0x41363a0, 0xc42064f960, 0x0, 0x22, 0x4c346c8, 0x0)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: /usr/local/go/src/sort/sort.go:107 +0x96
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: sort.quickSort(0x41363a0, 0xc42064f960, 0x0, 0x22, 0xc)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: /usr/local/go/src/sort/sort.go:192 +0x8a
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: sort.Sort(0x41363a0, 0xc42064f960)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: /usr/local/go/src/sort/sort.go:220 +0x79
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.mostRecentDbSnapshot(0xc4206a2ea0, 0x22, 0x22, 0x1)
2018-03-21T21:56:52.285-0700 [DEBUG] plugin.terraform-provider-aws_v1.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/data_source_aws_db_snapshot.go:190 +0x71
Expected Behavior
Most recent snapshot identified
Actual Behavior
Crash
Steps to Reproduce
data "aws_db_snapshot" "snap" {
db_instance_identifier = "...."
most_recent = true
}
Additional Context
References
The text was updated successfully, but these errors were encountered: