Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform crashes when importing module with only output vars #474

Closed
ronpanto opened this issue Oct 20, 2014 · 2 comments
Closed

Terraform crashes when importing module with only output vars #474

ronpanto opened this issue Oct 20, 2014 · 2 comments

Comments

@ronpanto
Copy link

I have a globals module containing globals.tf file:
output "aws_route53_zone_id" {
value = "XXXX"
}
output "aws_access_key" {
value = "YYYYY"
}
output "aws_secret_key" {
value = "ZZZZ"
}

If i'll create a tf file that sources it:
module "globals" {
source = "../../src/modules/globals"
}

after terraform get and apply , terraform will crash

@ronpanto
Copy link
Author

2014/10/20 14:54:00 Detected home directory from env var: /Users/ronpantofaro
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: aws = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-aws
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: cloudflare = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-cloudflare
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: consul = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-consul
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: digitalocean = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-digitalocean
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: dnsimple = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-dnsimple
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: google = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-google
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: heroku = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-heroku
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: mailgun = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-mailgun
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: null = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-null
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: file = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provisioner-file
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: local-exec = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provisioner-local-exec
2014/10/20 14:54:00 [DEBUG] Discoverd plugin: remote-exec = /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provisioner-remote-exec
2014/10/20 14:54:00 Detected home directory from env var: /Users/ronpantofaro
2014/10/20 14:54:00 [DEBUG] Attempting to open CLI config file: /Users/ronpantofaro/.terraformrc
2014/10/20 14:54:00 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root]
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root globals]
2014/10/20 14:54:00 [DEBUG] Starting plugin: /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-aws []string{"/Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-aws"}
2014/10/20 14:54:00 Detected home directory from env var: /Users/ronpantofaro
2014/10/20 14:54:00 [DEBUG] Waiting for RPC address for: /Users/ronpantofaro/work/terraform_0.3.0_darwin_amd64/terraform-provider-aws
2014/10/20 14:54:00 terraform-provider-aws: 2014/10/20 14:54:00 Plugin address: unix /var/folders/fr/zr5nkd8d3x9br1qm2d3bc0440000gn/T/tf-plugin147877233
2014/10/20 14:54:00 [DEBUG] Graph [root globals] created and valid. 1 nouns.
2014/10/20 14:54:00 [DEBUG] Graph [root] created and valid. 2 nouns.
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root]
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root globals]
2014/10/20 14:54:00 [DEBUG] Graph [root globals] created and valid. 1 nouns.
2014/10/20 14:54:00 [DEBUG] Graph [root] created and valid. 2 nouns.
2014/10/20 14:54:00 [INFO] Writing backup state to: terraform.tfstate.backup
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root]
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root globals]
2014/10/20 14:54:00 [DEBUG] Graph [root globals] created and valid. 1 nouns.
2014/10/20 14:54:00 [DEBUG] Graph [root] created and valid. 2 nouns.
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root]
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root globals]
2014/10/20 14:54:00 [DEBUG] Graph [root globals] created and valid. 1 nouns.
2014/10/20 14:54:00 [DEBUG] Graph [root] created and valid. 2 nouns.
2014/10/20 14:54:00 [INFO] Apply walk starting
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root]
2014/10/20 14:54:00 [DEBUG] Creating graph for path: [root globals]
2014/10/20 14:54:00 [DEBUG] Graph [root globals] created and valid. 1 nouns.
2014/10/20 14:54:00 [DEBUG] Graph [root] created and valid. 2 nouns.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0xaee19]

goroutine 64 [running]:
runtime.panic(0x476a60, 0x7508e4)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/hashicorp/terraform/terraform.(_ModuleState).prune(0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/terraform/state.go:270 +0x29
github.com/hashicorp/terraform/terraform.(_walkContext).Walk(0xc2080b6460, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/terraform/context.go:522 +0x3ac
github.com/hashicorp/terraform/terraform.func·010(0xc208069d80, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/terraform/context.go:1188 +0x961
github.com/hashicorp/terraform/depgraph.func·002(0xc208069d80)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:321 +0x254
created by github.com/hashicorp/terraform/depgraph.(*Graph).Walk
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:328 +0x516

goroutine 16 [select]:
github.com/hashicorp/terraform/command.(_ApplyCommand).Run(0xc20804c8c0, 0xc20800e020, 0x0, 0x0, 0xc208010300)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/command/apply.go:193 +0x2a6d
github.com/mitchellh/cli.(_CLI).Run(0xc20804c640, 0xc208062390, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/mitchellh/cli/cli.go:100 +0x3a1
main.wrappedMain(0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/main.go:147 +0x838
main.realMain(0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/main.go:82 +0x81b
main.main()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/main.go:18 +0x1e

goroutine 19 [finalizer wait]:
runtime.park(0x1b480, 0x753f58, 0x7529a9)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x753f58, 0x7529a9)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/proc.c:1445

goroutine 20 [syscall]:
os/signal.loop()
/Users/mitchellh/code/3rdparty/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/Users/mitchellh/code/3rdparty/go/src/pkg/os/signal/signal_unix.go:27 +0x32

goroutine 25 [syscall]:
syscall.Syscall(0x3, 0x3, 0xc2080c2000, 0x8000, 0x1b4fb, 0x1b480, 0xc20808a7f8)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x3, 0xc2080c2000, 0x8000, 0x8000, 0xc5322, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/zsyscall_darwin_amd64.go:952 +0x75
syscall.Read(0x3, 0xc2080c2000, 0x8000, 0x8000, 0x5c9960, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/syscall_unix.go:136 +0x5c
os.(_File).read(0xc208032458, 0xc2080c2000, 0x8000, 0x8000, 0xc2080c2000, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/file_unix.go:190 +0x89
os.(_File).Read(0xc208032458, 0xc2080c2000, 0x8000, 0x8000, 0x4b, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/file.go:95 +0x98
io.Copy(0x82cd30, 0xc208032410, 0x82cf60, 0xc208032458, 0x4b, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:353 +0x1f3
os/exec.func·003(0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:214 +0x7e
os/exec.func·004(0xc2080bc3a0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:321 +0x2c
created by os/exec.(*Cmd).Start
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:322 +0x931

goroutine 23 [chan receive]:
main.func·011()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/commands.go:114 +0x4e
created by main.makeShutdownCh
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/commands.go:117 +0x12b

goroutine 24 [semacquire]:
sync.runtime_Syncsemacquire(0xc20808a1c0)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/sema.goc:257 +0xc0
sync.(_Cond).Wait(0xc20808a1b0)
/Users/mitchellh/code/3rdparty/go/src/pkg/sync/cond.go:62 +0x9d
io.(_pipe).read(0xc20808a180, 0xc208067000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/pipe.go:52 +0x2b6
io.(_PipeReader).Read(0xc208032168, 0xc208067000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/pipe.go:134 +0x5f
bufio.(_Scanner).Scan(0xc20802c540, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/scan.go:165 +0x508
github.com/hashicorp/terraform/command.func·006()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/command/meta.go:185 +0x3c
created by github.com/hashicorp/terraform/command.(*Meta).flagSet
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/command/meta.go:188 +0x412

goroutine 26 [syscall]:
syscall.Syscall(0x3, 0x5, 0xc2080ca000, 0x8000, 0x1b4fb, 0x1b480, 0xc20808a8b8)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x5, 0xc2080ca000, 0x8000, 0x8000, 0xc5322, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/zsyscall_darwin_amd64.go:952 +0x75
syscall.Read(0x5, 0xc2080ca000, 0x8000, 0x8000, 0x5c9960, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/syscall_unix.go:136 +0x5c
os.(_File).read(0xc208032478, 0xc2080ca000, 0x8000, 0x8000, 0xc2080ca000, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/file_unix.go:190 +0x89
os.(_File).Read(0xc208032478, 0xc2080ca000, 0x8000, 0x8000, 0x6d, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/file.go:95 +0x98
io.Copy(0x82cd30, 0xc208032428, 0x82cf60, 0xc208032478, 0x6d, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:353 +0x1f3
os/exec.func·003(0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:214 +0x7e
os/exec.func·004(0xc2080bc400)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:321 +0x2c
created by os/exec.(*Cmd).Start
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:322 +0x931

goroutine 27 [syscall]:
syscall.Syscall6(0x7, 0x5864, 0x87fd74, 0x0, 0xc208048ea0, 0x0, 0x0, 0x0, 0x0, 0xc208048ea0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x5864, 0x87fd74, 0x0, 0xc208048ea0, 0x2c36b, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/zsyscall_darwin_amd64.go:32 +0x7d
syscall.Wait4(0x5864, 0x87fdbc, 0x0, 0xc208048ea0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/syscall/syscall_bsd.go:129 +0x64
os.(_Process).wait(0xc2080bc760, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec_unix.go:22 +0xfe
os.(_Process).Wait(0xc2080bc760, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/doc.go:45 +0x39
os/exec.(_Cmd).Wait(0xc208041900, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/os/exec/exec.go:357 +0x1db
github.com/hashicorp/terraform/plugin.func·003()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:234 +0x95
created by github.com/hashicorp/terraform/plugin.(_Client).Start
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:247 +0xb3e

goroutine 28 [semacquire]:
sync.runtime_Syncsemacquire(0xc20808a880)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/sema.goc:257 +0xc0
sync.(_Cond).Wait(0xc20808a870)
/Users/mitchellh/code/3rdparty/go/src/pkg/sync/cond.go:62 +0x9d
io.(_pipe).read(0xc20808a840, 0xc20805f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/pipe.go:52 +0x2b6
io.(_PipeReader).Read(0xc208032420, 0xc20805f000, 0x1000, 0x1000, 0x4, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/pipe.go:134 +0x5f
bufio.(_Reader).fill(0xc208005080)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).ReadSlice(0xc208005080, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:298 +0x22c
bufio.(_Reader).ReadBytes(0xc208005080, 0xc20801a10a, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:376 +0xe3
bufio.(_Reader).ReadString(0xc208005080, 0xa, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:416 +0x58
github.com/hashicorp/terraform/plugin.(_Client).logStderr(0xc208068440, 0x82cd08, 0xc208032420)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:324 +0x5c
created by github.com/hashicorp/terraform/plugin.(*Client).Start
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:250 +0xb9f

goroutine 29 [semacquire]:
sync.runtime_Syncsemacquire(0xc20808a7c0)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/sema.goc:257 +0xc0
sync.(_Cond).Wait(0xc20808a7b0)
/Users/mitchellh/code/3rdparty/go/src/pkg/sync/cond.go:62 +0x9d
io.(_pipe).read(0xc20808a780, 0xc208066000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/pipe.go:52 +0x2b6
io.(_PipeReader).Read(0xc208032408, 0xc208066000, 0x1000, 0x1000, 0x820480, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/pipe.go:134 +0x5f
bufio.(_Reader).fill(0xc208004060)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).ReadSlice(0xc208004060, 0xc20806600a, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:298 +0x22c
bufio.(_Reader).ReadBytes(0xc208004060, 0xc20800500a, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:376 +0xe3
github.com/hashicorp/terraform/plugin.func·004()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:260 +0xad
created by github.com/hashicorp/terraform/plugin.(*Client).Start
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:269 +0xc1c

goroutine 31 [chan receive]:
github.com/hashicorp/terraform/plugin.func·005()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:275 +0x61
created by github.com/hashicorp/terraform/plugin.func·006
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/plugin/client.go:277 +0x4d

goroutine 32 [IO wait]:
net.runtime_pollWait(0x82e550, 0x72, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(_pollDesc).Wait(0xc20802c3e0, 0x72, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(_pollDesc).WaitRead(0xc20802c3e0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(_netFD).Read(0xc20802c380, 0xc2080b0000, 0x1000, 0x1000, 0x0, 0x82c318, 0x23)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_unix.go:242 +0x34c
net.(_conn).Read(0xc208032050, 0xc2080b0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/net.go:122 +0xe7
bufio.(_Reader).fill(0xc208004180)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc208004180, 0xc2080005f0, 0xc, 0xc, 0xc, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc208004180, 0xc2080005f0, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc208004180, 0xc2080005f0, 0xc, 0xc, 0xc, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
github.com/hashicorp/yamux.(*Session).recv(0xc20804c000)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:332 +0xc9
created by github.com/hashicorp/yamux.newSession
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:93 +0x247

goroutine 33 [select]:
github.com/hashicorp/yamux.(*Session).send(0xc20804c000)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:290 +0x496
created by github.com/hashicorp/yamux.newSession
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:94 +0x25f

goroutine 34 [select]:
github.com/hashicorp/yamux.(*Session).keepalive(0xc20804c000)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:246 +0xc7
created by github.com/hashicorp/yamux.newSession
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:96 +0x289

goroutine 35 [select]:
github.com/hashicorp/yamux.(_Session).AcceptStream(0xc20804c000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:154 +0x11f
github.com/hashicorp/terraform/rpc.(_muxBroker).Run(0xc20800e960)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/rpc/mux_broker.go:107 +0x36
created by github.com/hashicorp/terraform/rpc.NewClient
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/rpc/client.go:53 +0x1a4

goroutine 36 [select]:
github.com/hashicorp/yamux.(_Stream).Read(0xc20806a3c0, 0xc20806e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(_Reader).fill(0xc208004420)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc208004420, 0xc208000600, 0x1, 0x9, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc208004420, 0xc208000600, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc208004420, 0xc208000600, 0x1, 0x9, 0x16bc4, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
encoding/gob.decodeUintReader(0x82cfb0, 0xc208004420, 0xc208000600, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decode.go:66 +0xa6
encoding/gob.(_Decoder).recvMessage(0xc208064000, 0x1f817f)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:73 +0x57
encoding/gob.(_Decoder).decodeTypeSequence(0xc208064000, 0xc2080be700, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:159 +0x49
encoding/gob.(_Decoder).DecodeValue(0xc208064000, 0x3737e0, 0xc2080be7e0, 0x0, 0x160, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:227 +0x193
encoding/gob.(_Decoder).Decode(0xc208064000, 0x3737e0, 0xc2080be7e0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:204 +0x279
net/rpc.(_gobClientCodec).ReadResponseHeader(0xc2080be4b0, 0xc2080be7e0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:223 +0x5b
net/rpc.(*Client).input(0xc208004480)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b

goroutine 37 [select]:
github.com/hashicorp/yamux.(_Stream).Read(0xc20806a640, 0xc2080b8000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(_Reader).fill(0xc2080050e0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc2080050e0, 0xc208001c10, 0x1, 0x9, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc2080050e0, 0xc208001c10, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc2080050e0, 0xc208001c10, 0x1, 0x9, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
encoding/gob.decodeUintReader(0x82cfb0, 0xc2080050e0, 0xc208001c10, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decode.go:66 +0xa6
encoding/gob.(_Decoder).recvMessage(0xc2080640f0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:73 +0x57
encoding/gob.(_Decoder).decodeTypeSequence(0xc2080640f0, 0xc2080bf900, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:159 +0x49
encoding/gob.(_Decoder).DecodeValue(0xc2080640f0, 0x3737e0, 0xc2080bf9b0, 0x0, 0x160, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:227 +0x193
encoding/gob.(_Decoder).Decode(0xc2080640f0, 0x3737e0, 0xc2080bf9b0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:204 +0x279
net/rpc.(_gobClientCodec).ReadResponseHeader(0xc2080bf5f0, 0xc2080bf9b0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:223 +0x5b
net/rpc.(*Client).input(0xc208005140)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b

goroutine 62 [select]:
github.com/hashicorp/yamux.(_Stream).Read(0xc20806ab40, 0xc208101000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(_Reader).fill(0xc2080f86c0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc2080f86c0, 0xc2080c0c50, 0x1, 0x9, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc2080f86c0, 0xc2080c0c50, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc2080f86c0, 0xc2080c0c50, 0x1, 0x9, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
encoding/gob.decodeUintReader(0x82cfb0, 0xc2080f86c0, 0xc2080c0c50, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decode.go:66 +0xa6
encoding/gob.(_Decoder).recvMessage(0xc2080653b0, 0x4dcb70)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:73 +0x57
encoding/gob.(_Decoder).decodeTypeSequence(0xc2080653b0, 0xc2080fce00, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:159 +0x49
encoding/gob.(_Decoder).DecodeValue(0xc2080653b0, 0x3737e0, 0xc2080fcea0, 0x0, 0x160, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:227 +0x193
encoding/gob.(_Decoder).Decode(0xc2080653b0, 0x3737e0, 0xc2080fcea0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:204 +0x279
net/rpc.(_gobClientCodec).ReadResponseHeader(0xc2080fcab0, 0xc2080fcea0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:223 +0x5b
net/rpc.(*Client).input(0xc2080f8720)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b

goroutine 63 [runnable]:
github.com/hashicorp/terraform/depgraph.func·002(0xc208069dc0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:308 +0x19e
created by github.com/hashicorp/terraform/depgraph.(*Graph).Walk
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:328 +0x516

goroutine 43 [select]:
github.com/hashicorp/yamux.(_Stream).Read(0xc20806a780, 0xc2080e9000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(_Reader).fill(0xc208005740)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc208005740, 0xc2080c0280, 0x1, 0x9, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc208005740, 0xc2080c0280, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc208005740, 0xc2080c0280, 0x1, 0x9, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
encoding/gob.decodeUintReader(0x82cfb0, 0xc208005740, 0xc2080c0280, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decode.go:66 +0xa6
encoding/gob.(_Decoder).recvMessage(0xc208064ff0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:73 +0x57
encoding/gob.(_Decoder).decodeTypeSequence(0xc208064ff0, 0xc208062900, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:159 +0x49
encoding/gob.(_Decoder).DecodeValue(0xc208064ff0, 0x3737e0, 0xc208062960, 0x0, 0x160, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:227 +0x193
encoding/gob.(_Decoder).Decode(0xc208064ff0, 0x3737e0, 0xc208062960, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:204 +0x279
net/rpc.(_gobClientCodec).ReadResponseHeader(0xc2080623f0, 0xc208062960, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:223 +0x5b
net/rpc.(*Client).input(0xc2080057a0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b

goroutine 65 [chan receive]:
github.com/hashicorp/terraform/depgraph.func·003()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:337 +0xb0
created by github.com/hashicorp/terraform/depgraph.(*Graph).Walk
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:339 +0x5ad

goroutine 49 [select]:
github.com/hashicorp/yamux.(_Stream).Read(0xc20806a8c0, 0xc2080f7000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(_Reader).fill(0xc208005c80)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc208005c80, 0xc2080c0780, 0x1, 0x9, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc208005c80, 0xc2080c0780, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc208005c80, 0xc2080c0780, 0x1, 0x9, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
encoding/gob.decodeUintReader(0x82cfb0, 0xc208005c80, 0xc2080c0780, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decode.go:66 +0xa6
encoding/gob.(_Decoder).recvMessage(0xc2080650e0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:73 +0x57
encoding/gob.(_Decoder).decodeTypeSequence(0xc2080650e0, 0xc208063b00, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:159 +0x49
encoding/gob.(_Decoder).DecodeValue(0xc2080650e0, 0x3737e0, 0xc208063bc0, 0x0, 0x160, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:227 +0x193
encoding/gob.(_Decoder).Decode(0xc2080650e0, 0x3737e0, 0xc208063bc0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:204 +0x279
net/rpc.(_gobClientCodec).ReadResponseHeader(0xc2080636e0, 0xc208063bc0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:223 +0x5b
net/rpc.(*Client).input(0xc208005ce0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b

goroutine 55 [select]:
github.com/hashicorp/yamux.(_Stream).Read(0xc20806aa00, 0xc2080fb000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(_Reader).fill(0xc2080f8180)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(_Reader).Read(0xc2080f8180, 0xc2080c09d0, 0x1, 0x9, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x82cfb0, 0xc2080f8180, 0xc2080c09d0, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x82cfb0, 0xc2080f8180, 0xc2080c09d0, 0x1, 0x9, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
encoding/gob.decodeUintReader(0x82cfb0, 0xc2080f8180, 0xc2080c09d0, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decode.go:66 +0xa6
encoding/gob.(_Decoder).recvMessage(0xc2080651d0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:73 +0x57
encoding/gob.(_Decoder).decodeTypeSequence(0xc2080651d0, 0xc2080fc300, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:159 +0x49
encoding/gob.(_Decoder).DecodeValue(0xc2080651d0, 0x3737e0, 0xc2080fc360, 0x0, 0x160, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:227 +0x193
encoding/gob.(_Decoder).Decode(0xc2080651d0, 0x3737e0, 0xc2080fc360, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/encoding/gob/decoder.go:204 +0x279
net/rpc.(_gobClientCodec).ReadResponseHeader(0xc208025f50, 0xc2080fc360, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:223 +0x5b
net/rpc.(*Client).input(0xc2080f81e0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b

goroutine 61 [select]:
github.com/hashicorp/terraform/depgraph.(_Graph).Walk(0xc208069b00, 0xc2080fce10, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/depgraph/graph.go:342 +0x726
github.com/hashicorp/terraform/terraform.(_walkContext).Walk(0xc2080b6230, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/terraform/context.go:490 +0x182
github.com/hashicorp/terraform/terraform.(_Context).Apply(0xc20804cbe0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/terraform/context.go:133 +0x145
github.com/hashicorp/terraform/command.func·002()
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/command/apply.go:187 +0x64
created by github.com/hashicorp/terraform/command.(_ApplyCommand).Run
/Users/mitchellh/code/go/src/github.com/hashicorp/terraform/command/apply.go:188 +0x15f1

@mitchellh
Copy link
Contributor

Interesting bug. I can see how this happens. Thanks!

@armon armon closed this as completed in a5d444b Nov 25, 2014
@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants