Qarik-Group / carousel

Apache License 2.0
2 stars 2 forks source link

carousel diff causes stack overflow #4

Closed mrferris closed 3 years ago

mrferris commented 3 years ago
./carousel diff -d deployment-name
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc0225c0370 stack=[0xc0225c0000, 0xc0425c0000]
fatal error: stack overflow
runtime stack:
runtime.throw(0xaa468d, 0xe)
    /usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newstack()
    /usr/local/go/src/runtime/stack.go:1069 +0x7ed
runtime.morestack()
    /usr/local/go/src/runtime/asm_amd64.s:458 +0x8f
goroutine 1 [running]:
github.com/starkandwayne/carousel/state.(*Credential).Active(0xc00092dd40, 0x0)
    /home/ramonskie/workspace/starkandwayne/carousel/state/credential.go:54 +0xa6 fp=0xc0225c0380 sp=0xc0225c0378 pc=0x861a26
github.com/starkandwayne/carousel/state.(*Credential).Active(0xc00092dd40, 0x0)
    /home/ramonskie/workspace/starkandwayne/carousel/state/credential.go:59 +0x6d fp=0xc0225c03b8 sp=0xc0225c0380 pc=0x8619ed

This is most likely due to cyclical references in the user's credentials.