Skip to content

Provider crashes with heap corruption (0xc0000374) on Windows after successful authentication #91

@dborshi

Description

@dborshi

Provider crashes with heap corruption (0xc0000374) on Windows after successful authentication

Description

The provider successfully authenticates and creates the Bitwarden Secrets Manager client, but then immediately crashes with a Windows heap corruption exit code (0xc0000374) during the ConfigureProvider RPC call. This makes the provider completely unusable on Windows.

Environment

  • OS: Windows (amd64)
  • Terraform version: 1.14.6
  • Provider version: 0.5.4-pre
  • IDE: VSCode with integrated terminal

Provider Configuration

provider "bitwarden-secrets" {
    api_url         = "https://api.bitwarden.eu"
    identity_url    = "https://identity.bitwarden.eu"
    organization_id = var.bw_organization_id
}

Steps to Reproduce

  1. Configure the provider as above targeting the EU endpoints
  2. Set BW_ACCESS_TOKEN as an environment variable
  3. Run terraform plan

Expected Behavior

Provider configures successfully and data sources resolve secret values.

Actual Behavior

The provider process crashes with exit code 0xc0000374 (Windows heap corruption) immediately after the client is created. The gRPC connection is forcibly closed by the provider process.

[INFO]  provider.terraform-provider-bitwarden-secrets_0.5.4-pre.exe: Configuring Bitwarden Secrets Manager
[DEBUG] provider.terraform-provider-bitwarden-secrets_0.5.4-pre.exe: Creating Bitwarden Secrets Manager Client
[DEBUG] provider.terraform-provider-bitwarden-secrets_0.5.4-pre.exe: Bitwarden Secrets Manager Client created
[DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:49463->127.0.0.1:10000: wsarecv: An existing connection was forcibly closed by the remote host."
[ERROR] plugin6.(*GRPCProvider).ConfigureProvider: error="rpc error: code = Unavailable desc = error reading from server: ..."
[ERROR] provider: plugin process exited: error="exit status 0xc0000374"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions