Skip to content

Segfault in release build #19

Closed
Closed
@eugene345

Description

@eugene345

Hello,

I'm on Ubuntu 15.04 now. I have a segmentation fault for release build only. Debug build works fine. The library was compiled with STATIC_LINKING=1. Compiler - GCC 4.9.2.

My code:

bool MainWindow::credentialsProviderTest()
{
    Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>(ALLOCATION_TAG, Aws::Utils::Logging::LogLevel::Trace, "aws_sdk_"));

    // Create a client
    ClientConfiguration config;
    config.scheme = Scheme::HTTPS;
    config.connectTimeoutMs = 30000;
    config.requestTimeoutMs = 30000;

    auto cognitoIdentityClient = Aws::MakeShared<CognitoIdentityClient>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, "", ""), config);
    auto cognitoCachingAnonymousCredentialsProvider = Aws::MakeUnique<CognitoCachingAnonymousCredentialsProvider>(ALLOCATION_TAG, accountId, identityPoolId, cognitoIdentityClient);
    AWSCredentials credentials = cognitoCachingAnonymousCredentialsProvider->GetAWSCredentials();
    credentials = cognitoCachingAnonymousCredentialsProvider->GetAWSCredentials();

    Aws::Utils::Logging::ShutdownAWSLogging();
    return true;
}

Stack trace:
image

runCognitoIntegrationTests shows same problem:

image

log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions