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 Report #6447

Closed
ghost opened this issue Nov 13, 2018 · 2 comments
Closed

Crash Report #6447

ghost opened this issue Nov 13, 2018 · 2 comments
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@ghost
Copy link

ghost commented Nov 13, 2018

This issue was originally opened by @nzimmerman-isp as hashicorp/terraform#19353. It was migrated here as a result of the provider split. The original body of the issue is below.



name: Bug report
about: Let us know about an unexpected error, a crash, or an incorrect behavior.


Terraform Version

Terraform v0.11.10
+ provider.aws v1.43.1

Terraform Configuration Files

This is a terraform config generated by KOPS for building a Kubernetes cluster. Not sure what the relevant parts would be.

...

Debug Output

Crash Output

crash.log

Expected Behavior

Actual Behavior

Steps to Reproduce

terraform plan

Additional Context

References

@bflad bflad added bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/ec2 Issues and PRs that pertain to the ec2 service. labels Nov 13, 2018
@bflad bflad added this to the v1.43.2 milestone Nov 13, 2018
@bflad
Copy link
Contributor

bflad commented Nov 13, 2018

Hi @nzimmerman-isp 👋 Sorry for the trouble here.

This crash started occurring due to a change made to the aws_security_group_rule resource in version 1.43.1 of the AWS provider. We merged a fix (#6419) that was released in version 1.43.2 of the AWS provider on Saturday that should prevent this crash. If you update your AWS provider version via the below configuration (or another method appropriate for your Terraform environment) the issue should go away. e.g.

provider "aws" {
  # ... potentially other configuration ...
  version = "1.43.2"
}

Please see the Terraform documentation on provider versioning and reach out if you need any assistance upgrading or if the upgrade doesn't help.

For reference, matching portion of the crash log:

2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: panic: runtime error: invalid memory address or nil pointer dereference
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x235739c]
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: 
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: goroutine 414 [running]:
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: github.com/terraform-providers/terraform-provider-aws/aws.findRuleMatch(0xc0003f1280, 0xc00041f880, 0x2, 0x2, 0x1, 0x0)
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_security_group_rule.go:433 +0x6c
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsSecurityGroupRuleRead(0xc0002b8540, 0x2c5ea40, 0xc000250300, 0xc0002b8540, 0x0)
2018-11-12T13:09:13.529-0800 [DEBUG] plugin.terraform-provider-aws_v1.43.1_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_security_group_rule.go:286 +0x5fd

@bflad bflad closed this as completed Nov 13, 2018
@ghost
Copy link
Author

ghost commented Apr 2, 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 2, 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. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

1 participant