Closed xuandong93 closed 1 month ago
please consult the sdk usage dcumentation
The SDK for C++ and its dependencies use C++ static objects, and the order of static object destruction is not determined by the C++ standard. To avoid memory issues caused by the nondeterministic order of static variable destruction, do not wrap the calls to Aws::InitAPI and Aws::ShutdownAPI into another static object.
So yeah, you cant wrap the SDK in a static object because it causes a nondeterministic order of destruction.
got it and thanks !
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the bug
Test constructor should successfully run but failed
Header
IMPL
Main
Expected Behavior
test constructor should successfully run but failed
Current Behavior
Segmentation fault at Aws::InitAPI()
Reproduction Steps
-
Possible Solution
-
Additional Information/Context
-
AWS CPP SDK version used
1.11.328
Compiler and Version used
gcc version 9.5.0
Operating System and version
ubuntu 22.04