-
Notifications
You must be signed in to change notification settings - Fork 10.3k
terraform 1.13.3 TERRAFORM CRASH #37748
Copy link
Copy link
Closed
Labels
bugconfirmeda Terraform Core team member has reproduced this issuea Terraform Core team member has reproduced this issuecrashnewnew issue not yet triagednew issue not yet triaged
Description
Terraform Version
Terraform v1.13.3
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v6.15.0
+ provider registry.terraform.io/hashicorp/random v3.7.2Terraform Configuration Files
...terraform config...Debug Output
Run terraform show -json ./downloaded-tfplan/tfplan > tfplan.json
terraform show -json ./downloaded-tfplan/tfplan > tfplan.json
shell: /usr/bin/bash -e {0}
env:
TERRAFORM_CLI_PATH: /home/runner/work/_temp/3813ca63-0ba4-4188-aece-cf4286b59396
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
Please report the crash with Terraform[1] 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.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
panic: runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
github.com/hashicorp/terraform/internal/logging.PanicHandler()
github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16a
panic({0x36a0fa0?, 0x6308e10?})
runtime/panic.go:792 +0x132
github.com/hashicorp/terraform/internal/cloud.(*Cloud).AppName(...)
github.com/hashicorp/terraform/internal/cloud/backend.go:440
github.com/hashicorp/terraform/internal/command.(*ShowCommand).getDataFromCloudPlan(0x7ffcd175fd1a?, 0xc000914db0, 0x0)
github.com/hashicorp/terraform/internal/command/show.go:288 +0x155
github.com/hashicorp/terraform/internal/command.(*ShowCommand).getPlanFromPath(0xc000133880, {0x7ffcd175fd1a?, 0xc0002e7008?})
github.com/hashicorp/terraform/internal/command/show.go:273 +0x75
github.com/hashicorp/terraform/internal/command.(*ShowCommand).showFromPath(0x2?, {0x7ffcd175fd1a, 0x1a})
github.com/hashicorp/terraform/internal/command/show.go:189 +0x32
github.com/hashicorp/terraform/internal/command.(*ShowCommand).show(0xc000133880, {0x7ffcd175fd1a?, 0x2?})
github.com/hashicorp/terraform/internal/command/show.go:132 +0x1a7
github.com/hashicorp/terraform/internal/command.(*ShowCommand).Run(0xc000133880, {0xc00012e0e0, 0x2, 0x2})
github.com/hashicorp/terraform/internal/command/show.go:78 +0x3e5
github.com/hashicorp/cli.(*CLI).Run(0xc0008cef00)
github.com/hashicorp/cli@v1.1.7/cli.go:265 +0x4de
main.realMain()
github.com/hashicorp/terraform/main.go:339 +0x1deb
main.main()
github.com/hashicorp/terraform/main.go:64 +0x13
Expected Behavior
generate tfplan.json
Actual Behavior
Run terraform show -json ./downloaded-tfplan/tfplan > tfplan.json
terraform show -json ./downloaded-tfplan/tfplan > tfplan.json
shell: /usr/bin/bash -e {0}
env:
TERRAFORM_CLI_PATH: /home/runner/work/_temp/3813ca63-0ba4-4188-aece-cf4286b59396
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
Please report the crash with Terraform[1] 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.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
panic: runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
github.com/hashicorp/terraform/internal/logging.PanicHandler()
github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16a
panic({0x36a0fa0?, 0x6308e10?})
runtime/panic.go:792 +0x132
github.com/hashicorp/terraform/internal/cloud.(*Cloud).AppName(...)
github.com/hashicorp/terraform/internal/cloud/backend.go:440
github.com/hashicorp/terraform/internal/command.(*ShowCommand).getDataFromCloudPlan(0x7ffcd175fd1a?, 0xc000914db0, 0x0)
github.com/hashicorp/terraform/internal/command/show.go:288 +0x155
github.com/hashicorp/terraform/internal/command.(*ShowCommand).getPlanFromPath(0xc000133880, {0x7ffcd175fd1a?, 0xc0002e7008?})
github.com/hashicorp/terraform/internal/command/show.go:273 +0x75
github.com/hashicorp/terraform/internal/command.(*ShowCommand).showFromPath(0x2?, {0x7ffcd175fd1a, 0x1a})
github.com/hashicorp/terraform/internal/command/show.go:189 +0x32
github.com/hashicorp/terraform/internal/command.(*ShowCommand).show(0xc000133880, {0x7ffcd175fd1a?, 0x2?})
github.com/hashicorp/terraform/internal/command/show.go:132 +0x1a7
github.com/hashicorp/terraform/internal/command.(*ShowCommand).Run(0xc000133880, {0xc00012e0e0, 0x2, 0x2})
github.com/hashicorp/terraform/internal/command/show.go:78 +0x3e5
github.com/hashicorp/cli.(*CLI).Run(0xc0008cef00)
github.com/hashicorp/cli@v1.1.7/cli.go:265 +0x4de
main.realMain()
github.com/hashicorp/terraform/main.go:339 +0x1deb
main.main()
github.com/hashicorp/terraform/main.go:64 +0x13
Steps to Reproduce
tf-summarize:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: [tf-plan]
steps:
- name: Download tfplan
uses: actions/download-artifact@v5
with:
name: tfplan
path: ./downloaded-tfplan
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.13.3
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Terraform init
id: init
run: terraform init -input=false -backend=false
- name: Terraform show
id: show
run: |
terraform show -json ./downloaded-tfplan/tfplan > tfplan.json
Additional Context
No response
References
No response
Generative AI / LLM assisted development?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugconfirmeda Terraform Core team member has reproduced this issuea Terraform Core team member has reproduced this issuecrashnewnew issue not yet triagednew issue not yet triaged