curl-library
Problems with libcurl / valgrind
Date: Fri, 1 Sep 2017 23:57:32 +0200
Hello,
I download and compile the example postinmemory.c
The example compiles, links and run well, however I substitute the url :
curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
with:
curl_easy_setopt(curl, CURLOPT_URL,
"https://www.barentswatch.no/api/token");
Now the code runs fine, but when I run it under valgrind I get the error
messages below.
Why do this happen ? I want to check my code using valgrind, but I run
into problems here.
Anyone knows how to fix this ?
Best regards
HÃ¥vard Holm
==12033== Memcheck, a memory error detector
==12033== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==12033== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==12033== Command: ./aa
==12033==
* Trying 153.44.6.135...
* Connected to www.barentswatch.no (153.44.6.135) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection:
ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
*
**vex: the `impossible' happened:**
** isZeroU**
**vex storage: T total 763979048 bytes allocated**
**vex storage: P total 640 bytes allocated**
**
**valgrind: the 'impossible' happened:**
** LibVEX called failure_exit().**
**
**host stacktrace:**
**==12033== at 0x38083F48: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x38084064: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x380842A1: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x380842CA: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x3809F682: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x38145428: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x3815256D: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x38156692: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x381572C6: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x38159188: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x3815A1D6: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x3814320C: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x380A1C0B: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x380D296B: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x380D45CF: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**==12033== by 0x380E3946: ??? (in
/usr/lib/valgrind/memcheck-amd64-linux)**
**
**sched status:**
** running_tid=1**
**
**Thread 1: status = VgTs_Runnable (lwpid 12033)**
**==12033== at 0x5C1FE00: ??? (in
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)**
**==12033== by 0x5BFF0BF: EC_POINT_mul (in
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)**
**==12033== by 0x9678D26D3FE7A8FF: ???**
**==12033== by 0xB989D1F: ???**
**==12033== by 0x5C07479: EC_KEY_generate_key (in
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)**
**==12033== by 0x58DFD24: ??? (in
/lib/x86_64-linux-gnu/libssl.so.1.0.0)**
**==12033== by 0x58E3967: ??? (in
/lib/x86_64-linux-gnu/libssl.so.1.0.0)**
**==12033== by 0x4E8A3C3: ??? (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x4E8A969: ??? (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x4E8DEBF: ??? (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x4E4A4CD: ??? (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x4E702A5: ??? (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x4E70EEC: curl_multi_perform (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x4E6794A: curl_easy_perform (in
/usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0)**
**==12033== by 0x400E70: main (in /home/hholm/tmp/rm/cookie/aa)**
**
*
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-09-02