You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Describe the bug
The AWS SDK for Swift has a profile credential provider that is built with an implementation from this project:
https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Core/AWSSDKIdentity/Sources/AWSSDKIdentity/AWSCredentialIdentityResolvers/ProfileAWSCredentialIdentityResolver.swift#L61
This credentials provider does resolve credentials successfully from a profile, but when the credentials provider is deallocated, the CRT credentials provider crashes on
EXC_BAD_ACCESS
here due to theshutdownCallbackOptions.shutdownCallback
property being nil:https://github.com/awslabs/aws-crt-swift/blob/main/Source/AwsCommonRuntimeKit/crt/ShutdownCallbackCore.swift#L61
Here is the Swift snippet that uses the AWSSTS service client to cause the crash:
Here is the
~/.aws/config
file, credentials are configured in a separate file:Expected Behavior
Credentials provider should deallocate successfully
Current Behavior
Credentials provider crashes as indicated
Reproduction Steps
Run the code above, observe crash after successful profile resolution
Possible Solution
No response
Additional Information/Context
No response
aws-crt-swift version used
0.33.0
Compiler and Version used
Xcode 15.4
Operating System and version
macOS 14.6.1
The text was updated successfully, but these errors were encountered: