threefoldfoundation / tfchain

Official implementation of the ThreeFold blockchain
https://explorer.threefoldtoken.com
Apache License 2.0
13 stars 7 forks source link

bridge client rootcmd panics #373

Closed DylanVerstraete closed 4 years ago

DylanVerstraete commented 4 years ago
➜ bridgec
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x469bbbd]

goroutine 1 [running]:
github.com/threefoldfoundation/tfchain/cmd/bridgec/internal.(*rootCmd).estimatedHeightAt(0xc000032f50, 0xbf5cf134e0467b50, 0x2495f67, 0x52136a0, 0xc00077a000)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/cmd/bridgec/internal/rootcmd.go:109 +0x2d
github.com/threefoldfoundation/tfchain/cmd/bridgec/internal.(*rootCmd).getSyncingStatus(0xc000032f50)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/cmd/bridgec/internal/rootcmd.go:69 +0x410
reflect.Value.call(0x484c860, 0xc000032f70, 0x13, 0x4987103, 0x4, 0x5248fb0, 0x0, 0x0, 0x4982b60, 0x1, ...)
    /usr/local/Cellar/go/1.12.7/libexec/src/reflect/value.go:447 +0x461
reflect.Value.Call(0x484c860, 0xc000032f70, 0x13, 0x5248fb0, 0x0, 0x0, 0x4152914, 0xc000286800, 0x498756f)
    /usr/local/Cellar/go/1.12.7/libexec/src/reflect/value.go:308 +0xa4
github.com/threefoldfoundation/tfchain/vendor/github.com/threefoldtech/rivine/pkg/client.Wrap.func1(0xc0002e6c80, 0x5248fb0, 0x0, 0x0)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/vendor/github.com/threefoldtech/rivine/pkg/client/client.go:77 +0x213
github.com/threefoldfoundation/tfchain/vendor/github.com/spf13/cobra.(*Command).execute(0xc0002e6c80, 0xc0000321b0, 0x0, 0x0, 0xc0002e6c80, 0xc0000321b0)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/vendor/github.com/spf13/cobra/command.go:830 +0x2ae
github.com/threefoldfoundation/tfchain/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0002e6c80, 0x0, 0x498896c, 0x6)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/vendor/github.com/spf13/cobra/command.go:914 +0x2fc
github.com/threefoldfoundation/tfchain/vendor/github.com/spf13/cobra.(*Command).Execute(...)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/vendor/github.com/spf13/cobra/command.go:864
github.com/threefoldfoundation/tfchain/cmd/bridgec/internal.(*CommandLineClient).Run(...)
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/cmd/bridgec/internal/client.go:98
main.main()
    /Users/dylan/go/src/github.com/threefoldfoundation/tfchain/cmd/bridgec/main.go:52 +0x98