-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Segmentation fault #123
Comments
What's your build command for the SDK? |
|
I'm having trouble reproducing. What happens if you dynamically link? |
Result is the same using dynamic linking. Build command: Cmake is version 3.2.2 btw. |
…storage-directory-should-be to develop # By Jakub Kudzia # Via Jakub Kudzia * commit '67cb66fb3e19a208664f2fde8a7b8252a6b2c016': VFS-1832 - bugfixes VFS-1832 - create default storage dir if it doesn't exits VFS-1832 - add host path of posix storage to env_up output VFS-1832 - create volume for storage in temporary dir
I have this issue in Windows and can't solve it. |
Reopen this if you still have problem after updating SDK to latest. |
* Added job for Windows+VC14 * Avoid long path problems * updated builder to v0.6.5
Latest version (d48e71b) segfaults when I'm trying to get a shard iterator for my kinesis app. Here is a minimal code example that shows the issue:
`// excluding includes/using statements for brevity
The program is build on Ubuntu 14.04 with the following g++ command:
g++ test.cpp -g -std=c++11 -pthread -I../aws_lib/include -L../aws_lib/lib -laws-cpp-sdk-core -laws-cpp-sdk-kinesis -lcurl -lcrypto
g++ is version 5.3.0.
I built up a debug version and got this stack trace from gdb:
`#0 0x00007ffff7549a00 in std::string::compare(std::string const&) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x0000000000407d9f in std::operator< <char, std::char_traits, std::allocator > (__lhs="content-type",
#2 0x0000000000407be7 in std::lessstd::string::operator() (this=0x7fffffffd5b0, __x="content-type",
#3 0x00000000004077cb in std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > >::_M_get_insert_unique_pos (
#4 0x00000000004070bf in std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > >::_M_insert_unique<std::pair<std::string, std::string> >(std::pair<std::string, std::string>&&) (this=0x7fffffffd5b0,
#5 0x0000000000406b52 in std::map<std::string, std::string, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > >::insert<std::pair<std::string, std::string>, void>(std::pair<std::string, std::string>&&) (this=0x7fffffffd5b0,
#6 0x000000000040681a in Aws::Kinesis::KinesisRequest::GetHeaders (this=0x7fffffffdcc0)
#7 0x000000000048a673 in Aws::Client::AWSClient::BuildHttpRequest (this=0x752670, request=..., httpRequest=
#8 0x0000000000489736 in Aws::Client::AWSClient::AttemptOneRequest (this=0x752670, uri="https://kinesis.us-west-2.amazonaws.com/",
#9 0x00000000004891df in Aws::Client::AWSClient::AttemptExhaustively (this=0x752670, uri="https://kinesis.us-west-2.amazonaws.com/",
#10 0x000000000048aa4b in Aws::Client::AWSJsonClient::MakeRequest (this=0x752670, uri="https://kinesis.us-west-2.amazonaws.com/",
#11 0x00000000004123ca in Aws::Kinesis::KinesisClient::GetShardIterator (this=0x752670, request=...)
#12 0x0000000000405f8e in main (argc=1, argv=0x7fffffffde68) at test.cpp:34
`
I believe this issue was introduced in commit 9ad3128 as reverting to commit d48e71b (the previous one) resolves the issue.
The text was updated successfully, but these errors were encountered: