-
Notifications
You must be signed in to change notification settings - Fork 42
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
cpu hog on teardown? pthread_join #9
Comments
There are known issues in the uclibc threading implementation. I remember that we had to patch uclibc heavily for uclibc. But we concluded that fixing it 100%. For example, vlc would hang on exit. We ended up switching to musl libc and all those nasty threading problems got solved. Things you might want check:
A workaround might be to disable threading in mosquitto. (i would really recommedn this with mosquitto on uclibc) In any case, I don't think this has anything to do with lua-mosquitto. I will take a closer look at it if you can reproduce this with musl libc (or maybe even glibc), but not with uclibc since I know for sure that uclibc threading is broken. |
I'm seeing this in an app I have, and I haven't got a lot of debugging yet, it seems to happen after I'm running for a while, but the CPU usage of the app shoots up, and it's no longer "running" but it hasn't exited. I finally hooked gdb up to it today while it was in this state, and it seems like it's stuck trying to tear down?
I've never seen this with a libmosquitto C app, so even though the stack ends in mosquitto, I kinda feel it's an issue in the lua-mosquitto binding?
Source application is at: https://github.com/remakeelectric/owrt_pub_feeds/blob/output-sparkfun/output-sparkfun/files/usr/bin/output-sparkfun
The text was updated successfully, but these errors were encountered: