-
Notifications
You must be signed in to change notification settings - Fork 738
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 when Network is Down #1275
Comments
Hi, What we have seen so far is that there are a couple of bugs introduced in the 2019-10-07 release for mbedtls, mqtt and berkley sockets combination. Haven't had time to file all issues yet due to other development tasks, so we are sticking with the 2019-07-01 release. Here's one of them though, Have you tested the 2019-07-01 release, for us that is working as expected. |
Hi @Patrik-Berglund , I've already rolled back to 2019-07-01 release as soon as I found the reconnect issue, to make sure our applications won't crash. However, OPTION_RETRY_INTERVAL_SEC isn't yet introduced in 2019-07-01, so I'd still like to know if there's any progress, thanks. |
Same problem here, running 1.3.5 using MQTT on Linux/Arm i hit this segfault when the network goes down. Same as the previous commenter, i switched to 1.3.5 due to OPTION_RETRY_INTERVAL_SEC. |
In case it helps, here a backtrace of the fault:
|
c-utility/adapters/socketio_berkeley.c |
@FrankSHLi , @Patrik-Berglund, @aog2000a , @rajaggrawal , thank you for reporting this issue and for providing all the details! |
Hi, there's a pull req for this in the azure-c-shared-utility. it's not submitted by me (or our company), Azure/azure-c-shared-utility#400 |
Relates to: Azure/azure-iot-sdk-c#1275 There were two instances of possible failures not properly handled on socketio related to dns_resolver: - The result of dns_resolver_create() was not being checked for NULL (which could be caused by memory allocation failure); - The result of dns_resolver_get_addrInfo() was not being checked for NULL, which could happen even if dns_resolver_is_lookup_complete returned true. These failures affected socketio_berkeley.c and socketio_win32.c. The currently remaining socketio implementations were not affected, since they do not use dns_resolver (socketio_mbed.c, socketio_mbed_os5.c). Thanks @mlilien for the initial PR to fix this issue.
Thanks @Patrik-Berglund , we used that PR as part of the fix. |
when i know when this would be integrated . Any Approximate date ?. |
Hi @rajaggrawal , the fixed version of azure-c-shared-utility will be integrated to this repo today, 11/22/2019. Packages will be available at a later date. |
@ewertons let me know if I can pull the changes if its available. |
@rajaggrawal , apologies for the delay. There was an additional change to complete the fix and we are working on it right now. We will update you briefly of the status. |
Hi @rajaggrawal , the fix is in master now. |
We will close this issue as a fix has been checked in. |
@Patrik-Berglund, @aog2000a, @rajaggrawal, @ewertons, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
Development Machine, OS, Compiler (and Other Relevant Toolchain Info)
Debian 9
SDK Version (Please Give Commit SHA if Manually Compiling)
Release 2019-10-07
Protocol
MQTT
Describe the Bug
The sample code iothub_ll_telemetry_sample.c segmentation fault if the network is down.
The text was updated successfully, but these errors were encountered: