Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on plan #1314

Closed
lra opened this issue Aug 2, 2017 · 3 comments · Fixed by #1316
Closed

Crash on plan #1314

lra opened this issue Aug 2, 2017 · 3 comments · Fixed by #1316
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic.

Comments

@lra
Copy link

lra commented Aug 2, 2017

Terraform Version

Terraform v0.10.0

Panic Output

I can't really share the crash.log as there are private info in it.

panic: runtime error: invalid memory address or nil pointer dereference
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x23a327f]
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: 
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: goroutine 2567 [running]:
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsS3BucketRead(0xc4223e25b0, 0x299be00, 0xc42013a000, 0x0, 0x40045e0)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go:787 +0x1b3f
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc420cb3560, 0xc4223acb40, 0x299be00, 0xc42013a000, 0xc4207775c8, 0xc421b0be01, 0xc4201f9400)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:320 +0x21d
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc4217e6000, 0xc4223acaf0, 0xc4223acb40, 0x4a044b0, 0x0, 0x26a6d20)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:267 +0x91
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc42195eae0, 0xc4223ab560, 0xc4223abbb0, 0x0, 0x0)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:510 +0x4e
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: reflect.Value.call(0xc42038ef60, 0xc420130908, 0x13, 0x2c7773a, 0x4, 0xc42111af20, 0x3, 0x3, 0xf, 0x0, ...)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /usr/local/go/src/reflect/value.go:434 +0x91f
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: reflect.Value.Call(0xc42038ef60, 0xc420130908, 0x13, 0xc4208f1f20, 0x3, 0x3, 0x112d940, 0x3faf560, 0xc4223a56e0)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /usr/local/go/src/reflect/value.go:302 +0xa4
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: net/rpc.(*service).call(0xc421a02ec0, 0xc421a02e80, 0xc421a75848, 0xc420485600, 0xc421b273e0, 0x2648b60, 0xc4223ab560, 0x16, 0x2648ba0, 0xc4223abbb0, ...)
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /usr/local/go/src/net/rpc/server.go:387 +0x144
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4: created by net/rpc.(*Server).ServeCodec
2017/08/02 16:45:47 [DEBUG] plugin: terraform-provider-aws_v0.1.3_x4:   /usr/local/go/src/net/rpc/server.go:481 +0x404

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform init
  2. terraform plan
@radeksimko radeksimko added bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. labels Aug 3, 2017
@radeksimko
Copy link
Member

@lra Thanks for this report. Would you mind sharing the affected config (or relevant part of it - at least aws_s3_bucket), so we could add it as a test case and prevent this bug from ever re-appearing?

@lra
Copy link
Author

lra commented Aug 3, 2017

@radeksimko It might be tough to find the culprit, and slow, because our TF files are huge.

Looks like you got a good candidate in #1336

jocgir pushed a commit to coveooss/terraform-provider-aws that referenced this issue Aug 28, 2017
Fixes hashicorp/terraform#15706. Fixes hashicorp#1314. A recent pull request hashicorp#899) accessed `lifecycleRule.Filter` without first ensuring that it is not a `nil` pointer.
@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants