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

Segfault on scaleway_iam_application import #2642

Open
nmrgt opened this issue Jul 1, 2024 · 0 comments
Open

Segfault on scaleway_iam_application import #2642

nmrgt opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
priority:highest Bugs filled by customers, security issues secret Managed Secret Manager issues, bugs and feature requests

Comments

@nmrgt
Copy link

nmrgt commented Jul 1, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

❯ terraform -v
Terraform v1.8.2
on linux_amd64
+ provider registry.terraform.io/scaleway/scaleway v2.41.3

Affected Resource(s)

  • scaleway_iam_application

Output

Stack trace from the terraform-provider-scaleway_v2.41.3 plugin:

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

goroutine 220 [running]:
github.com/scaleway/terraform-provider-scaleway/v2/internal/services/secret.datasourceSchemaFromResourceVersionSchema({0x197a070, 0xc000b0c0e0}, 0xc000f32880, {0x130c960, 0xc0007a3020})
	github.com/scaleway/terraform-provider-scaleway/v2/internal/services/secret/version_data_source.go:88 +0x7b5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000713b20, {0x1979fc8, 0xc0005471a0}, 0xc000f32880, {0x130c960, 0xc0007a3020})
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:823 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc000713b20, {0x1979fc8, 0xc0005471a0}, 0xc000f32780, {0x130c960, 0xc0007a3020})
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:1043 +0x13a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc00012d158, {0x1979fc8?, 0xc0004bd140?}, 0xc000f01d40)
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1434 +0x6b1
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ReadDataSource(0xc00029b960, {0x1979fc8?, 0xc000f01da0?}, 0xc000f01d40)
	github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf5muxserver/mux_server_ReadDataSource.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc0006183c0, {0x1979fc8?, 0xc000f015c0?}, 0xc000896e10)
	github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:688 +0x27d
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x13909e0, 0xc0006183c0}, {0x1979fc8, 0xc000f015c0}, 0xc000f32580, 0x0)
	github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:572 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00021ee00, {0x1979fc8, 0xc000f01530}, {0x197fa60, 0xc000235b00}, 0xc00091a5a0, 0xc0006a2e10, 0x2280000, 0x0)
	google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc00021ee00, {0x197fa60, 0xc000235b00}, 0xc00091a5a0)
	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 55
	google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-scaleway_v2.41.3 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

  1. terraform import scaleway_iam_application.main xxx

References

@remyleone remyleone added iam IAM issues, bugs and feature requests priority:highest Bugs filled by customers, security issues labels Jul 1, 2024
@Codelax Codelax added secret Managed Secret Manager issues, bugs and feature requests and removed iam IAM issues, bugs and feature requests labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:highest Bugs filled by customers, security issues secret Managed Secret Manager issues, bugs and feature requests
Projects
None yet
Development

No branches or pull requests

4 participants