Repository navigation
Closed
Labels
bugThis issue is a bug.p2This is a standard priority issuepending-releaseThis issue will be fixed by an approved PR that hasn't been released yet.
Description
Describe the bug
Using the AWS S3Client causes a small memory leak, even in simple cases.
Expected Behavior
S3Client does not cause a memory leak when properly shut down.
Current Behavior
AddressSanitizer report:
==27159==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 144 byte(s) in 1 object(s) allocated from:
#0 0x7f7b6240890f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x5588ebff77dc in CRYPTO_zalloc crypto/mem.c:197
Indirect leak of 512 byte(s) in 6 object(s) allocated from:
#0 0x7f7b6240890f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x5588ebff77dc in CRYPTO_zalloc crypto/mem.c:197
Indirect leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7f7b6240890f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x5588ec039315 in OPENSSL_sk_deep_copy crypto/stack/stack.c:87
Indirect leak of 27 byte(s) in 2 object(s) allocated from:
#0 0x7f7b6240890f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x5588ebff8fc9 in CRYPTO_strdup crypto/o_str.c:27
Indirect leak of 5 byte(s) in 1 object(s) allocated from:
#0 0x7f7b6240890f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x5588ebff9102 in CRYPTO_strndup crypto/o_str.c:43
Indirect leak of 3 byte(s) in 1 object(s) allocated from:
#0 0x7f7b62407720 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85
#1 0x5588ec002cf8 in ossl_provider_set_operation_bit crypto/provider_core.c:1627
SUMMARY: AddressSanitizer: 723 byte(s) leaked in 12 allocation(s).
Reproduction Steps
Here's a code snippet that reproduces the issue:
Aws::SDKOptions o;
Aws::InitAPI(o);
{
Aws::Client::ClientConfiguration config;
Aws::S3::S3Client client(config);
}
Aws::ShutdownAPI(o);Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.4
Compiler and Version used
gcc 12.1.0
Operating System and version
Ubuntu 22.04 (WSL)
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.p2This is a standard priority issuepending-releaseThis issue will be fixed by an approved PR that hasn't been released yet.
Activity
jmklix commentedon Feb 6, 2023
I don't see this memory leak on Mac. Going to try to repro on Ubuntu as well
ank8690 commentedon Feb 9, 2023
I also face this issue in AWS SDK Version 1.11.8 in Windows 10.
kvpendergast commentedon Feb 11, 2023
I'm using sdk version 2 and experiencing this issue. Here's the code:
jmklix commentedon Feb 23, 2023
Able to repro this with Ubuntu 22.04
Still working on finding the root cause and a fix for this
jmklix commentedon Feb 28, 2023
The fix has been merged. You can get the latest updates from head or wait for tomorrow's release. Please let us know if you run into anymore memory leaks
github-actions commentedon Feb 28, 2023
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.
Update aws-sdk-cpp version to 1.11.169 (from 1.10.57) (#8099)
Update aws-sdk-cpp version to 1.11.169 (from 1.10.57) (facebookincuba…