Skip to content

Instantly share code, notes, and snippets.

@ziporah
Created May 22, 2019 08:23
Show Gist options
  • Save ziporah/c1d5be13f2e31f49879dc4d5370377e9 to your computer and use it in GitHub Desktop.
Save ziporah/c1d5be13f2e31f49879dc4d5370377e9 to your computer and use it in GitHub Desktop.
terraform v0.12-rc1 crash
2019/05/22 10:22:37 [INFO] Terraform version: 0.12.0 rc1
2019/05/22 10:22:37 [INFO] Go runtime version: go1.10.1
2019/05/22 10:22:37 [INFO] CLI args: []string{"/home/jo/bin/terraform-v0.12-rc1", "init"}
2019/05/22 10:22:37 [DEBUG] Attempting to open CLI config file: /home/jo/.terraformrc
2019/05/22 10:22:37 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/22 10:22:37 [INFO] CLI command args: []string{"init"}
Initializing modules...
2019/05/22 10:22:37 [TRACE] ModuleInstaller: installing child modules for . into .terraform/modules
2019/05/22 10:22:37 [DEBUG] Module installer: begin gce-container
2019/05/22 10:22:37 [TRACE] ModuleInstaller: Module installer: gce-container <nil> already installed in .terraform/modules/gce-container
2019/05/22 10:22:37 [TRACE] modsdir: writing modules manifest to .terraform/modules/modules.json
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x84f291]
goroutine 1 [running]:
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Version).String(0x0, 0x0, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/version.go:349 +0x51
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Version).Compare(0x0, 0xc4205d0aa0, 0x1f)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/version.go:118 +0x40
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Version).Equal(0x0, 0xc4205d0aa0, 0xc4204af610)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/version.go:283 +0x35
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.constraintEqual(0x0, 0xc4205d0aa0, 0xc420424e28)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/constraint.go:142 +0x35
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Constraint).Check(0xc4205cdba0, 0x0, 0xc420039208)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/constraint.go:92 +0x3c
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.Constraints.Check(0xc420598570, 0x1, 0x1, 0x0, 0xc420039288)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/constraint.go:72 +0x55
github.com/hashicorp/terraform/configs/configload.(*Loader).moduleWalkerLoad(0xc4204b4000, 0xc4204bbd40, 0x0, 0x7f1288ee0000, 0x0, 0x1, 0xc420425010)
/home/jo/go/src/github.com/hashicorp/terraform/configs/configload/loader_load.go:67 +0x289
github.com/hashicorp/terraform/configs/configload.(*Loader).(github.com/hashicorp/terraform/configs/configload.moduleWalkerLoad)-fm(0xc4204bbd40, 0x4106f8, 0x120, 0x198f9a0, 0xc4204ca801, 0xc4204bbd40)
/home/jo/go/src/github.com/hashicorp/terraform/configs/configload/loader_load.go:27 +0x34
github.com/hashicorp/terraform/configs.ModuleWalkerFunc.LoadModule(0xc420264160, 0xc4204bbd40, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/configs/config_build.go:110 +0x30
github.com/hashicorp/terraform/configs.buildChildModules(0xc4204caea0, 0x1cbad00, 0xc420264160, 0x4106f8, 0x10, 0x185a360, 0x1)
/home/jo/go/src/github.com/hashicorp/terraform/configs/config_build.go:58 +0x52a
github.com/hashicorp/terraform/configs.BuildConfig(0xc42016a690, 0x1cbad00, 0xc420264160, 0xc42016a690, 0x0, 0x0, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/configs/config_build.go:24 +0x76
github.com/hashicorp/terraform/configs/configload.(*Loader).LoadConfig(0xc4204b4000, 0x1a93d6d, 0x1, 0x0, 0x1, 0x2819e20, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/configs/configload/loader_load.go:27 +0xea
github.com/hashicorp/terraform/command.(*Meta).loadConfig(0xc4204d16c0, 0x1a93d6d, 0x1, 0xc420425700, 0x1, 0x1, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/command/meta_config.go:66 +0x155
github.com/hashicorp/terraform/command.(*InitCommand).Run(0xc4204d16c0, 0xc42000a070, 0x0, 0x0, 0xc4203140d0)
/home/jo/go/src/github.com/hashicorp/terraform/command/init.go:246 +0xb7f
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4204a4280, 0xc4204a4280, 0xc420435d10, 0x1)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/home/jo/go/src/github.com/hashicorp/terraform/main.go:223 +0xc5b
main.realMain(0x0)
/home/jo/go/src/github.com/hashicorp/terraform/main.go:100 +0xbb
main.main()
/home/jo/go/src/github.com/hashicorp/terraform/main.go:36 +0x2e
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x84f291]
goroutine 1 [running]:
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Version).String(0x0, 0x0, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/version.go:349 +0x51
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Version).Compare(0x0, 0xc4205d0aa0, 0x1f)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/version.go:118 +0x40
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Version).Equal(0x0, 0xc4205d0aa0, 0xc4204af610)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/version.go:283 +0x35
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.constraintEqual(0x0, 0xc4205d0aa0, 0xc420424e28)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/constraint.go:142 +0x35
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.(*Constraint).Check(0xc4205cdba0, 0x0, 0xc420039208)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/constraint.go:92 +0x3c
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version.Constraints.Check(0xc420598570, 0x1, 0x1, 0x0, 0xc420039288)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version/constraint.go:72 +0x55
github.com/hashicorp/terraform/configs/configload.(*Loader).moduleWalkerLoad(0xc4204b4000, 0xc4204bbd40, 0x0, 0x7f1288ee0000, 0x0, 0x1, 0xc420425010)
/home/jo/go/src/github.com/hashicorp/terraform/configs/configload/loader_load.go:67 +0x289
github.com/hashicorp/terraform/configs/configload.(*Loader).(github.com/hashicorp/terraform/configs/configload.moduleWalkerLoad)-fm(0xc4204bbd40, 0x4106f8, 0x120, 0x198f9a0, 0xc4204ca801, 0xc4204bbd40)
/home/jo/go/src/github.com/hashicorp/terraform/configs/configload/loader_load.go:27 +0x34
github.com/hashicorp/terraform/configs.ModuleWalkerFunc.LoadModule(0xc420264160, 0xc4204bbd40, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/configs/config_build.go:110 +0x30
github.com/hashicorp/terraform/configs.buildChildModules(0xc4204caea0, 0x1cbad00, 0xc420264160, 0x4106f8, 0x10, 0x185a360, 0x1)
/home/jo/go/src/github.com/hashicorp/terraform/configs/config_build.go:58 +0x52a
github.com/hashicorp/terraform/configs.BuildConfig(0xc42016a690, 0x1cbad00, 0xc420264160, 0xc42016a690, 0x0, 0x0, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/configs/config_build.go:24 +0x76
github.com/hashicorp/terraform/configs/configload.(*Loader).LoadConfig(0xc4204b4000, 0x1a93d6d, 0x1, 0x0, 0x1, 0x2819e20, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/configs/configload/loader_load.go:27 +0xea
github.com/hashicorp/terraform/command.(*Meta).loadConfig(0xc4204d16c0, 0x1a93d6d, 0x1, 0xc420425700, 0x1, 0x1, 0x0)
/home/jo/go/src/github.com/hashicorp/terraform/command/meta_config.go:66 +0x155
github.com/hashicorp/terraform/command.(*InitCommand).Run(0xc4204d16c0, 0xc42000a070, 0x0, 0x0, 0xc4203140d0)
/home/jo/go/src/github.com/hashicorp/terraform/command/init.go:246 +0xb7f
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4204a4280, 0xc4204a4280, 0xc420435d10, 0x1)
/home/jo/go/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/home/jo/go/src/github.com/hashicorp/terraform/main.go:223 +0xc5b
main.realMain(0x0)
/home/jo/go/src/github.com/hashicorp/terraform/main.go:100 +0xbb
main.main()
/home/jo/go/src/github.com/hashicorp/terraform/main.go:36 +0x2e
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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