CiscoCloud / distributive

Unit testing for the cloud
Apache License 2.0
147 stars 20 forks source link

Crash when using TCPTimeout #141

Closed langston-barrett closed 8 years ago

langston-barrett commented 8 years ago
DEBU[0000] Verbosity level specified                     verbosity=debug
DEBU[0000] Command line options                          URL=http://pastebin.com/raw/0xC3PYhk directory= file= stdin=false
DEBU[0000] Validating flags                             
DEBU[0000] Running checklists                           
INFO[0000] Creating checklist(s)...                      path=http://pastebin.com/raw/0xC3PYhk type=url
DEBU[0000] Creating/checking remote checklist dir       
DEBU[0000] Using /var/run/distributive/ for remote check storage 
INFO[0000] Using local copy of remote checklist          path=/var/run/distributive/httppastebincomraw0xC3PYhk.json
DEBU[0000] Creating checklist from /var/run/distributive/httppastebincomraw0xC3PYhk.json 
DEBU[0000] Making report for zookeeper health check     
INFO[0000] Running check TCPTimeout                     
DEBU[0000] Running check TCPTimeout                     
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x6cee73]

goroutine 7 [running]:
panic(0x8bf0c0, 0xc82000e0f0)
    /usr/lib/go/src/runtime/panic.go:464 +0x3e6
net.(*TCPConn).Close(0x0, 0x0, 0x0)
    <autogenerated>:70 +0x23
github.com/CiscoCloud/distributive/netstatus.CanConnect(0xc82000fea0, 0xe, 0xc82000ffc3, 0x3, 0x0, 0x1)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/netstatus/netstatus.go:188 +0x55d
github.com/CiscoCloud/distributive/checks.connectionCheck(0xc82000fea0, 0xe, 0x95d350, 0x3, 0x0, 0xc82000a280, 0x0, 0x0, 0x0, 0x0)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checks/network.go:416 +0x74
github.com/CiscoCloud/distributive/checks.TCPTimeout.Status(0xc82000fea0, 0xe, 0x0, 0x475091, 0x0, 0x0, 0x0, 0x0)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checks/network.go:498 +0x71
github.com/CiscoCloud/distributive/checks.(*TCPTimeout).Status(0xc8200ad800, 0x1, 0x0, 0x0, 0x0, 0x0)
    <autogenerated>:93 +0xb9
github.com/CiscoCloud/distributive/checklists.(*Checklist).MakeReport.func1(0x7f43837f6a48, 0xc8200ad800, 0xc820014600, 0xc820014660)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checklists/checklists.go:44 +0x189
created by github.com/CiscoCloud/distributive/checklists.(*Checklist).MakeReport
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checklists/checklists.go:53 +0x4d4
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x6cee73]

goroutine 7 [running]:
panic(0x8bf0c0, 0xc82000e0f0)
    /usr/lib/go/src/runtime/panic.go:464 +0x3e6
net.(*TCPConn).Close(0x0, 0x0, 0x0)
    <autogenerated>:70 +0x23
github.com/CiscoCloud/distributive/netstatus.CanConnect(0xc82000fea0, 0xe, 0xc82000ffc3, 0x3, 0x0, 0x1)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/netstatus/netstatus.go:188 +0x55d
github.com/CiscoCloud/distributive/checks.connectionCheck(0xc82000fea0, 0xe, 0x95d350, 0x3, 0x0, 0xc82000a280, 0x0, 0x0, 0x0, 0x0)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checks/network.go:416 +0x74
github.com/CiscoCloud/distributive/checks.TCPTimeout.Status(0xc82000fea0, 0xe, 0x0, 0x475091, 0x0, 0x0, 0x0, 0x0)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checks/network.go:498 +0x71
github.com/CiscoCloud/distributive/checks.(*TCPTimeout).Status(0xc8200ad800, 0x1, 0x0, 0x0, 0x0, 0x0)
    <autogenerated>:93 +0xb9
github.com/CiscoCloud/distributive/checklists.(*Checklist).MakeReport.func1(0x7f43837f6a48, 0xc8200ad800, 0xc820014600, 0xc820014660)
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checklists/checklists.go:44 +0x189
created by github.com/CiscoCloud/distributive/checklists.(*Checklist).MakeReport
    /home/siddharthist/go/src/github.com/CiscoCloud/distributive/checklists/checklists.go:53 +0x4d4

######## DISTRIBUTIVE CRASH ########
Distributive has recovered from a panic but had to shut down ungracefully. This
is always a bug! If you would, please file the output placed in the local
directory at "distributive.panic.log" as an issue at github.com/CiscoCloud/distributive/issues, along with
what you were trying to do at the time of the crash. Thanks, and sorry for the
hassle!