Skip to content

Instantly share code, notes, and snippets.

@bagder
Created October 7, 2017 22:52
Show Gist options
  • Select an option

  • Save bagder/950d02ad78dba71b05d76da4423dfaef to your computer and use it in GitHub Desktop.

Select an option

Save bagder/950d02ad78dba71b05d76da4423dfaef to your computer and use it in GitHub Desktop.
test 1553 without f3e03f6c0ac52a1bf3
daniel@storebror:~/src/curl/tests [master]$ ./runtests.pl 1553
********* System characteristics ********
* curl 7.56.0-DEV (x86_64-pc-linux-gnu)
* libcurl/7.56.0-DEV OpenSSL/1.1.0f zlib/1.2.8 libidn2/2.0.2 libpsl/0.18.0 (+libidn2/2.0.2) libssh2/1.8.1_DEV nghttp2/1.26.0 librtmp/2.3
* Features: AsynchDNS Debug TrackMemory IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
* Host: storebror.haxx.se
* System: Linux storebror.haxx.se 4.12.0-2-amd64 #1 SMP Debian 4.12.13-1 (2017-09-19) x86_64 GNU/Linux
*
*** DISABLES memory tracking when using threaded resolver
*
* Servers: SSL HTTP-IPv6 HTTP-unix FTP-IPv6
* Env: Valgrind
*****************************************
test 1553...[IMAP cleanup before a connection was created]
valgrind ERROR ==32735== 42 bytes in 1 blocks are possibly lost in loss record 2 of 6
==32735== at 0x4C2BBEF: malloc (vg_replace_malloc.c:299)
==32735== by 0x11CAC2: curl_domalloc (memdebug.c:175)
==32735== by 0x11CCE0: curl_dostrdup (memdebug.c:230)
==32735== by 0x12A1BA: init_thread_sync_data (asyn-thread.c:235)
==32735== by 0x12A4F0: init_resolve_thread (asyn-thread.c:399)
==32735== by 0x12AAD4: Curl_resolver_getaddrinfo (asyn-thread.c:661)
==32735== by 0x125EC8: Curl_getaddrinfo (hostasyn.c:150)
==32735== by 0x1328B9: Curl_resolv (hostip.c:484)
==32735== by 0x1329F1: Curl_resolv_timeout (hostip.c:665)
==32735== by 0x150B24: resolve_server (url.c:6236)
==32735== by 0x1524EE: create_conn (url.c:6915)
==32735== by 0x15276E: Curl_connect (url.c:7021)
==32735== by 0x121CB1: multi_runsingle (multi.c:1437)
==32735== by 0x123449: curl_multi_perform (multi.c:2161)
==32735== by 0x1175BA: test (lib1553.c:77)
==32735== by 0x117D14: main (first.c:174)
==32735==
==32735== 56 bytes in 1 blocks are possibly lost in loss record 3 of 6
==32735== at 0x4C2BBEF: malloc (vg_replace_malloc.c:299)
==32735== by 0x11CAC2: curl_domalloc (memdebug.c:175)
==32735== by 0x12A16D: init_thread_sync_data (asyn-thread.c:224)
==32735== by 0x12A4F0: init_resolve_thread (asyn-thread.c:399)
==32735== by 0x12AAD4: Curl_resolver_getaddrinfo (asyn-thread.c:661)
==32735== by 0x125EC8: Curl_getaddrinfo (hostasyn.c:150)
==32735== by 0x1328B9: Curl_resolv (hostip.c:484)
==32735== by 0x1329F1: Curl_resolv_timeout (hostip.c:665)
==32735== by 0x150B24: resolve_server (url.c:6236)
==32735== by 0x1524EE: create_conn (url.c:6915)
==32735== by 0x15276E: Curl_connect (url.c:7021)
==32735== by 0x121CB1: multi_runsingle (multi.c:1437)
==32735== by 0x123449: curl_multi_perform (multi.c:2161)
==32735== by 0x1175BA: test (lib1553.c:77)
==32735== by 0x117D14: main (first.c:174)
==32735==
==32735== 136 bytes in 1 blocks are possibly lost in loss record 4 of 6
==32735== at 0x4C2DC05: calloc (vg_replace_malloc.c:711)
==32735== by 0x11CBE6: curl_docalloc (memdebug.c:206)
==32735== by 0x12A474: init_resolve_thread (asyn-thread.c:386)
==32735== by 0x12AAD4: Curl_resolver_getaddrinfo (asyn-thread.c:661)
==32735== by 0x125EC8: Curl_getaddrinfo (hostasyn.c:150)
==32735== by 0x1328B9: Curl_resolv (hostip.c:484)
==32735== by 0x1329F1: Curl_resolv_timeout (hostip.c:665)
==32735== by 0x150B24: resolve_server (url.c:6236)
==32735== by 0x1524EE: create_conn (url.c:6915)
==32735== by 0x15276E: Curl_connect (url.c:7021)
==32735== by 0x121CB1: multi_runsingle (multi.c:1437)
==32735== by 0x123449: curl_multi_perform (multi.c:2161)
==32735== by 0x1175BA: test (lib1553.c:77)
==32735== by 0x117D14: main (first.c:174)
==32735==
==32735== 288 bytes in 1 blocks are possibly lost in loss record 5 of 6
==32735== at 0x4C2DC05: calloc (vg_replace_malloc.c:711)
==32735== by 0x4011F31: allocate_dtv (dl-tls.c:322)
==32735== by 0x40128BD: _dl_allocate_tls (dl-tls.c:539)
==32735== by 0x56A400B: allocate_stack (allocatestack.c:580)
==32735== by 0x56A400B: pthread_create@@GLIBC_2.2.5 (pthread_create.c:539)
==32735== by 0x177E1B: Curl_thread_create (curl_threads.c:72)
==32735== by 0x12A597: init_resolve_thread (asyn-thread.c:414)
==32735== by 0x12AAD4: Curl_resolver_getaddrinfo (asyn-thread.c:661)
==32735== by 0x125EC8: Curl_getaddrinfo (hostasyn.c:150)
==32735== by 0x1328B9: Curl_resolv (hostip.c:484)
==32735== by 0x1329F1: Curl_resolv_timeout (hostip.c:665)
==32735== by 0x150B24: resolve_server (url.c:6236)
==32735== by 0x1524EE: create_conn (url.c:6915)
==32735== by 0x15276E: Curl_connect (url.c:7021)
==32735== by 0x121CB1: multi_runsingle (multi.c:1437)
==32735== by 0x123449: curl_multi_perform (multi.c:2161)
==32735== by 0x1175BA: test (lib1553.c:77)
==32735==
- abort tests
Killed
TESTDONE: 0 tests out of 1 reported OK: 0%
TESTFAIL: These test cases failed: 1553
TESTDONE: 1 tests were considered during 3 seconds.
daniel@storebror:~/src/curl/tests [master]$
@nn75
Copy link
Copy Markdown

nn75 commented Oct 29, 2020

Did you solve this problem?

@bagder
Copy link
Copy Markdown
Author

bagder commented Oct 29, 2020

Yes! curl has no known memory-leaks in current version and frankly I can't remember any release in the last decade released with a known memory-leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment