Skip to content

sigfault on Aws::InitAPI(Aws::SDKOptions const&) with clang36 #308

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
vsakharuk opened this issue Oct 13, 2016 · 3 comments
Closed

sigfault on Aws::InitAPI(Aws::SDKOptions const&) with clang36 #308

vsakharuk opened this issue Oct 13, 2016 · 3 comments

Comments

@vsakharuk
Copy link

vsakharuk commented Oct 13, 2016

Following code works with icc 16 and gcc 5.4 but cores with clang36
Aws::SDKOptions m_options;
m_options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Info;
Aws::InitAPI(m_options);

Core dump is:
#0 0x0000000000000000 in ?? ()
#1 0x00007fffe0fa9f23 in Aws::InitAPI(Aws::SDKOptions const&) () from (...)/aws-sdk-cpp/1.0.5/lib/libaws-cpp-sdk-core.so

...

Help appreciated

p m_options
$3 = {loggingOptions = {logLevel = Aws::Utils::Logging::LogLevel::Info, defaultLogPrefix = 0x7fffe4e4841b "aws_sdk_",
logger_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Logging::LogSystemInterface ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Logging::LogSystemInterface ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0}}, memoryManagementOptions = {memoryManager = 0x0}, httpOptions = {
httpClientFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Http::HttpClientFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Http::HttpClientFactory ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0}, initAndCleanupCurl = true}, cryptoOptions = {
md5Factory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::HashFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::HashFactory ()>> = {}, _buf = {
__lx = "\006=\241د*\301\354`\211R\001\000\000\000\000Њb\002\000\000\000"}, _f = 0x0},
sha256Factory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::HashFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::HashFactory ()>> = {}, _buf = {
_lx = "h\263\327!\023\353.\020^\230\001\000\000\000\000\210\064w\002\000\000\000"}, _f = 0x0},
sha256HMACFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::HMACFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::HMACFactory ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0},
aes_CBCFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0},
aes_CTRFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0},
aes_GCMFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0},
aes_KeyWrapFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SymmetricCipherFactory ()>> = {},
_buf = {__lx = '\000' <repeats 23 times>}, _f = 0x0},
secureRandomFactory_create_fn = {std::__1::__function::__maybe_derive_from_unary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SecureRandomFactory ()>> = {}, std::__1::__function::__maybe_derive_from_binary_function<std::__1::shared_ptr<Aws::Utils::Crypto::SecureRandomFactory ()>> = {}, _buf = {
__lx = '\000' <repeats 23 times>}, _f = 0x0}, initAndCleanupOpenSSL = true}

@vsakharuk
Copy link
Author

I suspect that problem is following:

  1. library was compiled with gcc
  2. binary was compiled with clang.
    clang stl is not compartible with gcc in above use.

@JonathanHenson
Copy link
Contributor

That seems a likely suspect. We have similar problems building for android. Best to keep everything to the same toolchain for the time being.

Sent from my iPhone

On Oct 13, 2016, at 10:00 AM, vsakharuk [email protected] wrote:

I suspect that problem is following:

  1. library was compiled with gcc
  2. binary was compiled with clang.
    clang stl is not compartible with gcc in above use.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@bretambrose
Copy link
Contributor

Closing for now. Feel free to reopen if you encounter additional issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants