Skip to content

Instantly share code, notes, and snippets.

@ivanlei
Created March 5, 2017 15:02
Show Gist options
  • Save ivanlei/f07379a5015cab2906e278460cbcd610 to your computer and use it in GitHub Desktop.
Save ivanlei/f07379a5015cab2906e278460cbcd610 to your computer and use it in GitHub Desktop.
terraform crash debug spew
$ export TF_LOG=TRACE
$ terraform plan
2017/03/05 10:01:09 [INFO] Terraform version: 0.8.8 403a86dc557fae52f8e39676b11e1e4356b7d1a2
2017/03/05 10:01:09 [INFO] CLI args: []string{"/Volumes/dat/Users/ivanlei/bin/terraform", "plan"}
2017/03/05 10:01:09 [DEBUG] Detected home directory from env var: /Volumes/dat/Users/ivanlei
2017/03/05 10:01:09 [DEBUG] Detected home directory from env var: /Volumes/dat/Users/ivanlei
2017/03/05 10:01:09 [DEBUG] Attempting to open CLI config file: /Volumes/dat/Users/ivanlei/.terraformrc
2017/03/05 10:01:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/05 10:01:09 [DEBUG] Detected home directory from env var: /Volumes/dat/Users/ivanlei
2017/03/05 10:01:09 [DEBUG] plugin: waiting for all plugin processes to complete...
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/hashicorp/terraform/config.(*interpolationWalker).replaceCurrent(0xc4203ea180, 0x410a6c0, 0xc4201c8600, 0x97)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:209 +0xd5
github.com/hashicorp/terraform/config.(*interpolationWalker).splitSlice(0xc4203ea180)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:276 +0x7c7
github.com/hashicorp/terraform/config.(*interpolationWalker).Exit(0xc4203ea180, 0x4, 0xc4203ea180, 0x7ddc250)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:71 +0x10d
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkSlice(0x410a6c0, 0xc4201c84c0, 0x97, 0x4907e00, 0xc4203ea180, 0x3d094f4cc00, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:283 +0x35a
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x410a6c0, 0xc4201c84c0, 0x97, 0x4907e00, 0xc4203ea180, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:177 +0x4e8
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.Walk(0x410a6c0, 0xc4201c84c0, 0x4907e00, 0xc4203ea180, 0x6dd0c60, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:84 +0x131
github.com/hashicorp/terraform/config.(*Config).Validate(0xc420151e40, 0xc4201c2450, 0x4172660)
/opt/gopath/src/github.com/hashicorp/terraform/config/config.go:316 +0x768a
github.com/hashicorp/terraform/config/module.(*Tree).Validate(0xc4201c42d0, 0x6d4af20, 0xc4201c8400)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:273 +0x196
github.com/hashicorp/terraform/command.(*Meta).Context(0xc4203b7440, 0xc420018064, 0x50, 0x0, 0x4c5332f, 0x11, 0x0, 0xa, 0xc4201899e0, 0x0, ...)
/opt/gopath/src/github.com/hashicorp/terraform/command/meta.go:200 +0x3ab
github.com/hashicorp/terraform/command.(*PlanCommand).Run(0xc4203b7440, 0xc42000a2b0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/plan.go:69 +0x5e0
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200cf080, 0xc4202edc80, 0xc4202e5e60, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:156 +0x5e6
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:88 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:24 +0x38
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/hashicorp/terraform/config.(*interpolationWalker).replaceCurrent(0xc4203ea180, 0x410a6c0, 0xc4201c8600, 0x97)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:209 +0xd5
github.com/hashicorp/terraform/config.(*interpolationWalker).splitSlice(0xc4203ea180)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:276 +0x7c7
github.com/hashicorp/terraform/config.(*interpolationWalker).Exit(0xc4203ea180, 0x4, 0xc4203ea180, 0x7ddc250)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:71 +0x10d
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkSlice(0x410a6c0, 0xc4201c84c0, 0x97, 0x4907e00, 0xc4203ea180, 0x3d094f4cc00, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:283 +0x35a
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x410a6c0, 0xc4201c84c0, 0x97, 0x4907e00, 0xc4203ea180, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:177 +0x4e8
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.Walk(0x410a6c0, 0xc4201c84c0, 0x4907e00, 0xc4203ea180, 0x6dd0c60, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:84 +0x131
github.com/hashicorp/terraform/config.(*Config).Validate(0xc420151e40, 0xc4201c2450, 0x4172660)
/opt/gopath/src/github.com/hashicorp/terraform/config/config.go:316 +0x768a
github.com/hashicorp/terraform/config/module.(*Tree).Validate(0xc4201c42d0, 0x6d4af20, 0xc4201c8400)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:273 +0x196
github.com/hashicorp/terraform/command.(*Meta).Context(0xc4203b7440, 0xc420018064, 0x50, 0x0, 0x4c5332f, 0x11, 0x0, 0xa, 0xc4201899e0, 0x0, ...)
/opt/gopath/src/github.com/hashicorp/terraform/command/meta.go:200 +0x3ab
github.com/hashicorp/terraform/command.(*PlanCommand).Run(0xc4203b7440, 0xc42000a2b0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/plan.go:69 +0x5e0
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200cf080, 0xc4202edc80, 0xc4202e5e60, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:156 +0x5e6
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:88 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:24 +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