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
Memory tracking miscount #1437
Comments
ralight
added a commit
that referenced
this issue
Oct 1, 2019
Closes #1437. Thanks to Guillaume Bour.
Thanks for the report - as you've just noted it's a memory tracking problem not a leak. I've just pushed a fix. |
You're awesome 👍 |
works perfectly fine, I cannot hit the issue anymore |
Thank you for confirming. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
We hit a memory tracking issue in mosquitto (both 1.6.4 and master tested). This leads to client connections being rejected when used memory exceed the limit set in mosquitto.conf (memory tracking enabled).
We identified that at some point, there is a
memcount
counter underflow and because it is aunsigned long
, its value becomes greater thanmax_memcount
and all new client connections are rejected.The role of our
mosquitto-memleak.patch
patch is to print a stacktrace and force-crashing mosquitto when the underflow happens.This is 100% reproducible with following scenario:
in less than 10 minutes, mosquitto is crashing with following stacktrace:
mosquitto-memleak.zip contains:
The text was updated successfully, but these errors were encountered: