Skip to content

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

@allexandr112

Description

@allexandr112

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfigconfirmeda Terraform Core team member has reproduced this issuecrash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions