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

SIGSEV when invalid profile used #1925

Open
sophie-warner-annalise-ai opened this issue Nov 28, 2024 · 0 comments
Open

SIGSEV when invalid profile used #1925

sophie-warner-annalise-ai opened this issue Nov 28, 2024 · 0 comments

Comments

@sophie-warner-annalise-ai
Copy link

sophie-warner-annalise-ai commented Nov 28, 2024

Terraform Version

OpenTofu v1.8.5

Terraform Grafana Provider Version

v3.13.1

Grafana Version

No response

Affected Resource(s)

No response

Terraform Configuration Files

provider "aws" {
  profile = "productio"
  region  = "ap-southeast-2"

  default_tags {
    tags = local.tags
  }
}

Expected Behavior

No response

Actual Behavior

│ Error: failed to get shared config profile, productio
│
│   with provider["registry.opentofu.org/hashicorp/aws"],
│   on provider.tf line 36, in provider "aws":
│   36: provider "aws" {
│
╵

Stack trace from the terraform-provider-grafana_v3.13.1 plugin:

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

goroutine 122 [running]:
github.com/grafana/terraform-provider-grafana/v3/internal/resources/oncall.(*userDataSource).Read(0x14000090a10, {0x103e57778, 0x14000d18450}, {{{{0x103e60018, 0x14000d18ae0}, {0x103b1e6e0, 0x14000d18a50}}, {0x103e63f08, 0x14000908b40}}, {{{0x0, ...}, ...}, ...}, ...}, ...)
	github.com/grafana/terraform-provider-grafana/v3/internal/resources/oncall/data_source_user.go:60 +0x148
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadDataSource(0x140005701e0, {0x103e57778, 0x14000d18450}, 0x14000908740, 0x140000634d0)
	github.com/hashicorp/[email protected]/internal/fwserver/server_readdatasource.go:103 +0x638
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadDataSource(0x140005701e0, {0x103e57778?, 0x14000d182d0?}, 0x14000d18390)
	github.com/hashicorp/[email protected]/internal/proto6server/server_readdatasource.go:55 +0x2e0
github.com/hashicorp/terraform-plugin-mux/tf6to5server.v6tov5Server.ReadDataSource({{0x103e693b0?, 0x140005701e0?}}, {0x103e57778?, 0x14000d182d0?}, 0x14000e8dda0?)
	github.com/hashicorp/[email protected]/tf6to5server/tf6to5server.go:165 +0x254
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ReadDataSource(0x1400012b570, {0x103e57778?, 0x14000e8de00?}, 0x14000e8dda0)
	github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ReadDataSource.go:36 +0x184
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0x1400071b040, {0x103e57778?, 0x14000c8f1a0?}, 0x14000c968c0)
	github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:688 +0x1cc
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x103dc6ba0, 0x1400071b040}, {0x103e57778, 0x14000c8f1a0}, 0x14000a1a100, 0x0)
	github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:599 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400015b200, {0x103e57778, 0x14000c8f110}, {0x103e61c40, 0x140008fc000}, 0x14000cc2b40, 0x140005f5e90, 0x104e9df60, 0x0)
	google.golang.org/[email protected]/server.go:1394 +0xb64
google.golang.org/grpc.(*Server).handleStream(0x1400015b200, {0x103e61c40, 0x140008fc000}, 0x14000cc2b40)
	google.golang.org/[email protected]/server.go:1805 +0xb20
google.golang.org/grpc.(*Server).serveStreams.func2.1()
	google.golang.org/[email protected]/server.go:1029 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 55
	google.golang.org/[email protected]/server.go:1040 +0x13c

Error: The terraform-provider-grafana_v3.13.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.

Steps to Reproduce

Weirdly having an invalid AWS provider caused the grafana pludin to SIGSEV. Fixing this removed the issue.

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant