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

Segmentation fault(core dumped) when using mosquitto client as a thread along with lua lanes #22

Open
Aditya23456 opened this issue Jan 25, 2018 · 1 comment

Comments

@Aditya23456
Copy link

Hi,

I am using lua lanes to run os threads to collect data and have an mqtt client running as one of the thread. After some time or sometimes immediately after connecting with broker, my entire software crashes with segmentation fault error and Ubuntu 16.04 error reporting shows up. I tried running it on openwrt platform too and faced similar issues. I changed mosquitto client library to paho and now its stable. I am wondering if there is some issue which you are aware of. I can share the traceback if interested.

Thanks,
Aditya

@karlp
Copy link
Contributor

karlp commented Jan 25, 2018

I've had segfaults when trying to run loop_start() and then accessing objects in my callbacks as well as in my main thread. It doesn't seem to be anything unexpected. You need to be careful with your thread access. If you switched to a different library and language, I presume a lot more changed too, and you simply don't have the access problems anymore.

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

2 participants