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

Crash on Arch Linux performing tab completion #31172

Closed
ericx opened this issue Jun 1, 2022 · 2 comments
Closed

Crash on Arch Linux performing tab completion #31172

ericx opened this issue Jun 1, 2022 · 2 comments
Labels
bug duplicate issue closed because another issue already tracks this problem

Comments

@ericx
Copy link

ericx commented Jun 1, 2022

Terraform Version

Terraform v1.2.1
on linux_amd64

Terraform Configuration Files

[blank -- brand new install]

Debug Output

Expected Behavior

Not entirely sure.
Ran "terraform -install-autocomplete"
Simply tabbed after "terraform" to see what would be displayed and it crashed.

Actual Behavior

$ terraform
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!

runtime error: index out of range [0] with length 0
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
runtime/debug/stack.go:16 +0x19
github.com/hashicorp/terraform/internal/logging.PanicHandler()
github.com/hashicorp/terraform/internal/logging/panic.go:55 +0x153
panic({0x558ef47a0ec0, 0xc0000528d0})
runtime/panic.go:844 +0x258
github.com/mitchellh/cli.(*CLI).processArgs(0xc0001968c0)
github.com/mitchellh/cli@v1.1.3/cli.go:688 +0x9ec
github.com/mitchellh/cli.(*CLI).init(0xc0001968c0)
github.com/mitchellh/cli@v1.1.3/cli.go:392 +0x3e9
sync.(*Once).doSlow(0xc00005a024?, 0xb?)
sync/once.go:68 +0xc2
sync.(*Once).Do(...)
sync/once.go:59
github.com/mitchellh/cli.(*CLI).Subcommand(...)
github.com/mitchellh/cli@v1.1.3/cli.go:276
main.realMain()
github.com/hashicorp/terraform/main.go:240 +0xfb5
main.main()
github.com/hashicorp/terraform/main.go:58 +0x19
^C
[Exit 130 (INT)]

Steps to Reproduce

  1. pacman -S terraform
  2. terraform -install-autocomplete
  3. terraform [tab]

Additional Context

$ hostnamectl
Static hostname: ericx-office2
Icon name: computer
Machine ID: 0a5ae3740a454cfc8036352d9588f7ea
Boot ID: 95873992c82445caa2d5f90ff2126eb7
Operating System: Arch Linux
Kernel: Linux 5.18.1-zen1-1-zen
Architecture: x86-64
Hardware Vendor: Dell Inc.
Hardware Model: Precision 3930 Rack
Firmware Version: 2.14.0

References

@ericx ericx added bug new new issue not yet triaged labels Jun 1, 2022
@kmoe
Copy link
Member

kmoe commented Jun 1, 2022

Duplicate of #31126.

@kmoe kmoe closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
@crw crw added duplicate issue closed because another issue already tracks this problem and removed new new issue not yet triaged labels Jun 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate issue closed because another issue already tracks this problem
Projects
None yet
Development

No branches or pull requests

3 participants