# HG changeset patch # User Sebastien Jodogne # Date 1372946026 -7200 # Node ID 511efa5c84dd95ba9fa16c95e34d645b02c3d646 # Parent 238a0c99ced2a1b6161f25989b6f114f227daf01 fix diff -r 238a0c99ced2 -r 511efa5c84dd OrthancCppClient/HttpClient.cpp --- a/OrthancCppClient/HttpClient.cpp Thu Jul 04 15:25:15 2013 +0200 +++ b/OrthancCppClient/HttpClient.cpp Thu Jul 04 15:53:46 2013 +0200 @@ -92,6 +92,11 @@ CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSL_VERIFYPEER, 0)); #endif + // This fixes the "longjmp causes uninitialized stack frame" crash + // that happens on modern Linux versions. + // http://stackoverflow.com/questions/9191668/error-longjmp-causes-uninitialized-stack-frame + CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_NOSIGNAL, 1)); + url_ = ""; method_ = Orthanc_HttpMethod_Get; lastStatus_ = Orthanc_HttpStatus_200_Ok;