Skip to content

Segmentation fault in libaws-cpp-sdk-core.so on creation of Aws::Client::ClientConfiguration #1921

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

Closed
gi12345 opened this issue Apr 28, 2022 · 2 comments
Assignees
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@gi12345
Copy link

gi12345 commented Apr 28, 2022

Describe the bug

Segmentation fault in libaws-cpp-sdk-core.so on creation of Aws::Client::ClientConfiguration.

Stack trace and reproduction steps see below.

Expected Behavior

No segmentation fault

Current Behavior

Crash Trace:
28/04/2022 13:41:24.766 [WARNING]Catch dump signal [11]Segmentation fault
Obtained 10 stack frames:
[0]./VIGILCameraServer(_Z4dumpi+0x28) [0x4e4b08]
[1]linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7fa8fe25e4]
[2]/mnt/plugin/vigilcamera/lib/libaws-cpp-sdk-core.so(_ZNK3Aws8Internal21AWSHttpResourceClient34GetResourceWithAWSWebServiceResultB5cxx11ERKSt10shared_ptrINS_4Http11HttpRequestEE+0xa4) [0x7fa87e6d7c]
[3]/mnt/plugin/vigilcamera/lib/libaws-cpp-sdk-core.so(_ZNK3Aws8Internal17EC2MetadataClient16GetCurrentRegionB5cxx11Ev+0x34c) [0x7fa87e2e44]
[4]/mnt/plugin/vigilcamera/lib/libaws-cpp-sdk-core.so(_ZN3Aws6Client19ClientConfigurationC1Ev+0x228) [0x7fa8835318]
[5]./VIGILCameraServer(_ZN15CMotionUploader18InitializeAWSS3EnvEv+0x28) [0x59ae20]
[6]./VIGILCameraServer(_ZN15CMotionUploader3runEv+0x24) [0x59a840]
[7]./VIGILCameraServer(_ZN7Runable18Runable_MainThreadEPv+0x6c) [0x50c9ec]
[8]/lib/libpthread.so.0(+0x7648) [0x7fa8f88648]
[9]/lib/libc.so.6(+0xd1f0c) [0x7fa7b67f0c]

Likely Location:

File: aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp

Function:
AmazonWebServiceResultAws::String AWSHttpResourceClient::GetResourceWithAWSWebServiceResult(const std::shared_ptr &httpRequest) const
{
AWS_LOGSTREAM_TRACE(m_logtag.c_str(), "Retrieving credentials from " << httpRequest->GetURIString());

        for (long retries = 0;; retries++)
        {
            std::shared_ptr<HttpResponse> response(m_httpClient->MakeRequest(httpRequest));

            if (response->GetResponseCode() == HttpResponseCode::OK)
            {
                Aws::IStreamBufIterator eos;
                return {Aws::String(Aws::IStreamBufIterator(response->GetResponseBody()), eos), response->GetHeaders(), HttpResponseCode::OK};
            }

Reproduction Steps

Application calling sequence:

Aws::InitAPI(m_awsSDKoptions);
Aws::Client::ClientConfiguration m_cfg; <-- crashes

Possible Solution

No response

Additional Information/Context

crashes all the time during creation of data structure Aws::Client::ClientConfiguration.

AWS CPP SDK version used

AWS-SDK-C++ version: new checkout and default build "S3-only" on April 18, 2022 OS: Built on Ubuntu-20 AARM64, run on AARM64-device

Compiler and Version used

Ubuntu20-gcc

Operating System and version

Ubuntu-20 AARM64

@gi12345 gi12345 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 28, 2022
@vudh1 vudh1 self-assigned this Apr 29, 2022
@gi12345
Copy link
Author

gi12345 commented May 6, 2022

I am closing this issue as I found a generic root cause for this problem. See issue #1925.

@gi12345 gi12345 closed this as completed May 6, 2022
@github-actions
Copy link

github-actions bot commented May 6, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants