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
Greengrass IPC Publisher Sample Code Segfaults with reduced sleep time #327
Comments
I have the same issue. |
@chris1287 I used gdb in the Recipe "Run" command:
|
How quickly are you getting the crash? My initial repro attempt has been running about 40 minutes without issue. Any special compilation flags? |
I get the crash within minutes. The shorter the interval between publish calls, the faster the crash happens. With an interval of 100ms between calls the crash happens within 5 minutes. No special compilation flags - I built the "aws-iot-device-sdk-cpp-v2-build" with the "Debug" option. |
I modified the sample to use multiple publish threads and almost no sleep time and am now seemingly able to repro it very quickly. I'm hoping debug + asan will help us zero in on the offending memory trasher(s) quickly and will continue to update this as I find out more. |
This should be fixed as a part of the v1.14.6 release. |
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Known Issue
<prefix>-ats.iot.<region>.amazonaws.com
Describe the bug
Running the Greengrass IPC Publisher for C++ with a reduced sleep time (from 5 seconds to 100 milliseconds) causes a segfault in the program.
Full code below, adapted from: https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-publish-subscribe.html
Platform/OS/Device
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Hardware: Nvidia Jetson Xavier
SDK version number
Unsure how to get this - believe I am using the latest version.
To Reproduce (observed behavior)
Follow the steps outlined in the Greengrass Guide for creating + deploying a CPP IPC Publisher, with the code slightly edited as above. (https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-publish-subscribe.html)
Expected behavior
I would expect the publisher to continue publishing messages indefinetely until the program is stopped.
Logs/output
Segfault log below.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: