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: index out of range #2468

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

panic: index out of range #2468

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

tgummerer commented Oct 9, 2024

This panic was found in the cloudflare provider.

panic: runtime error: index out of range [0] with length 0 [recovered] 
 panic: runtime error: index out of range [0] with length 0 
goroutine 57 [running]: 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).recoverOnTypeError(0x1?, {0xc001222280?, 0x0?}, {0x2e25640, 0xc00189cc48}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfbridge/provider.go:250 +0x136 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.callWithRecover[...].func1() 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfbridge/provider.go:233 +0x64 
panic({0x2e25640?, 0xc00189cc48?}) 
 /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:785 +0x132 
github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider.resourceCloudflareZoneSettingsOverrideStateUpgradeV1.func1(...) 
 /home/runner/work/pulumi-cloudflare/pulumi-cloudflare/upstream/internal/sdkv2provider/resource_cloudflare_zone_settings_override_migrate.go:47 
github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider.resourceCloudflareZoneSettingsOverrideStateUpgradeV1({0x0?, 0x0?}, 0xc001cdced0, {0x0?, 0x0?}) 
 /home/runner/work/pulumi-cloudflare/pulumi-cloudflare/upstream/internal/sdkv2provider/resource_cloudflare_zone_settings_override_migrate.go:53 +0x1c9 
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.UpgradeJSONState({0x36bf088, 0xc001cce7b0}, 0x3150697?, 0xd?, 0x31629ae?, {0x313a3e0, 0xc001f24000}) 
 /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:495 +0x67 
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).upgradeJSONState(...) 
 /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:506 
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).UpgradeResourceState(0xc000f2dec0, {0x36bf088?, 0xc001c86e10?}, 0xc00126bec0) 
 /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:367 +0x408 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.upgradeResourceStateGRPC({0x36bf088, 0xc001c86e10}, {0x3191a47, 0x21}, 0xc00120fdc0, {{{0x36bf830?, 0xc001d32550?}}, {0x2930fe0?, 0xc001cbd5f0?}}, 0xc001c9a300, ...) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfshim/sdk-v2/upgrade_state.go:47 +0x1c8 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*planResourceChangeImpl).upgradeState(0xc000f2ded8, {0x36bf088, 0xc001c86e10}, {0x3191a47, 0x21}, {0x36bf7c0, 0xc001193b40}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfshim/sdk-v2/provider2.go:481 +0x136 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*providerWithPlanResourceChangeDispatch).Diff(0xc00122d3b0, {0x36bf088, 0xc001c86e10}, {0x3191a47, 0x21}, {0x36bf7c0, 0xc001193b40}, {0x369c120, 0xc00110c8c0}, {0x0, ...}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfshim/sdk-v2/provider2.go:827 +0xf0 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Diff.func1() 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfbridge/provider.go:1151 +0x78 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.callWithRecover[...]({0xc001222280?, 0xc0012a8008?}, 0xc001cbd650?, 0x36c5160?) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfbridge/provider.go:238 +0x82 
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Diff(0xc0012a8008, {0x36bf088?, 0xc001c869f0?}, 0xc000d9c960) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/[email protected]/pkg/tfbridge/provider.go:1150 +0xa26 
github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Diff.func1({0x36e5040?, 0xc0012a8008?}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/[email protected]/muxer.go:369 +0x30 
github.com/pulumi/pulumi-terraform-bridge/x/muxer.resourceMethod[...](0xc000166ba0?, 0x2f44860, 0xc000d556b8?) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/[email protected]/muxer.go:334 +0xb5 
github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Diff(0x5231cd0?, {0x36bf088?, 0xc001c869f0?}, 0x271f520?) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/[email protected]/muxer.go:368 +0x4a 
github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x36bf088?, 0xc001c869f0?}, {0x2f69720?, 0xc000d9c960?}) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:633 +0xcb 
github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x36bf088, 0xc001c86630}, {0x2f69720, 0xc000d9c960}, 0xc0016ae140, 0xc0016a4198) 
 /home/runner/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/go/otgrpc/server.go:57 +0x3c4 
github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x30aef40, 0xc000166ba0}, {0x36bf088, 0xc001c86630}, 0xc001342300, 0xc001b0d700) 
 /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:635 +0x143 
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000f95000, {0x36bf088, 0xc001c865a0}, {0x36d4900, 0xc00201bba0}, 0xc000b0c7e0, 0xc000f79a70, 0x5279240, 0x0) 
 /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1394 +0xe2b 
google.golang.org/grpc.(*Server).handleStream(0xc000f95000, {0x36d4900, 0xc00201bba0}, 0xc000b0c7e0) 
 /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1805 +0xe8b 
google.golang.org/grpc.(*Server).serveStreams.func2.1() 
 /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1029 +0x7f 
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 55 
 /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1040 +0x125 
error reading from server: EOF 

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 impact/panic This bug represents a panic or unexpected crash needs-repro Needs repro steps before it can be triaged or fixed 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