Skip to content

Instantly share code, notes, and snippets.

@adamgotterer
Created September 15, 2016 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamgotterer/16d875a3d4ebcd07ce42cdd8fdc32efa to your computer and use it in GitHub Desktop.
Save adamgotterer/16d875a3d4ebcd07ce42cdd8fdc32efa to your computer and use it in GitHub Desktop.
panic: runtime error: index out of range
goroutine 340 [running]:
panic(0x244d600, 0xc420010110)
/opt/go/src/runtime/panic.go:500 +0x1a1
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.(*evalCall).Eval(0xc4201c0170, 0x4068ea0, 0xc420437330, 0xc42053c250, 0x0, 0x0, 0x40, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:231 +0x3f4
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.(*evalIndex).Eval(0xc4201c0160, 0x4068ea0, 0xc420437330, 0xc42053c250, 0x0, 0x0, 0x0, 0x2c19ead, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:258 +0x12b
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.(*evalVisitor).visit(0xc42053c240, 0x406c020, 0xc420220ba0, 0x10, 0xc4204377a0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:181 +0x112
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.(*evalVisitor).(github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.visit)-fm(0x406c020, 0xc420220ba0, 0x0, 0x40)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:147 +0x3e
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast.(*Index).Accept(0xc420220ba0, 0xc4204377a0, 0x19e48, 0x10)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast/index.go:16 +0x3c
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast.(*Output).Accept(0xc420220bd0, 0xc4204377a0, 0xc420013800, 0xc420252e08)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast/output.go:20 +0x5e
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.(*evalVisitor).Visit(0xc42053c240, 0x406c0a0, 0xc420220bd0, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:147 +0x79
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.internalEval(0x406c0a0, 0xc420220bd0, 0xc4203a4040, 0x12, 0xc420220b01, 0x310000c4203a4320, 0x0, 0x17075)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:125 +0x678
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil.Eval(0x406c0a0, 0xc420220bd0, 0xc4203a4040, 0xc420252fd8, 0xc4205ce700, 0x1, 0x0, 0xc420252ff8)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/eval.go:46 +0x43
github.com/hashicorp/terraform/config.(*RawConfig).Interpolate.func1(0x406c0a0, 0xc420220bd0, 0x406c0a0, 0xc420220bd0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/raw_config.go:149 +0x14a
github.com/hashicorp/terraform/config.(*interpolationWalker).Primitive(0xc42058e2c0, 0x23b3840, 0xc420437530, 0x94, 0x2508301, 0x14)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:150 +0x1c7
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkPrimitive(0x23b3840, 0xc420437530, 0x94, 0x281ef80, 0xc42058e2c0, 0x98, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:186 +0x9c
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x23b3840, 0xc420437530, 0x94, 0x281ef80, 0xc42058e2c0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:117 +0x185
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkMap(0x2423320, 0xc420220ab0, 0x15, 0x281ef80, 0xc42058e2c0, 0x4bde470, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:168 +0x381
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x2423320, 0xc420220ab0, 0x15, 0x281ef80, 0xc42058e2c0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:120 +0x29a
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.Walk(0x2423320, 0xc420220ab0, 0x281ef80, 0xc42058e2c0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:70 +0x155
github.com/hashicorp/terraform/config.(*RawConfig).interpolate(0xc4203e5680, 0xc4203a4060, 0xc4203e56b8, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/raw_config.go:248 +0x10b
github.com/hashicorp/terraform/config.(*RawConfig).Interpolate(0xc4203e5680, 0xc4201bdf80, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/raw_config.go:155 +0xf3
github.com/hashicorp/terraform/terraform.(*BuiltinEvalContext).Interpolate(0xc4200d0000, 0xc4203e5680, 0xc4201f0640, 0x0, 0x0, 0x32)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_context_builtin.go:301 +0xcb
github.com/hashicorp/terraform/terraform.(*EvalInterpolate).Eval(0xc4204db520, 0x4073d40, 0xc4200d0000, 0x2, 0x2, 0xc420436d70, 0x8)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_interpolate.go:14 +0x4b
github.com/hashicorp/terraform/terraform.EvalRaw(0x405b660, 0xc4204db520, 0x4073d40, 0xc4200d0000, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:53 +0x17f
github.com/hashicorp/terraform/terraform.(*EvalSequence).Eval(0xc42040d980, 0x4073d40, 0xc4200d0000, 0x2, 0x2, 0xc420436cf0, 0x8)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_sequence.go:10 +0x6c
github.com/hashicorp/terraform/terraform.EvalRaw(0x405b920, 0xc42040d980, 0x4073d40, 0xc4200d0000, 0x2f, 0x0, 0x0, 0x2f)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:53 +0x17f
github.com/hashicorp/terraform/terraform.(*EvalOpFilter).Eval(0xc420422c00, 0x4073d40, 0xc4200d0000, 0x2, 0x2, 0xc420436cd0, 0x8)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_filter_operation.go:37 +0x4c
github.com/hashicorp/terraform/terraform.EvalRaw(0x405b6e0, 0xc420422c00, 0x4073d40, 0xc4200d0000, 0xc4200120a0, 0x2, 0xc4201bdec0, 0x2f)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:53 +0x17f
github.com/hashicorp/terraform/terraform.(*EvalSequence).Eval(0xc42040d960, 0x4073d40, 0xc4200d0000, 0x2, 0x2, 0xc420436cb0, 0x8)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_sequence.go:10 +0x6c
github.com/hashicorp/terraform/terraform.EvalRaw(0x405b920, 0xc42040d960, 0x4073d40, 0xc4200d0000, 0x405b920, 0xc42040d960, 0xc420401d00, 0x14)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:53 +0x17f
github.com/hashicorp/terraform/terraform.Eval(0x405b920, 0xc42040d960, 0x4073d40, 0xc4200d0000, 0xc42040d960, 0x405b920, 0xc42040d960, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:34 +0x53
github.com/hashicorp/terraform/terraform.(*Graph).walk.func1(0x28b4d00, 0xc4204f6810, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/graph.go:198 +0xa05
github.com/hashicorp/terraform/dag.(*AcyclicGraph).Walk.func3(0xc42042b4c0, 0xc4203dee40, 0xc42042b4d0, 0xc4204f6c00, 0xc42042b4e0, 0x28b4d00, 0xc4204f6810, 0xc4203e53e0, 0xc4203e5500)
/opt/gopath/src/github.com/hashicorp/terraform/dag/dag.go:238 +0x251
created by github.com/hashicorp/terraform/dag.(*AcyclicGraph).Walk
/opt/gopath/src/github.com/hashicorp/terraform/dag/dag.go:247 +0x618
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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