Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Terraform console segfault
docker run -it --rm -u 817502452 -v ~/.aws:/root/.aws -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -v /Users/exampleuser:/Users/exampleuser -e HOME=/Users/exampleuser -e TF_DATA_DIR -e TF_VAR_env -e CREATED_BY -e TF_LOG -v /Users/exampleuser/src/pub/terraform-crash:/wd -w /wd/terraform hashicorp/terraform:0.11.3 console
2018/03/05 21:25:21 [INFO] Terraform version: 0.11.3 3802b14260603f90c7a1faf55994dcc8933e2069
2018/03/05 21:25:21 [INFO] Go runtime version: go1.9.1
2018/03/05 21:25:21 [INFO] CLI args: []string{"/bin/terraform", "console"}
2018/03/05 21:25:21 [DEBUG] Attempting to open CLI config file: /Users/exampleuser/.terraformrc
2018/03/05 21:25:21 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/03/05 21:25:21 [INFO] CLI command args: []string{"console"}
2018/03/05 21:25:21 [DEBUG] command: loading backend config file: /wd/terraform
2018/03/05 21:25:21 [INFO] command: backend config not found, returning nil: /wd/terraform
2018/03/05 21:25:21 [INFO] command: no config, returning nil
2018/03/05 21:25:21 [DEBUG] command: no data state file found for backend config
2018/03/05 21:25:21 [DEBUG] New state was assigned lineage "39f89789-c45b-4d2a-b858-9bbe4daf8681"
2018/03/05 21:25:21 [INFO] command: backend initialized: <nil>
2018/03/05 21:25:21 [DEBUG] checking for provider in "."
2018/03/05 21:25:21 [DEBUG] checking for provider in "/bin"
2018/03/05 21:25:21 [DEBUG] checking for provider in "/Users/exampleuser/.terraform.d/plugins"
2018/03/05 21:25:21 [DEBUG] checking for provisioner in "."
2018/03/05 21:25:21 [DEBUG] checking for provisioner in "/bin"
2018/03/05 21:25:21 [DEBUG] checking for provisioner in "/Users/exampleuser/.terraform.d/plugins"
2018/03/05 21:25:21 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2018/03/05 21:25:21 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/03/05 21:25:21 [DEBUG] New state was assigned lineage "e8f593da-a2f9-401f-ade6-a8dfe3eee373"
> list(element(data.aws_subnet_ids.vpc_subnets.ids, 0), element(data.aws_subnet_ids.vpc_subnets.ids, 1))
2018/03/05 21:25:35 [DEBUG] plugin: waiting for all plugin processes to complete...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xb37ba4]
goroutine 1 [running]:
github.com/hashicorp/terraform/config/module.(*Tree).Config(...)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:78
github.com/hashicorp/terraform/terraform.(*Interpolater).resourceVariableInfo(0xc4202f8c80, 0xc4204af8d0, 0xc4200726e0, 0x9, 0x2853d80, 0x1ef2cf4, 0x1ef9d62)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:756 +0x44
github.com/hashicorp/terraform/terraform.(*Interpolater).computeResourceVariable(0xc4202f8c80, 0xc4204af8d0, 0xc4200726e0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:459 +0x14e
github.com/hashicorp/terraform/terraform.(*Interpolater).valueResourceVar(0xc4202f8c80, 0xc4204af8d0, 0xc42005054f, 0x23, 0xc4200726e0, 0xc4201a0390, 0xc4201a0000, 0xc4201a0000)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:252 +0x68
github.com/hashicorp/terraform/terraform.(*Interpolater).Values(0xc4202f8c80, 0xc4204af8d0, 0xc4201a02d0, 0x0, 0xc4200761a8, 0xc420050540)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:86 +0x82f
github.com/hashicorp/terraform/repl.(*Session).handleEval(0xc4204afa98, 0xc4200501c0, 0x66, 0x66, 0x66, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/repl/session.go:55 +0x2b7
github.com/hashicorp/terraform/repl.(*Session).Handle(0xc4204afa98, 0xc4200501c0, 0x66, 0x0, 0x0, 0x0, 0xb9a496)
/opt/gopath/src/github.com/hashicorp/terraform/repl/session.go:35 +0xa9
github.com/hashicorp/terraform/command.(*ConsoleCommand).modeInteractive(0xc420435520, 0xc4204afa98, 0x44ebc40, 0xc42045a840, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/console_interactive.go:48 +0x1e7
github.com/hashicorp/terraform/command.(*ConsoleCommand).Run(0xc420435520, 0x0, 0x0, 0x0, 0xc4202ee100)
/opt/gopath/src/github.com/hashicorp/terraform/command/console.go:100 +0x59b
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4203fc280, 0xc4203fc280, 0xc4201c9d18, 0x1)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:214 +0xbda
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:99 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:35 +0x38
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xb37ba4]
goroutine 1 [running]:
github.com/hashicorp/terraform/config/module.(*Tree).Config(...)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:78
github.com/hashicorp/terraform/terraform.(*Interpolater).resourceVariableInfo(0xc4202f8c80, 0xc4204af8d0, 0xc4200726e0, 0x9, 0x2853d80, 0x1ef2cf4, 0x1ef9d62)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:756 +0x44
github.com/hashicorp/terraform/terraform.(*Interpolater).computeResourceVariable(0xc4202f8c80, 0xc4204af8d0, 0xc4200726e0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:459 +0x14e
github.com/hashicorp/terraform/terraform.(*Interpolater).valueResourceVar(0xc4202f8c80, 0xc4204af8d0, 0xc42005054f, 0x23, 0xc4200726e0, 0xc4201a0390, 0xc4201a0000, 0xc4201a0000)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:252 +0x68
github.com/hashicorp/terraform/terraform.(*Interpolater).Values(0xc4202f8c80, 0xc4204af8d0, 0xc4201a02d0, 0x0, 0xc4200761a8, 0xc420050540)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/interpolate.go:86 +0x82f
github.com/hashicorp/terraform/repl.(*Session).handleEval(0xc4204afa98, 0xc4200501c0, 0x66, 0x66, 0x66, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/repl/session.go:55 +0x2b7
github.com/hashicorp/terraform/repl.(*Session).Handle(0xc4204afa98, 0xc4200501c0, 0x66, 0x0, 0x0, 0x0, 0xb9a496)
/opt/gopath/src/github.com/hashicorp/terraform/repl/session.go:35 +0xa9
github.com/hashicorp/terraform/command.(*ConsoleCommand).modeInteractive(0xc420435520, 0xc4204afa98, 0x44ebc40, 0xc42045a840, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/console_interactive.go:48 +0x1e7
github.com/hashicorp/terraform/command.(*ConsoleCommand).Run(0xc420435520, 0x0, 0x0, 0x0, 0xc4202ee100)
/opt/gopath/src/github.com/hashicorp/terraform/command/console.go:100 +0x59b
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4203fc280, 0xc4203fc280, 0xc4201c9d18, 0x1)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:214 +0xbda
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:99 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:35 +0x38
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.