Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG]: Refreshing github_organization_ruleset crashes Terraform plugin with segfault #2450

Open
1 task done
StefanJokicTide opened this issue Nov 4, 2024 · 0 comments
Open
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@StefanJokicTide
Copy link

Expected Behavior

github_organization_ruleset applies correctly

Actual Behavior

Terraform provider crashes with

Stack trace from the terraform-provider-github_v6.3.1 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xc63d8d]

goroutine 123 [running]:
github.com/integrations/terraform-provider-github/v6/github.resourceGithubOrganizationRulesetRead(0xc0000ce900, {0xd25300?, 0xc00063d100?})
	github.com/integrations/terraform-provider-github/v6/github/resource_github_organization_ruleset.go:525 +0x56d
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x1064f10?, {0x1064f10?, 0xc000890b40?}, 0xd?, {0xd25300?, 0xc00063d100?})
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:811 +0x15f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000407c00, {0x1064f10, 0xc000890b40}, 0xc00098b450, {0xd25300, 0xc00063d100})
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:1117 +0x529
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000352810, {0x1064f10?, 0xc000890a80?}, 0xc00063c0c0)
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:708 +0x6c5
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc00024cb40, {0x1064f10?, 0xc0008900c0?}, 0xc00023e070)
	github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:783 +0x309
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0xecb700, 0xc00024cb40}, {0x1064f10, 0xc0008900c0}, 0xc0000ce180, 0x0)
	github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:482 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000ea000, {0x1064f10, 0xc000890000}, {0x1069810, 0xc0002dc180}, 0xc00071de60, 0xc0002ad800, 0x16f1508, 0x0)
	google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc0000ea000, {0x1069810, 0xc0002dc180}, 0xc00071de60)
	google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
	google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 68
	google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-github_v6.3.1 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

Terraform Version

Terraform 1.9.6

Affected Resource(s)

  • github_organization_ruleset

Terraform Configuration Files

No response

Steps to Reproduce

terraform plan/apply

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@StefanJokicTide StefanJokicTide added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Nov 4, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Triage in 🧰 Octokit Active Nov 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

1 participant