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

Terraform console crashes when passing incorrect arguments to setsubtract() function #24377

Closed
allexandr112 opened this issue Mar 16, 2020 · 2 comments · Fixed by zclconf/go-cty#56 or #25216
Labels
bug config confirmed a Terraform Core team member has reproduced this issue crash v0.12 Issues (primarily bugs) reported against v0.12 releases

Comments

@allexandr112
Copy link

Terraform Version

Terraform v0.12.23

Terraform Configuration Files

No file, just a commands

terraform console
setsubtract([["a"], "b", null], ["a"])

Debug Output

https://gist.github.com/allexandr112/6020d1b5da7f2aef98b880ef89511045

Crash Output

https://gist.github.com/allexandr112/b35d5f362bf7649f276d63ec680a9d24

Expected Behavior

I suppose it should be some error message, but no crash

Actual Behavior

Terraform console crashes and panic

Steps to Reproduce

  1. terraform console
  2. setsubtract([["a"], "b", null], ["a"])

Additional Context

Linux 4.15.0-88-generic x86_64 x86_64 GNU/Linux amd64
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"

References

@danieldreier
Copy link
Contributor

I've reproduced this on 0.12.25

@danieldreier danieldreier added the confirmed a Terraform Core team member has reproduced this issue label May 13, 2020
@apparentlymart apparentlymart added the v0.12 Issues (primarily bugs) reported against v0.12 releases label Jun 4, 2020
@ghost
Copy link

ghost commented Jul 6, 2020

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.

@ghost ghost locked and limited conversation to collaborators Jul 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug config confirmed a Terraform Core team member has reproduced this issue crash v0.12 Issues (primarily bugs) reported against v0.12 releases
Projects
None yet
4 participants