Closed hickmant6 closed 2 years ago
Hi @hickmant6,
Thanks for filing the issue. The example you've provided does not cause the crash shown with current versions of terraform. Since there have been numerous bug fixes released since v0.15.5, I would first suggest trying a current release. If that does not resolve the issue we can investigate further. I'm not sure how an invalid provider name could be arising from the configuration, so it may be stored in your current state.
Thanks!
Terraform CRASH while using terraform plan
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform. Please report the crash with Terraform1 so that we can fix this.
When reporting bugs, please include your terraform version, the stack trace shown below, and any additional information which may help replicate the issue.
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
called IsLegacy() on zero-value addrs.Provider goroutine 13 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x83 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x1a github.com/hashicorp/terraform/internal/logging.PanicHandler() /home/circleci/project/project/internal/logging/panic.go:55 +0x147 panic({0x2bb6ce0, 0x340b4f0}) /usr/local/go/src/runtime/panic.go:1038 +0x1bc github.com/hashicorp/terraform/internal/addrs.Provider.IsLegacy(...) /home/circleci/project/project/internal/addrs/provider.go:204 github.com/hashicorp/terraform/internal/depsfile.ProviderIsLockable(...) /home/circleci/project/project/internal/depsfile/locks.go:218 github.com/hashicorp/terraform/internal/configs.(Config).VerifyDependencySelections(0x15a96380, 0x159458f0) /home/circleci/project/project/internal/configs/config.go:230 +0xecc github.com/hashicorp/terraform/internal/backend/local.(Local).localRunDirect(0x15c14000, 0x15c1a240, 0x15862930, 0x15abbe40, {0x3492c1c, 0x15852a00}) /home/circleci/project/project/internal/backend/local/backend_local.go:142 +0x169 github.com/hashicorp/terraform/internal/backend/local.(Local).localRun(0x15c14000, 0x15c1a240) /home/circleci/project/project/internal/backend/local/backend_local.go:98 +0x91e github.com/hashicorp/terraform/internal/backend/local.(Local).opPlan(0x15c14000, {0x345dff4, 0x15c18ff0}, {0x345dff4, 0x15c19020}, 0x15c1a240, 0x15bf3520) /home/circleci/project/project/internal/backend/local/backend_plan.go:58 +0x11e github.com/hashicorp/terraform/internal/backend/local.(Local).Operation.func1(0x15562e10, 0x15562e50, 0x15562e90, 0x15c14000, 0x15562dd0, {0x345dff4, 0x15c18ff0}, {0x345dff4, 0x15c19020}, 0x15c1a240, ...) /home/circleci/project/project/internal/backend/local/backend.go:323 +0xb5 created by github.com/hashicorp/terraform/internal/backend/local.(Local).Operation /home/circleci/project/project/internal/backend/local/backend.go:316 +0x358
Version is terraform_1.1.7_windows_386
Hi @amraside, can you please open a new issue, following the new issue template, for your crash? It does not appear the same crash, we would like to keep the conversations separate for separate issues. Thanks!
Closing since we have not heard back with a reproduction case for a current Terraform release. If you can reproduce this with the current release, please file a new issue with the requested information.
Thanks!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
Debug Output
crash.814906698.log
Expected Behavior
successful plan
Actual Behavior
Steps to Reproduce
terraform init terraform fmt -recursive .\ terraform plan -var-file=.\example\example.tfvars
Additional Context
no
References
not sure