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

Unexpected panic on wrong public key #221

Open
mrpalide opened this issue May 31, 2023 · 0 comments
Open

Unexpected panic on wrong public key #221

mrpalide opened this issue May 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mrpalide
Copy link
Contributor

Describe the bug
Suddenly get panic on running dmsg-server

Environment information:

  • OS: Linux
  • Platform: Ubuntu 22.04 amd64

Logs:

2023/05/31 04:02:18 Invalid public key
panic: Invalid public key

goroutine 175212 [running]:
log.Panic({0xc005aa5cf8?, 0x0?, 0x0?})
	/usr/lib/go-1.18/src/log/log.go:385 +0x65
github.com/skycoin/skycoin/src/cipher.MustNewPubKey({0xc000eb5410?, 0x20?, 0x20?})
	/root/dmsg/vendor/github.com/skycoin/skycoin/src/cipher/crypto.go:114 +0xc5
github.com/skycoin/dmsg/pkg/noise.Secp256k1.DH({}, {0xc00044b3d1, 0x20, 0x20}, {0xc000eb5410?, 0x80?, 0x0?})
	/root/dmsg/pkg/noise/dh.go:26 +0x54
github.com/skycoin/noise.(*HandshakeState).ReadMessage(0xc004ed7520, {0x0, 0x0, 0x0}, {0xc001e0e002, 0x23, 0x1ffe})
	/root/dmsg/vendor/github.com/skycoin/noise/state.go:450 +0x48f
github.com/skycoin/dmsg/pkg/noise.(*Noise).ProcessHandshakeMessage(0xb9dbd0?, {0xc001e0e002?, 0x40cd76?, 0x8fc800?})
	/root/dmsg/pkg/noise/noise.go:116 +0xbd
github.com/skycoin/dmsg/pkg/noise.ResponderHandshake(0xc000c79110, 0xc0032437b8?, {0x7feadc886358, 0xc002ac51f0})
	/root/dmsg/pkg/noise/read_writer.go:242 +0x5c
github.com/skycoin/dmsg/pkg/noise.(*ReadWriter).Handshake.func1()
	/root/dmsg/pkg/noise/read_writer.go:181 +0xbf
created by github.com/skycoin/dmsg/pkg/noise.(*ReadWriter).Handshake
	/root/dmsg/pkg/noise/read_writer.go:177 +0x98

@mrpalide mrpalide added the bug Something isn't working label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant