-
Notifications
You must be signed in to change notification settings - Fork 736
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 during device to cloud message #2592
Comments
What version of the SDK is this? You are using non-multi threaded APIs and there are no resource locking on these. What are you doing on the callback for packet number 5. |
|
Why are there two different devices? |
My apologies for the mistake in my typing. To clarify, it is a single IoT device ( |
Can you try the previous release version? https://github.com/Azure/azure-iot-sdk-c/releases/tag/LTS_08_2023 |
Also, could you please share some more details?
|
What is the platform you are running your application on? Linux? Which flavor? How frequently are you calling IoTHubDeviceClient_SendEventAsync when the issue (crash) occurs? For how long had your application been running when you experience the crash? How many messages were sent before the crash? How often have you observed this issue in your application? Have you tried previous versions of the azure-iot-sdk-c? If yes, did you experience this crash as well? |
You will have to provide a sample that reproduces this issue. |
We have tried reproducing this issue in house and were not able to. |
Hi,
I am utilizing IoTHubDeviceClient_SendEventAsync to transmit messages to the Azure IoT Hub whenever a message is received from my sensor. However, I've observed instances where multiple message requests are generated for the same message. When this occurs, it often leads to segmentation fault errors. This issue doesn't occur consistently but tends to happen more frequently when multiple messages are received from the sensor simultaneously. Below are the logs:
When checked the gdb backtrace,
While checking the code, void IoTHubClientCore_LL_SendComplete() function:
Segmentation fault is happening every time at the line
messageList->callback(result, messageList->context);
Requesting your help on same.
Thanks
The text was updated successfully, but these errors were encountered: