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

Crash in Mosquitto with threading support enabled on Windows #1819

Closed
santoshks68 opened this issue Sep 9, 2020 · 1 comment
Closed

Crash in Mosquitto with threading support enabled on Windows #1819

santoshks68 opened this issue Sep 9, 2020 · 1 comment

Comments

@santoshks68
Copy link

There is a bug in mosquitto_new (lib/mosquitto.c) where the log mutex is being used before it is initialized. This causes a crash when Mosquitto is built with threading support on Windows. In this scenario, mosquitto_new is being called from the constructor of the C++ wrapper library, mosquittopp

@ralight
Copy link
Contributor

ralight commented Sep 11, 2020

Thank you, nicely spotted. This should now be fixed.

@ralight ralight closed this as completed in a53712a Dec 2, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants