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
I have been using the library for a while on Ubuntu 20.04 x86_64 and Nvidia Jetson Orin aarch64, but just recently I ran into this stack trace while making a simple https post (below).
The code is simple, and the installation on the Jetson Orin is the same.
from the stack trace below, HttpClient::cpr_post() is where the cpr post is made.
`*** SIGSEGV (@0x1000001b7) received by PID 1122 (TID 0xffff96e81900) from PID 439; stack trace: ***
Thanks for reporting! What operating system are you using (distro)?
To me this looks like a bug where curl crashes since CA certs are invalid or not present.
There are two things you can try:
Use a newer version of curl by installing your distros curl dev package (e.g. sudo dnf install libcurl-devel on fedora). Then when configuring pass the CPR_USE_SYSTEM_CURL option: cmake .. -DCPR_USE_SYSTEM_CURL=ON (or set it in CMake directly)
Description
I have been using the library for a while on Ubuntu 20.04 x86_64 and Nvidia Jetson Orin aarch64, but just recently I ran into this stack trace while making a simple https post (below).
The code is simple, and the installation on the Jetson Orin is the same.
`*** SIGSEGV (@0x1000001b7) received by PID 1122 (TID 0xffff96e81900) from PID 439; stack trace: ***
Example/How to Reproduce
cpr::Response HttpClient::cpr_post(std::string uri, njson payload)
{
auto header = cpr::Header{{"content-type", "application/json"},
{"Authorization", "x-ms-date: something"},
{"log-type", "undefined"},
{"x-ms-date", make_timestamp()},
{"content-length", std::to_string(payload.dump().length())}};
auto body = cpr::Body(payload.dump());
response = cpr::Post(cpr::Url(uri), header, body);
return response;
}
Possible Fix
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
root@9558319e0635:/inference/build# cat /etc/os-release NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
root@9558319e0635:/# curl --version curl 7.68.0 (aarch64-unknown-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 Release-Date: 2020-01-08 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
The text was updated successfully, but these errors were encountered: