Skip to content

terraform-provider-aws_v6.26.0_x5 plugin: fatal error: fault [signal SIGSEGV: segmentation violation code=0x2 addr=0x21e88fd8 pc=0x119fbde] goroutine #45624

@pandeytanmay

Description

@pandeytanmay

Terraform and AWS Provider Version

Terraform v1.13.4

installed via the following script in a docker image (debian 12)


ENV TERRAFORM_VERSION=1.13.4
RUN curl -fsSL "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" -o /tmp/terraform.zip && \
    unzip /tmp/terraform.zip -d /usr/local/bin/ && \
    rm /tmp/terraform.zip

Affected Resource(s) or Data Source(s)

No response

Expected Behavior

aws provider plugins should load properly

Actual Behavior

│ Error: Failed to load plugin schemas

│ Error while loading schemas for plugin components: Failed to obtain
│ provider schema: Could not load the schema for provider
│ registry.terraform.io/hashicorp/aws: failed to retrieve schema from
│ provider "registry.terraform.io/hashicorp/aws": Plugin did not respond: The
│ plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).GetProviderSchema call.

Relevant Error/Panic Output


│ Error: Failed to load plugin schemas

│ Error while loading schemas for plugin components: Failed to obtain
│ provider schema: Could not load the schema for provider
│ registry.terraform.io/hashicorp/aws: failed to retrieve schema from
│ provider "registry.terraform.io/hashicorp/aws": Plugin did not respond: The
│ plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).GetProviderSchema call. The plugin logs may contain
│ more details...

Stack trace from the terraform-provider-aws_v6.26.0_x5 plugin:
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x21e88fd8 pc=0x119fbde]
goroutine 25 gp=0xc003644380 m=10 mp=0xc000300808 [running]:
runtime.throw({0x1f649e0e?, 0xc006e01110?})
        runtime/panic.go:1101 +0x48 fp=0xc006b86400 sp=0xc006b863d0 pc=0x4750a8
runtime.sigpanic()
        runtime/signal_unix.go:939 +0x26c fp=0xc006b86460 sp=0xc006b86400 pc=0x47718c
github.com/hashicorp/terraform-plugin-framework/types/basetypes.SetValue.IsNull(...)
        github.com/hashicorp/[email protected]/types/basetypes/set_value.go:303
github.com/hashicorp/terraform-provider-aws/internal/framework/types.setTypeOf[...].ValueFromSet(0x21f7ce80?, {0x21e3d498?, 0xc006e01110?}, {{0x0, 0x0, 0x0}, {0x21e88fd8, 0x301707e0}, 0x0})
        github.com/hashicorp/terraform-provider-aws/internal/framework/types/setof.go:65 +0x9e fp=0xc006b865e8 sp=0xc006b86460 pc=0x119fbde
github.com/hashicorp/terraform-provider-aws/internal/framework/types.setTypeOf[...].ValueFromTerraform(0x21f7ce80?, {0x21e3d498?, 0xc006e01110?}, {{0x21f27e48, 0xc006e01530}, {0x0, 0x0}})
        github.com/hashicorp/terraform-provider-aws/internal/framework/types/setof.go:94 +0x14a fp=0xc006b866e8 sp=0xc006b865e8 pc=0x119f90a
github.com/hashicorp/terraform-provider-aws/internal/framework/types.(*setTypeOf[...]).ValueFromTerraform({0x21e3d498?, 0xc006e01110?}, {{0x21f27e48?, 0xc006e01530?}, {0x0?, 0x0?}})
        <autogenerated>:1 +0x85 fp=0xc006b86748 sp=0xc006b866e8 pc=0x11b40c5
github.com/hashicorp/terraform-provider-aws/internal/framework/types.NullValueOf({0x21e3d498, 0xc006e01110}, {0x1f1206e0?, 0xc006d56340?})
        github.com/hashicorp/terraform-provider-aws/internal/framework/types/null.go:73 +0x476 fp=0xc006b868d0 sp=0xc006b86748 pc=0x1190d96
github.com/hashicorp/terraform-provider-aws/internal/framework/types.NullOutObjectPtrFields[...]-range1(...)
        github.com/hashicorp/terraform-provider-aws/internal/framework/types/objectof.go:166
github.com/hashicorp/terraform-provider-aws/internal/framework/types.NullOutObjectPtrFields[...].StructFields.func1(...)
        github.com/hashicorp/terraform-provider-aws/internal/reflect/struct.go:30
github.com/hashicorp/terraform-provider-aws/internal/framework/types.NullOutObjectPtrFields[...]({0x21e3d498, 0xc006e01110}, 0xc006d3b900)
        github.com/hashicorp/terraform-provider-aws/internal/framework/types/objectof.go:160 +0x5ed fp=0xc006b86b90 sp=0xc006b868d0 pc=0x18080f6d
github.com/hashicorp/terraform-provider-aws/internal/framework.(*withModel[...]).validateModel(0x21b7bec0?, {0x21e3d498, 0xc006e01110}, 0xc006b86c58)
        github.com/hashicorp/terraform-provider-aws/internal/framework/data_source_with_model.go:47 +0x6c fp=0xc006b86bf8 sp=0xc006b86b90 pc=0x1808086c
github.com/hashicorp/terraform-provider-aws/internal/framework.(*ResourceWithModel[...]).ValidateModel(0x21a81850, {0x21e3d498, 0xc006e01110}, 0xc006e0b080)
        github.com/hashicorp/terraform-provider-aws/internal/framework/resource_with_model.go:45 +0x315 fp=0xc006b86d40 sp=0xc006b86bf8 pc=0x18080775
github.com/hashicorp/terraform-provider-aws/internal/service/dsql.(*clusterPeeringResource).ValidateModel(0x2ffddec0?, {0x21e3d498?, 0xc006e01110?}, 0x0?)
        <autogenerated>:1 +0x38 fp=0xc006b86d78 sp=0xc006b86d40 pc=0x1808ad98
github.com/hashicorp/terraform-provider-aws/internal/provider/framework.(*wrappedResource).Schema(0xc003cd0190, {0x21e3d498?, 0xc0042d1c20?}, {}, 0xc006e0b080)
        github.com/hashicorp/terraform-provider-aws/internal/provider/framework/wrap.go:636 +0x517 fp=0xc006b86eb0 sp=0xc006b86d78 pc=0x15aab857
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ResourceSchemas(0xc002f27208, {0x21e3d498, 0xc0042d1c20})
        github.com/hashicorp/[email protected]/internal/fwserver/server.go:736 +0x270 fp=0xc006b87260 sp=0xc006b86eb0 pc=0xaee1b0
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).GetProviderSchema(0xc002f27208, {0x21e3d498, 0xc0042d1c20}, 0x301707e0?, 0xc006b87340)
        github.com/hashicorp/[email protected]/internal/fwserver/server_getproviderschema.go:52 +0x23f fp=0xc006b87308 sp=0xc006b87260 pc=0xaf895f
github.com/hashicorp/terraform-plugin-framework/internal/proto5server.(*Server).GetProviderSchema(0xc002f27208, {0x21e3d498?, 0xc0042d1b30?}, 0x301707e0)
        github.com/hashicorp/[email protected]/internal/proto5server/server_getproviderschema.go:24 +0xb3 fp=0xc006b873c0 sp=0xc006b87308 pc=0xb2ac93
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).GetProviderSchema(0xc00350ad80, {0x21e3d498?, 0xc003605c50?}, 0x5?)
        github.com/hashicorp/[email protected]/tf5muxserver/mux_server_GetProviderSchema.go:41 +0x2d2 fp=0xc006b87660 sp=0xc006b873c0 pc=0xb7bc72
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).GetSchema(0xc0034e6f00, {0x21e3d498?, 0xc003604540?}, 0xc003604570)
        github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:551 +0x14b fp=0xc006b87878 sp=0xc006b87660 pc=0x9f304b
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_GetSchema_Handler({0x1f4e6b60, 0xc0034e6f00}, {0x21e3d498, 0xc003604540}, 0xc003608100, 0x0)
        github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:609 +0x1a6 fp=0xc006b878c8 sp=0xc006b87878 pc=0x9cf4a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc003293600, {0x21e3d498, 0xc0036044b0}, 0xc003618180, 0xc0035aaf60, 0x30137558, 0x0)
        google.golang.org/[email protected]/server.go:1431 +0x1036 fp=0xc006b87d98 sp=0xc006b878c8 pc=0x938736
google.golang.org/grpc.(*Server).handleStream(0xc003293600, {0x21e3df98, 0xc003199380}, 0xc003618180)
        google.golang.org/[email protected]/server.go:1842 +0xb88 fp=0xc006b87f78 sp=0xc006b87d98 pc=0x93d9c8
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/[email protected]/server.go:1061 +0x7f fp=0xc006b87fe0 sp=0xc006b87f78 pc=0x9360df
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc006b87fe8 sp=0xc006b87fe0 pc=0x47cc41
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 59
        google.golang.org/[email protected]/server.go:1072 +0x11d
goroutine 1 gp=0xc000002380 m=nil [select]:
runtime.gopark(0xc002e4b9e0?, 0x2?, 0x80?, 0x23?, 0xc002e4b7a4?)
        runtime/proc.go:435 +0xce fp=0xc0035cf598 sp=0xc0035cf578 pc=0x4751ce
runtime.selectgo(0xc0035cf9e0, 0xc002e4b7a0, 0x1?, 0x0, 0xc002e4ba20?, 0x1)
        runtime/select.go:351 +0x837 fp=0xc0035cf6d0 sp=0xc0035cf598 pc=0x4543f7
github.com/hashicorp/go-plugin.Serve(0xc003487aa0)
        github.com/hashicorp/[email protected]/server.go:503 +0x1639 fp=0xc0035cfc00 sp=0xc0035cf6d0 pc=0x97d1f9
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.Serve({0x1f8521da, 0x23}, 0xc00349d190, {0x0, 0x0, 0x0})
        github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:329 +0xdb8 fp=0xc0035cfe78 sp=0xc0035cfc00 pc=0x9f18f8
main.main()
        github.com/hashicorp/terraform-provider-aws/main.go:41 +0x2a5 fp=0xc0035cff50 sp=0xc0035cfe78 pc=0x1b7bc885
runtime.main()
        runtime/proc.go:283 +0x28b fp=0xc0035cffe0 sp=0xc0035cff50 pc=0x441fab
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0035cffe8 sp=0xc0035cffe0 pc=0x47cc41
goroutine 17 gp=0xc000302380 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:435 +0xce fp=0xc0002867a8 sp=0xc000286788 pc=0x4751ce
runtime.goparkunlock(...)
        runtime/proc.go:441
runtime.forcegchelper()
        runtime/proc.go:348 +0xb3 fp=0xc0002867e0 sp=0xc0002867a8 pc=0x4422f3
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0002867e8 sp=0xc0002867e0 pc=0x47cc41
created by runtime.init.7 in goroutine 1
        runtime/proc.go:336 +0x1a
goroutine 18 gp=0xc000302540 m=nil [runnable]:
runtime.sweepone()
        runtime/mgcsweep.go:351 +0x23c fp=0xc000286f80 sp=0xc000286f78 pc=0x42cf5c
runtime.bgsweep(0xc000318000)
        runtime/mgcsweep.go:297 +0xff fp=0xc000286fc8 sp=0xc000286f80 pc=0x42cbdf
runtime.gcenable.gowrap1()
        runtime/mgc.go:204 +0x25 fp=0xc000286fe0 sp=0xc000286fc8 pc=0x421045
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000286fe8 sp=0xc000286fe0 pc=0x47cc41
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:204 +0x66
goroutine 19 gp=0xc000302700 m=nil [GC scavenge wait]:
runtime.gopark(0x9422ee?, 0x3b9aca00?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:435 +0xce fp=0xc000287778 sp=0xc000287758 pc=0x4751ce
runtime.goparkunlock(...)
        runtime/proc.go:441
runtime.(*scavengerState).park(0x3014e520)
Error: The terraform-provider-aws_v6.26.0_x5 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.
time="2025-12-16T13:25:54.644Z" level=info msg="sub-process exited" argo=true error="<nil>"
Error: exit status 1

Sample Terraform Configuration

Click to expand configuration

Steps to Reproduce

Run terraform apply

Debug Logging

Click to expand log output

GenAI / LLM Assisted Development

n/a

Important Facts and References

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

Labels

bugAddresses a defect in current functionality.crashResults from or addresses a Terraform crash or kernel panic.prioritizedPart of the maintainer teams immediate focus. To be addressed within the current quarter.providerPertains to the provider itself, rather than any interaction with AWS.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions