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

rai version -p . crashes #25

Closed
cwpearson opened this issue Jan 15, 2019 · 8 comments
Closed

rai version -p . crashes #25

cwpearson opened this issue Jan 15, 2019 · 8 comments
Assignees
Labels

Comments

@cwpearson
Copy link
Contributor

(Thanks for reporting an issue! Please make sure you click the link above to read contributor guidelines, then fill out the details below)

What are the minimum necessary steps to reproduce this issue?

Run rai version -p .

What happens?

crash

What were you expecting to happen?

Some message about the version

Please paste any error or log messages here

runtime: goroutine stack exceeds 1000000000-byte limit
fatal error: stack overflow

runtime stack:
runtime.throw(0x108eafd, 0xe)
        /usr/local/go/src/runtime/panic.go:608 +0x72
runtime.newstack()
        /usr/local/go/src/runtime/stack.go:1008 +0x729
runtime.morestack()
        /usr/local/go/src/runtime/asm_amd64.s:429 +0x8f

goroutine 1 [running]:
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:94 +0xd1 fp=0xc020534340 sp=0xc020534338 pc=0xdeb071
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205343a0 sp=0xc020534340 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534400 sp=0xc0205343a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534460 sp=0xc020534400 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205344c0 sp=0xc020534460 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534520 sp=0xc0205344c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534580 sp=0xc020534520 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205345e0 sp=0xc020534580 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534640 sp=0xc0205345e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205346a0 sp=0xc020534640 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534700 sp=0xc0205346a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534760 sp=0xc020534700 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205347c0 sp=0xc020534760 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534820 sp=0xc0205347c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534880 sp=0xc020534820 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205348e0 sp=0xc020534880 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534940 sp=0xc0205348e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205349a0 sp=0xc020534940 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534a00 sp=0xc0205349a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534a60 sp=0xc020534a00 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534ac0 sp=0xc020534a60 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534b20 sp=0xc020534ac0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534b80 sp=0xc020534b20 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534be0 sp=0xc020534b80 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534c40 sp=0xc020534be0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534ca0 sp=0xc020534c40 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534d00 sp=0xc020534ca0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534d60 sp=0xc020534d00 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534dc0 sp=0xc020534d60 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534e20 sp=0xc020534dc0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534e80 sp=0xc020534e20 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534ee0 sp=0xc020534e80 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534f40 sp=0xc020534ee0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020534fa0 sp=0xc020534f40 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535000 sp=0xc020534fa0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535060 sp=0xc020535000 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205350c0 sp=0xc020535060 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535120 sp=0xc0205350c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535180 sp=0xc020535120 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205351e0 sp=0xc020535180 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535240 sp=0xc0205351e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205352a0 sp=0xc020535240 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535300 sp=0xc0205352a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535360 sp=0xc020535300 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205353c0 sp=0xc020535360 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535420 sp=0xc0205353c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535480 sp=0xc020535420 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205354e0 sp=0xc020535480 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535540 sp=0xc0205354e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205355a0 sp=0xc020535540 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535600 sp=0xc0205355a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535660 sp=0xc020535600 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205356c0 sp=0xc020535660 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535720 sp=0xc0205356c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535780 sp=0xc020535720 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205357e0 sp=0xc020535780 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535840 sp=0xc0205357e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205358a0 sp=0xc020535840 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535900 sp=0xc0205358a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535960 sp=0xc020535900 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205359c0 sp=0xc020535960 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535a20 sp=0xc0205359c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535a80 sp=0xc020535a20 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535ae0 sp=0xc020535a80 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535b40 sp=0xc020535ae0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535ba0 sp=0xc020535b40 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535c00 sp=0xc020535ba0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535c60 sp=0xc020535c00 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535cc0 sp=0xc020535c60 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535d20 sp=0xc020535cc0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535d80 sp=0xc020535d20 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535de0 sp=0xc020535d80 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535e40 sp=0xc020535de0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535ea0 sp=0xc020535e40 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535f00 sp=0xc020535ea0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535f60 sp=0xc020535f00 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020535fc0 sp=0xc020535f60 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536020 sp=0xc020535fc0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536080 sp=0xc020536020 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205360e0 sp=0xc020536080 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536140 sp=0xc0205360e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205361a0 sp=0xc020536140 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536200 sp=0xc0205361a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536260 sp=0xc020536200 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205362c0 sp=0xc020536260 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536320 sp=0xc0205362c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536380 sp=0xc020536320 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205363e0 sp=0xc020536380 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536440 sp=0xc0205363e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205364a0 sp=0xc020536440 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536500 sp=0xc0205364a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536560 sp=0xc020536500 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205365c0 sp=0xc020536560 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536620 sp=0xc0205365c0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536680 sp=0xc020536620 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205366e0 sp=0xc020536680 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536740 sp=0xc0205366e0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc0205367a0 sp=0xc020536740 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536800 sp=0xc0205367a0 pc=0xdeaffb
github.com/rai-project/rai/cmd.init.3.func1(0x1bdc500, 0xc000524160, 0x0, 0x2)
        /home/aschuh/go/src/github.com/rai-project/rai/cmd/root.go:95 +0x5b fp=0xc020536860 sp=0xc020536800 pc=0xdeaffb
...additional frames elided...

goroutine 34 [syscall]:
os/signal.signal_recv(0x6f7933)
        /usr/local/go/src/runtime/sigqueue.go:139 +0x9c
os/signal.loop()
        /usr/local/go/src/os/signal/signal_unix.go:23 +0x22
created by os/signal.init.0
        /usr/local/go/src/os/signal/signal_unix.go:29 +0x41

goroutine 4 [select]:
github.com/xlab/closer.(*closer).wait(0xc000462400)
        /home/aschuh/go/src/github.com/xlab/closer/closer.go:103 +0xd9
created by github.com/xlab/closer.newCloser
        /home/aschuh/go/src/github.com/xlab/closer/closer.go:95 +0x1cc

Any other details

@weiren2
Copy link
Contributor

weiren2 commented Jan 26, 2019

I think this is due to a infinite recursion in the Run() function for VersionCmd.

rai/cmd/root.go

Lines 90 to 99 in f2885fc

var VersionCmd = cmd.VersionCmd
func init() {
// The version information command
VersionCmd.Run = func(c *cobra.Command, args []string) {
cmd.VersionCmd.Run(c, args)
if ece408ProjectMode {
fmt.Println("ECE408ProjectMode: ", ece408ProjectMode)
}
}

VersionCmd in cmd/root.go is a reference to cobra command cmd.VersionCmd. In the init function, Run value is assigned to a new function that calls itself until stack overflows. I think the intention here is to call the original cmd.VersionCmd and add some checking (more like append/update to the original value). But Go is not a dynamic language so cmd.VersionCmd.Run gets overwritten when it is compiled. The following snippet is probably what you want here:

var VersionCmd = cmd.VersionCmd

func init() {
	// The version information command
        // Store Run function somewhere else so we can explicitly run it later
	var orig_versioncmd_run = VersionCmd.Run
	VersionCmd.Run = func(c *cobra.Command, args []string) {
		orig_versioncmd_run(c, args)
		if ece408ProjectMode {
			fmt.Println("ECE408ProjectMode: ", ece408ProjectMode)
		}
	}

@abduld
Copy link
Contributor

abduld commented Feb 14, 2019

can you make a pull request

@weiren2
Copy link
Contributor

weiren2 commented Apr 24, 2019

can you make a pull request

I just made a pull request #27 for it.

@cwpearson
Copy link
Contributor Author

cwpearson commented Jun 25, 2019

I'm not sure what version of the binary is currently linked on the site, but it could be the same problem as #28

@aschuh703
Copy link
Contributor

aschuh703 commented Jun 25, 2019 via email

@aschuh703
Copy link
Contributor

aschuh703 commented Jun 25, 2019 via email

@abduld
Copy link
Contributor

abduld commented Jun 25, 2019

can you make a pull request

I just made a pull request #27 for it.

I merged this

@cwpearson
Copy link
Contributor Author

Closing since I think this is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants