Closed zlberto closed 10 months ago
Can you provide logs and the stack trace from when you observe this seg fault?
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.
Describe the bug
In my C++ project, I have developed a custom class named
AWSIoTCore
that serves as a wrapper for the AWS IoT SDK. However, I'm encountering a segmentation fault when this class is used alongsidelibcurl
. The issue only arises when AWSIoTCore.cpp (my custom wrapper implementation) is included in the build. Excluding this file from the build process seems to resolve the segmentation fault, suggesting a potential conflict or resource management issue within my wrapper when used withlibcurl
.AWSIoTCore.h
AWSIoTCore.cpp
CMakeLists.txt
Expected Behavior
The application should run without a segmentation fault, allowing for the simultaneous use of my AWS IoT SDK wrapper (AWSIoTCore) and libcurl.
Current Behavior
Segmentation fault occurs when AWSIoTCore.cpp is included in the build.
Reproduction Steps
1 - Compile and run the application with AWSIoTCore.cpp included. 2 - Observe the segmentation fault occurring.
Possible Solution
No response
Additional Information/Context
SDK version used
v1.32.1
Environment details (OS name and version, etc.)
Docker Ubuntu:22.04