Skip to content

Running a sample program built in ubuntu 18.04 crashes in 20.04 #1642

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

Open
kmathewgit opened this issue Jul 29, 2021 · 2 comments
Open

Running a sample program built in ubuntu 18.04 crashes in 20.04 #1642

kmathewgit opened this issue Jul 29, 2021 · 2 comments

Comments

@kmathewgit
Copy link

kmathewgit commented Jul 29, 2021

I am building the sample program with cpprestsdk on ubuntu 18.04, but while running on ubuntu 20.04 it crashes with the following stack trace

Thread 3 "sample" received signal SIGSEGV, Segmentation fault
[Switching to Thread 0x7ffff727e700 (LWP 3710880)]
0x00007ffff7deef14 in utility::details::str_iless(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) () from /lib/x86_64-linux-gnu/libcpprest.so.2.10
(gdb) bt
#0 0x00007ffff7deef14 in utility::details::str_iless(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) () from /lib/x86_64-linux-gnu/libcpprest.so.2.10

#1 0x00007ffff7d874f0 in std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >, web::http::http_headers::_case_insensitive_cmp, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > >::find(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const () from /lib/x86_64-linux-gnu/libcpprest.so.2.10

#2 0x00007ffff7d81078 in web::http::client::http_client::request(web::http::http_request, pplx::cancellation_token const&) ()
from /lib/x86_64-linux-gnu/libcpprest.so.2.10

#3 0x000055555560a939 in web::http::client::http_client::request (this=0x7ffff727d980, mtd="GET", token=...) at /usr/include/cpprest/http_client.h:506

We are trying to statically link boost libraries.

@barcharcraz
Copy link
Member

This seems like an ABI issue. Note that cpprestsdk does not have a stable ABI, so if 18.04 has a different version than 20.04 that would be bad (tm).

@kmathewgit
Copy link
Author

kmathewgit commented Aug 9, 2021 via email

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

2 participants