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

panic: nil-pointer dereference #666

Open
tgummerer opened this issue Oct 9, 2024 · 0 comments
Open

panic: nil-pointer dereference #666

tgummerer opened this issue Oct 9, 2024 · 0 comments
Labels
impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec needs-repro Needs repro steps before it can be triaged or fixed

Comments

@tgummerer
Copy link

panic: runtime error: invalid memory address or nil pointer dereference 
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x2247196] 
goroutine 274 [running]: 
github.com/terraform-providers/terraform-provider-datadog/datadog.resourceDatadogServiceDefinitionRead({0x31dc6e0?, 0xc00394cf60?}, 0xc00392e300, {0x24a90c0?, 0xc0009655f0?}) 
 /home/runner/work/pulumi-datadog/pulumi-datadog/upstream/datadog/resource_datadog_service_definition_yaml.go:382 +0x196 
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000c0c7e0, {0x31dc6e0, 0xc00394cf60}, 0xc00392e300, {0x24a90c0, 0xc0009655f0}) 
 /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20240520223432-0c0bf0d65f10/helper/schema/resource.go:795 +0x119 
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000c0c7e0, {0x31dc6e0, 0xc00394cf60}, 0xc0038d5d40, {0x24a90c0, 0xc0009655f0}) 
 /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20240520223432-0c0bf0d65f10/helper/schema/resource.go:1089 +0x525 
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000b57c08, {0x31dc6e0?, 0xc0013a1ef0?}, 0xc000f0d218) 
 /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20240520223432-0c0bf0d65f10/helper/schema/grpc_provider.go:675 +0x4aa 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*grpcServer).ReadResource(0xc00013be08, {0x31dc6e0, 0xc0013a1ef0}, {0x2ca09fa, 0x1f}, {{0x31dcfa8?, 0xc00347b960?}}, {{{0x31dcfa8, 0xc00347b9b0}}, {0x26be780, ...}}, ...) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.91.1/pkg/tfshim/sdk-v2/provider2.go:705 +0x249 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*planResourceChangeImpl).Refresh(0xc000b57c20, {0x31dc6e0, 0xc0013a1ef0}, {0x2ca09fa, 0x1f}, {0x31dcf38, 0xc003944200}, {0x0?, 0xc00394c5a0?}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.91.1/pkg/tfshim/sdk-v2/provider2.go:370 +0x15f 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*providerWithPlanResourceChangeDispatch).Refresh(0xc000bdf650, {0x31dc6e0, 0xc0013a1ef0}, {0x2ca09fa, 0x1f}, {0x31dcf38, 0xc003944200}, {0x31bcca0, 0xc003942e10}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.91.1/pkg/tfshim/sdk-v2/provider2.go:847 +0xa7 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Read(0xc000646008, {0x31dc6e0?, 0xc0013a1560?}, 0xc0001cdd00) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.91.1/pkg/tfbridge/provider.go:1452 +0x991 
github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Read.func1({0x31fae00?, 0xc000646008?}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.8/muxer.go:381 +0x33 
github.com/pulumi/pulumi-terraform-bridge/x/muxer.resourceMethod[...](0xc001a0dc80?, 0x2a80920, 0xc000de76b8?) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.8/muxer.go:334 +0xb5 
github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Read(0x4f49670?, {0x31dc6e0?, 0xc0013a1560?}, 0x25d87e0?) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.8/muxer.go:380 +0x4a 
github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Read_Handler.func1({0x31dc6e0?, 0xc0013a1560?}, {0x2a5d740?, 0xc0001cdd00?}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.133.0/proto/go/provider_grpc.pb.go:669 +0xce 
github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x31dc6e0, 0xc0013a1410}, {0x2a5d740, 0xc0001cdd00}, 0xc0009d62e0, 0xc001153a58) 
 /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3c4 
github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Read_Handler({0x2b8d920, 0xc001a0dc80}, {0x31dc6e0, 0xc0013a1410}, 0xc0001cdb80, 0xc000b6fa00) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.133.0/proto/go/provider_grpc.pb.go:671 +0x143 
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000bdc200, {0x31dc6e0, 0xc00108eed0}, {0x31efda0, 0xc00188c4e0}, 0xc000ecdd40, 0xc001a225d0, 0x4f91110, 0x0) 
 /home/runner/go/pkg/mod/google.golang.org/grpc@v1.66.2/server.go:1394 +0xe2b 
google.golang.org/grpc.(*Server).handleStream(0xc000bdc200, {0x31efda0, 0xc00188c4e0}, 0xc000ecdd40) 
 /home/runner/go/pkg/mod/google.golang.org/grpc@v1.66.2/server.go:1805 +0xe8b 
google.golang.org/grpc.(*Server).serveStreams.func2.1() 
 /home/runner/go/pkg/mod/google.golang.org/grpc@v1.66.2/server.go:1029 +0x7f 
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 50 
 /home/runner/go/pkg/mod/google.golang.org/grpc@v1.66.2/server.go:1040 +0x125 

I only have the stack trace for this without much other context. metabase link

@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Oct 9, 2024
@justinvp justinvp added the kind/bug Some behavior is incorrect or out of spec label Oct 9, 2024
@iwahbe iwahbe added needs-repro Needs repro steps before it can be triaged or fixed impact/panic This bug represents a panic or unexpected crash and removed needs-triage Needs attention from the triage team labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/panic This bug represents a panic or unexpected crash kind/bug Some behavior is incorrect or out of spec needs-repro Needs repro steps before it can be triaged or fixed
Projects
None yet
Development

No branches or pull requests

4 participants