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

[Bug]: panic: runtime error: invalid memory address or nil pointer dereference #33999

Closed
voroninman opened this issue Oct 19, 2023 · 4 comments · Fixed by #34012
Closed

[Bug]: panic: runtime error: invalid memory address or nil pointer dereference #33999

voroninman opened this issue Oct 19, 2023 · 4 comments · Fixed by #34012
Assignees
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/dms Issues and PRs that pertain to the dms service.
Milestone

Comments

@voroninman
Copy link

Terraform Core Version

1.6.2

AWS Provider Version

5.21.0

Affected Resource(s)

  • aws_dms_certificate

Expected Behavior

Print the plan.

Actual Behavior

Crash with the stack trace.

Relevant Error/Panic Output Snippet

Stack trace from the terraform-provider-aws_v5.21.0_x5 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x10 pc=0x109094e8c]

goroutine 130 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/dms.dataSourceCertificateRead({0x10e260ae0, 0x14001554330}, 0x140005c1600, {0x10e0b4920?, 0x140024eb0a0})
        github.com/hashicorp/terraform-provider-aws/internal/service/dms/certificate_data_source.go:99 +0x1ac
github.com/hashicorp/terraform-provider-aws/internal/provider.interceptedHandler[...].func1(0x0?, {0x10e0b4920?, 0x140024eb0a0?})
        github.com/hashicorp/terraform-provider-aws/internal/provider/intercept.go:111 +0x28c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x10e260ae0?, {0x10e260ae0?, 0x140016de3c0?}, 0xd?, {0x10e0b4920?, 0x140024eb0a0?})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:790 +0x64
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0x14000b72fc0, {0x10e260ae0, 0x140016de3c0}, 0x140005c1500, {0x10e0b4920, 0x140024eb0a0})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1015 +0x130
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0x14003a6bb00, {0x10e260ae0?, 0x140016de2a0?}, 0x140005b5300)
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1237 +0x304
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ReadDataSource(0x10e260a38?, {0x10e260ae0?, 0x140016c7f50?}, 0x140005b5300)
        github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ReadDataSource.go:36 +0x188
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0x14003bf2140, {0x10e260ae0?, 0x140016c75c0?}, 0x140008d6a00)
        github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:699 +0x368
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x10de3b160?, 0x14003bf2140}, {0x10e260ae0, 0x140016c75c0}, 0x14000256690, 0x0)
        github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:503 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0x14000134780, {0x10e26e1a0, 0x14000b504e0}, 0x140019807e0, 0x14003c60150, 0x1146398a8, 0x0)
        google.golang.org/[email protected]/server.go:1360 +0xcb4
google.golang.org/grpc.(*Server).handleStream(0x14000134780, {0x10e26e1a0, 0x14000b504e0}, 0x140019807e0, 0x0)
        google.golang.org/[email protected]/server.go:1737 +0x82c
google.golang.org/grpc.(*Server).serveStreams.func1.1()
        google.golang.org/[email protected]/server.go:982 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/[email protected]/server.go:980 +0x16c

Error: The terraform-provider-aws_v5.21.0_x5 plugin crashed!

Terraform Configuration Files

terraform {
  required_version = ">= 1.0.0, < 2.0.0"
  backend "s3" {
    profile = "foo-dev"
    bucket  = "foo-state"
    key     = "foo"
    region  = "eu-west-1"
  }
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = ">= 5.0.0, < 6.0.0"
    }
  }
}

Steps to Reproduce

  1. terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

@voroninman voroninman added the bug Addresses a defect in current functionality. label Oct 19, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added crash Results from or addresses a Terraform crash or kernel panic. service/dms Issues and PRs that pertain to the dms service. labels Oct 19, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Oct 19, 2023
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Oct 19, 2023
@ewbankkit ewbankkit self-assigned this Oct 19, 2023
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 19, 2023
@github-actions github-actions bot added this to the v5.22.0 milestone Oct 19, 2023
@voroninman
Copy link
Author

@ewbankkit 🌟

@github-actions github-actions bot removed the bug Addresses a defect in current functionality. label Oct 20, 2023
@github-actions
Copy link

This functionality has been released in v5.22.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2023
@justinretzolk justinretzolk added the bug Addresses a defect in current functionality. label Feb 10, 2024
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. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/dms Issues and PRs that pertain to the dms service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants