Skip to content

Instantly share code, notes, and snippets.

@Gui13
Created June 12, 2025 12:05
Show Gist options
  • Save Gui13/f4481e3235da960e4a0a40059f12a26c to your computer and use it in GitHub Desktop.
Save Gui13/f4481e3235da960e4a0a40059f12a26c to your computer and use it in GitHub Desktop.
runlog.txt
Stack trace from the terraform-provider-azuredevops_v0.9.1 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb9dd18]
goroutine 934 [running]:
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils.(*SecurityNamespace).GetPrincipalPermissions.func1({0xe3ff40?, 0xc00082ca20?})
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils/namespaces.go:442 +0x98
reflect.Value.call({0xd06ce0?, 0xec3f18?, 0x7f5c381365b8?}, {0xe6331c, 0x4}, {0xc0007253e0, 0x1, 0xc000932cd8?})
reflect/value.go:556 +0x845
reflect.Value.Call({0xd06ce0?, 0xec3f18?, 0xc0006786c0?}, {0xc0007253e0, 0x1, 0x1})
reflect/value.go:339 +0xbf
github.com/ahmetb/go-linq.(*genericFunc).Call(0xc0003307b0, {0xc000932d10, 0x1, 0x1?})
github.com/ahmetb/[email protected]+incompatible/genericfunc.go:35 +0x70
github.com/ahmetb/go-linq.Query.SelectT.func1({0xe3ff40?, 0xc00082ca20?})
github.com/ahmetb/[email protected]+incompatible/select.go:47 +0x47
github.com/ahmetb/go-linq.Query.Select.func1.1()
github.com/ahmetb/[email protected]+incompatible/select.go:24 +0x3e
github.com/ahmetb/go-linq.Query.ToSlice({0xcdc120?}, {0xcaec80?, 0xc000725368?})
github.com/ahmetb/[email protected]+incompatible/result.go:634 +0x1a8
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils.(*SecurityNamespace).GetPrincipalPermissions(0xc000484f00?, 0xe6a4ef?)
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils/namespaces.go:444 +0xdf
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils.GetPrincipalPermissions(0xd4470a3cedb79e2e?, 0x87fd75d2fd0fc187?)
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils/securityHelper.go:106 +0x10c
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions.resourceGitPermissionsRead(0x0?, {0xcc8c80?, 0xc0004df080?})
github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/service/permissions/resource_git_permissions.go:70 +0x6c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xfbf3e0?, {0xfbf3e0?, 0xc0009c90e0?}, 0xd?, {0xcc8c80?, 0xc0004df080?})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:712 +0x178
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000473a40, {0xfbf3e0, 0xc0009c90e0}, 0xc0003b4820, {0xcc8c80, 0xc0004df080})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1015 +0x585
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000424558, {0xfbf3e0?, 0xc0009c8fc0?}, 0xc00091ba80)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:613 +0x497
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc0003ecfa0, {0xfbf3e0?, 0xc0009c89f0?}, 0xc0000dfc80)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:748 +0x49e
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0xe27de0?, 0xc0003ecfa0}, {0xfbf3e0, 0xc0009c89f0}, 0xc0002f0c40, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:349 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002741e0, {0xfc20e0, 0xc000602340}, 0xc0008a9e60, 0xc00046faa0, 0x14f37b0, 0x0)
google.golang.org/[email protected]/server.go:1336 +0xd13
google.golang.org/grpc.(*Server).handleStream(0xc0002741e0, {0xfc20e0, 0xc000602340}, 0xc0008a9e60, 0x0)
google.golang.org/[email protected]/server.go:1704 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:963 +0x28a
Error: The terraform-provider-azuredevops_v0.9.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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment