Terminal interrupt on terraform console causes panic #30099
Labels
duplicate
issue closed because another issue already tracks this problem
upstream
v1.0
Issues (primarily bugs) reported against v1.0 releases
waiting for reproduction
unable to reproduce issue without further information
Terraform Version
Terraform Configuration Files
Debug Output
2021-12-07T15:07:58.934Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.dataresource (expand)": entering dynamic subgraph
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.dataresource": starting visit (*terraform.NodeApplyableOutput)
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.policy_id": starting visit (*terraform.NodeApplyableOutput)
2021-12-07T15:07:58.934Z [TRACE] setValue: Saving Create change for module.alerts.output.policy_id in changeset
2021-12-07T15:07:58.934Z [TRACE] setValue: Saving value for module.alerts.output.policy_id in state
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.policy_id": visit complete
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.policy_id (expand)": dynamic subgraph completed successfully
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.policy_id (expand)": visit complete
2021-12-07T15:07:58.934Z [TRACE] setValue: Saving Create change for module.alerts.output.dataresource in changeset
2021-12-07T15:07:58.934Z [TRACE] setValue: Saving value for module.alerts.output.dataresource in state
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.dataresource": visit complete
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.dataresource (expand)": dynamic subgraph completed successfully
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts.output.dataresource (expand)": visit complete
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts (close)": starting visit (*terraform.nodeCloseModule)
2021-12-07T15:07:58.934Z [TRACE] vertex "module.alerts (close)": visit complete
2021-12-07T15:07:58.935Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/newrelic/newrelic/2.32.0/darwin_amd64/terraform-provider-newrelic_v2.32.0 pid=60577
2021-12-07T15:07:58.935Z [DEBUG] provider: plugin exited
2021-12-07T15:07:58.935Z [TRACE] vertex "provider["registry.terraform.io/newrelic/newrelic"] (close)": visit complete
2021-12-07T15:07:58.935Z [TRACE] GRPCProvider: Close
2021-12-07T15:07:58.935Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-07T15:07:58.936Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/newrelic/newrelic/2.32.0/darwin_amd64/terraform-provider-newrelic_v2.32.0 pid=60578
2021-12-07T15:07:58.936Z [DEBUG] provider: plugin exited
2021-12-07T15:07:58.936Z [TRACE] vertex "module.alerts.provider["registry.terraform.io/newrelic/newrelic"] (close)": visit complete
2021-12-07T15:07:58.936Z [TRACE] vertex "root": starting visit (*terraform.nodeCloseModule)
2021-12-07T15:07:58.936Z [TRACE] vertex "root": visit complete
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x18d6473]
goroutine 391 [running]:
github.com/chzyer/readline.(*opSearch).ExitSearchMode(0xc000d606e0, 0x0)
github.com/chzyer/[email protected]/search.go:118 +0x53
github.com/chzyer/readline.(*Operation).ioloop(0xc0001ba310)
github.com/chzyer/[email protected]/operation.go:302 +0x6a7
created by github.com/chzyer/readline.NewOperation
github.com/chzyer/[email protected]/operation.go:88 +0x310
Expected Behavior
What should have happened?
Exit out of console without crash
Actual Behavior
What actually happened?
Interrupt caused crash which froze terminal
Steps to Reproduce
Please list the full steps required to reproduce the issue, for example:
terraform console
local.<var> * 1.1
^C
Additional Context
References
The text was updated successfully, but these errors were encountered: