diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diode ztna network.
https://diode.io/download
Other
66 stars 23 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #12

Closed sc0Vu closed 4 years ago

sc0Vu commented 4 years ago

Error log

[EROR] Failed to decode portopen request: DecodeString(): Cannot decode the wrong hex source 'pR[X' module=ssl server=asia.testnet.diode.io:41045

03/23/2020 09:06:25 [EROR] Failed to decode portopen request: DecodeString(): Cannot decode the wrong hex source '9;)N' module=ssl server=asia.testnet.diode.io:41045
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x3a4ed8]

goroutine 822 [running]:
github.com/diodechain/diode_go_client/rpc.(*RPCClient).ResponsePortOpen(0x26d8000, 0x0, 0x73b260, 0x248cfb0, 0x4, 0x2912618)
    /build/rpc/client.go:581 +0x30
created by github.com/diodechain/diode_go_client/rpc.(*RPCClient).handleInboundRequest
    /build/rpc/bridge.go:43 +0x764
sc0Vu commented 4 years ago

Another error log:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x3aa1a8]

goroutine 2349 [running]:
github.com/diodechain/diode_go_client/rpc.(*RPCClient).ResponsePortOpen(0x101ab90, 0x0, 0x5337c8, 0x12688c8, 0x13ec740, 0x8)
    /home/pi/diode_go_client/rpc/client.go:520 +0x30
created by github.com/diodechain/diode_go_client/rpc.(*RPCServer).handleInboundRequest
sc0Vu commented 4 years ago

Since we change to rlp v2 protocol, it should not happened.