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

The program crashed on the MQTTS connection #1053

Closed
Krehizi opened this issue Jan 23, 2021 · 6 comments
Closed

The program crashed on the MQTTS connection #1053

Krehizi opened this issue Jan 23, 2021 · 6 comments
Labels

Comments

@Krehizi
Copy link

Krehizi commented Jan 23, 2021

Describe the bug
The program crashed on the MQTTS connection , everything is fine with MQTT , the following is the specific log . thanks.

Explain
I don't have the OPENSSL Directory,i'm running on an embedded system,i don't know if it affected.
捕111111222获

Log
log.txt

follow-up
I found that this function caused the program to crash ,does it come from the OpenSSL library :
11111111捕获

@jumoog
Copy link
Contributor

jumoog commented Jan 23, 2021

maybe you can run it with valgrind? And attach that log?

@icraggs
Copy link
Contributor

icraggs commented Jan 23, 2021

Please try to attach log files rather than pasting the log contents. It makes the issues easier to read. Thank you.

@Krehizi
Copy link
Author

Krehizi commented Jan 24, 2021

maybe you can run it with valgrind? And attach that log?

@jumoog I tried to run valgrind, but it doesn't work on an embedded system,is the OpenSSL Directory mandatory and what is it for ?

@Krehizi
Copy link
Author

Krehizi commented Jan 24, 2021

Please try to attach log files rather than pasting the log contents. It makes the issues easier to read. Thank you.

@icraggs I have already modified,is the OpenSSL Directory mandatory and what is it for ?

@icraggs
Copy link
Contributor

icraggs commented Jan 24, 2021

The call you have highlighted is an OpenSSL call, so the problem is likely within OpenSSL.

The OpenSSL directory you have highlighted is the OpenSSL installation directory where OpenSSL thinks it is installed. If it doesn't exist, then something is wrong with your OS or OpenSSL installation.

@Krehizi
Copy link
Author

Krehizi commented Jan 25, 2021

The call you have highlighted is an OpenSSL call, so the problem is likely within OpenSSL.

The OpenSSL directory you have highlighted is the OpenSSL installation directory where OpenSSL thinks it is installed. If it doesn't exist, then something is wrong with your OS or OpenSSL installation.

I found the problem.My application was compiled with the OpenSSL library and the MQTT library, so if I removed OpenSSL it would not crash.
The crash may have been caused by repeated references to the OpenSSL library.

@Krehizi Krehizi closed this as completed Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants