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

panic on ProcessPublishMessage #36

Closed
MarcMagnin opened this issue Jan 14, 2019 · 1 comment
Closed

panic on ProcessPublishMessage #36

MarcMagnin opened this issue Jan 14, 2019 · 1 comment

Comments

@MarcMagnin
Copy link
Contributor

Hi,
I'm not sure what can cause this issue but sometimes when a client appear to somehow disconnect I'm getting a bunch of:

ERROR   broker  broker/client.go:252    process message for psub error,         {"error": "write tcp 127.0.0.1:1888->127.0.0.1:41254: use of closed network connection", "ClientID": "e0d159c9-0bc3-4f88-8e96-e5a33fa4d1dd"} 
github.com/fhmq/hmq/broker.(*client).ProcessPublishMessage
        github.com/fhmq/hmq/broker/client.go:252

which seems to terminate at some point with a panic:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x91906a]

goroutine 5798521 [running]:
bitbucket.org/digitalisio/axonops/vendor/github.com/eclipse/paho.mqtt.golang/packets.(*PublishPacket).Write(0xc5142c6f40, 0x0, 0x0, 0x0, 0x0)
        github.com/eclipse/paho.mqtt.golang/packets/publish.go:39 +0x25a
bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/broker.(*client).WriterPacket(0xc420599a40, 0xd74a00, 0xc5142c6f40, 0x0, 0x0)
        github.com/fhmq/hmq/broker/client.go:428 +0x11c
bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/broker.(*client).ProcessPublishMessage(0xc423370c80, 0xc5142c6f40)
        github.com/fhmq/hmq/broker/client.go:250 +0x1c9
bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/broker.(*client).ProcessPublish(0xc423370c80, 0xc5142c6f40)
        github.com/fhmq/hmq/broker/client.go:185 +0x587
bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/broker.ProcessMessage(0xc486b327e0)
        github.com/fhmq/hmq/broker/client.go:144 +0x2dd
bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/broker.(*Broker).SubmitWork.func1()
        github.com/fhmq/hmq/broker/broker.go:115 +0x2a
bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/pool.startWorker.func1(0xc4203a64e0, 0xc4202e49c0)
        github.com/fhmq/hmq/pool/pool.go:160 +0x68
created by bitbucket.org/digitalisio/axonops/vendor/github.com/fhmq/hmq/pool.startWorker
        github.com/fhmq/hmq/pool/pool.go:145 +0x49

Regards

@aureolex
Copy link

me to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants