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

aws-sdk segmentation fault #1166

Closed
William-ferns opened this issue Oct 20, 2021 · 2 comments
Closed

aws-sdk segmentation fault #1166

William-ferns opened this issue Oct 20, 2021 · 2 comments

Comments

@William-ferns
Copy link

Hi we are using aws-sdk in that when we are sending lengthy data of bytes 270000 , while sending mqtt_publish() library api is giving segmentation fault.

link for SDK : https://github.com/aws/aws-iot-device-sdk-embedded-C

please provide the information regarding this any constrains are there in that api to send lengthy data.
ERROR logs using gdb:

#7 0x000000555555e58c in sendPacket ()
#8 0x000000555555fd40 in sendPublish ()
#9 0x0000005555560b3c in MQTT_Publish ()
#10 0x000000555555c2c0 in publishToTopic ()
#11 0x000000555555c5b4 in subscribePublishLoop ()
#12 0x000000555555d8a8 in aws_send ()
#13 0x0000007ff7f8d8f8 in ?? () from /lib/libpthread.so.0
#14 0x0000007ff7eafa9c in ?? () from /lib/libc.so.6

Thanks and regards
William

@jumoog
Copy link
Contributor

jumoog commented Oct 21, 2021

Hi we are using aws-sdk in that when we are sending lengthy data of bytes 270000 , while sending mqtt_publish() library api is giving segmentation fault.

link for SDK : https://github.com/aws/aws-iot-device-sdk-embedded-C

please provide the information regarding this any constrains are there in that api to send lengthy data. ERROR logs using gdb:

#7 0x000000555555e58c in sendPacket () #8 0x000000555555fd40 in sendPublish () #9 0x0000005555560b3c in MQTT_Publish () #10 0x000000555555c2c0 in publishToTopic () #11 0x000000555555c5b4 in subscribePublishLoop () #12 0x000000555555d8a8 in aws_send () #13 0x0000007ff7f8d8f8 in ?? () from /lib/libpthread.so.0 #14 0x0000007ff7eafa9c in ?? () from /lib/libc.so.6

Thanks and regards William

aws-sdk does not use paho.mqtt.c.

@icraggs
Copy link
Contributor

icraggs commented Oct 27, 2021

As @jumoog points out, the sdk uses https://github.com/FreeRTOS/coreMQTT not this library. I'm going to close this issue. Thanks.

@icraggs icraggs closed this as completed Oct 27, 2021
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

3 participants