Recently, A SIGSEGV makes me confuse. The stacktrace:
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x45a460]
goroutine 322715 [running]:
panic(0x6c1f80, 0xc42000c0d0)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
lib/relaylib.(*OnlineDidMap).LockAndGet(0x88c4c0, 0x0, 0x20, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x43cff0)
/home/apps/godaemon/src/lib/relaylib/did.go:55 +0x83
lib/relaylib.(*OnlineDidMap).IsDidOnline(0x88c4c0, 0x0, 0x20, 0x0)
/home/apps/godaemon/src/lib/relaylib/did.go:163 +0x5a
lib/relaylib.RS_DidISOnline(0x0, 0x20, 0x0)
/home/apps/godaemon/src/lib/relaylib/relay.go:156 +0x41
And the RS_DidISOnline declaration:
func RS_DidISOnline(did string) bool {}
The 0x0,0x20 passed into RS_DidISOnline belones did string.
How could the did string has 0x0 value to pass into RS_DidISOnline and
cause SIGSEGV ?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.