Skip to content

Instantly share code, notes, and snippets.

@JeremyTubongbanua
Created June 29, 2024 15:00
Show Gist options
  • Save JeremyTubongbanua/a49a783ea400506d871239873224d1a8 to your computer and use it in GitHub Desktop.
Save JeremyTubongbanua/a49a783ea400506d871239873224d1a8 to your computer and use it in GitHub Desktop.
Leak Summary after establishing an SSH session with 2 fresh atSigns
==68485== Memcheck, a memory error detector
==68485== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==68485== Using Valgrind-3.18.1-42b08ed5bd-20211015 and LibVEX; rerun with -h for copyright info
==68485== Command: ./build/sshnpd -a @soccer99 -m @soccer0 -d vps -s -v
==68485== Parent PID: 67210
==68485==
--68485--
--68485-- Valgrind options:
--68485-- --leak-check=full
--68485-- --show-leak-kinds=all
--68485-- --track-origins=yes
--68485-- --verbose
--68485-- --log-file=valgrind-out.txt
--68485-- --suppressions=sshnpd1.supp
--68485-- --gen-suppressions=no
--68485-- Contents of /proc/version:
--68485-- Linux version 5.15.0-112-generic (buildd@lcy02-amd64-051) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024
--68485--
--68485-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand-rdseed
--68485-- Page sizes: currently 4096, max supported 4096
--68485-- Valgrind library directory: /usr/libexec/valgrind
--68485-- Reading syms from /jeremyvps/noports/packages/c/sshnpd/build/sshnpd
--68485-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
--68485-- Considering /usr/lib/debug/.build-id/41/86944c50f8a32b47d74931e3f512b811813b64.debug ..
--68485-- .. build-id is valid
--68485-- Reading syms from /usr/libexec/valgrind/memcheck-amd64-linux
--68485-- object doesn't have a symbol table
--68485-- object doesn't have a dynamic symbol table
--68485-- Scheduler: using generic scheduler lock implementation.
--68485-- Reading suppressions file: sshnpd1.supp
--68485-- Reading suppressions file: /usr/libexec/valgrind/default.supp
==68485== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-68485-by-jeremyvps-on-???
==68485== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-68485-by-jeremyvps-on-???
==68485== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-68485-by-jeremyvps-on-???
==68485==
==68485== TO CONTROL THIS PROCESS USING vgdb (which you probably
==68485== don't want to do, unless you know exactly what you're doing,
==68485== or are doing some strange experiment):
==68485== /usr/bin/vgdb --pid=68485 ...command...
==68485==
==68485== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==68485== /path/to/gdb ./build/sshnpd
==68485== and then give GDB the following command
==68485== target remote | /usr/bin/vgdb --pid=68485
==68485== --pid is optional if only one valgrind process is running
==68485==
--68485-- REDIR: 0x402aa40 (ld-linux-x86-64.so.2:strlen) redirected to 0x580bcec2 (???)
--68485-- REDIR: 0x402a810 (ld-linux-x86-64.so.2:index) redirected to 0x580bcedc (???)
--68485-- Reading syms from /usr/libexec/valgrind/vgpreload_core-amd64-linux.so
--68485-- object doesn't have a symbol table
--68485-- Reading syms from /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
--68485-- object doesn't have a symbol table
==68485== WARNING: new redirection conflicts with existing -- ignoring it
--68485-- old: 0x0402aa40 (strlen ) R-> (0000.0) 0x580bcec2 ???
--68485-- new: 0x0402aa40 (strlen ) R-> (2007.0) 0x0484ee30 strlen
--68485-- REDIR: 0x4027220 (ld-linux-x86-64.so.2:strcmp) redirected to 0x484fcd0 (strcmp)
--68485-- REDIR: 0x402afa0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4853840 (mempcpy)
--68485-- Reading syms from /jeremyvps/noports/packages/c/sshnpd/build/_deps/cjson-build/libcjson.so.1.7.17
--68485-- Reading syms from /usr/lib/x86_64-linux-gnu/libc.so.6
--68485-- Considering /usr/lib/debug/.build-id/49/0fef8403240c91833978d494d39e537409b92e.debug ..
--68485-- .. build-id is valid
==68485== WARNING: new redirection conflicts with existing -- ignoring it
--68485-- old: 0x04914c60 (memalign ) R-> (1011.0) 0x0484e080 memalign
--68485-- new: 0x04914c60 (memalign ) R-> (1017.0) 0x0484e050 aligned_alloc
==68485== WARNING: new redirection conflicts with existing -- ignoring it
--68485-- old: 0x04914c60 (memalign ) R-> (1011.0) 0x0484e080 memalign
--68485-- new: 0x04914c60 (memalign ) R-> (1017.0) 0x0484e020 aligned_alloc
==68485== WARNING: new redirection conflicts with existing -- ignoring it
--68485-- old: 0x04914c60 (memalign ) R-> (1011.0) 0x0484e080 memalign
--68485-- new: 0x04914c60 (memalign ) R-> (1017.0) 0x0484e050 aligned_alloc
==68485== WARNING: new redirection conflicts with existing -- ignoring it
--68485-- old: 0x04914c60 (memalign ) R-> (1011.0) 0x0484e080 memalign
--68485-- new: 0x04914c60 (memalign ) R-> (1017.0) 0x0484e020 aligned_alloc
--68485-- REDIR: 0x4917720 (libc.so.6:strnlen) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49179e0 (libc.so.6:strpbrk) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49172e0 (libc.so.6:strcmp) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4935cd0 (libc.so.6:wcsnlen) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49186d0 (libc.so.6:memset) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4934540 (libc.so.6:wcslen) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918c10 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4934370 (libc.so.6:wcschr) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4917260 (libc.so.6:index) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4917960 (libc.so.6:rindex) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49185a0 (libc.so.6:memmove) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
==68485== Preferring higher priority redirection:
--68485-- old: 0x04a0f7c0 (__memcpy_avx_unalign) R-> (2018.0) 0x04850f90 __memcpy_avx_unaligned_erms
--68485-- new: 0x04a0f7c0 (__memcpy_avx_unalign) R-> (2018.1) 0x04852880 memmove
--68485-- REDIR: 0x49343f0 (libc.so.6:wcscmp) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49189e0 (libc.so.6:stpncpy) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49349b0 (libc.so.6:wmemchr) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4917830 (libc.so.6:strncmp) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918a70 (libc.so.6:strcasecmp) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4917420 (libc.so.6:strcspn) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4934470 (libc.so.6:wcscpy) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49171d0 (libc.so.6:strcat) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918b60 (libc.so.6:strncasecmp_l) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918480 (libc.so.6:bcmp) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4920570 (libc.so.6:memrchr) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x491a010 (libc.so.6:strchrnul) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4917390 (libc.so.6:strcpy) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918b10 (libc.so.6:strcasecmp_l) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49176a0 (libc.so.6:strlen) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49178d0 (libc.so.6:strncpy) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918950 (libc.so.6:stpcpy) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49183f0 (libc.so.6:memchr) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4917b00 (libc.so.6:strspn) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x49187d0 (libc.so.6:mempcpy) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918ac0 (libc.so.6:strncasecmp) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4919f80 (libc.so.6:rawmemchr) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4918310 (libc.so.6:strstr) redirected to 0x483f220 (_vgnU_ifunc_wrapper)
--68485-- REDIR: 0x4a0c610 (libc.so.6:__strrchr_avx2) redirected to 0x484e810 (rindex)
--68485-- REDIR: 0x4a0ff80 (libc.so.6:__memset_avx2_unaligned_erms) redirected to 0x4852770 (memset)
--68485-- REDIR: 0x4a0c400 (libc.so.6:__strchrnul_avx2) redirected to 0x4853330 (strchrnul)
--68485-- REDIR: 0x4a0c7e0 (libc.so.6:__strlen_avx2) redirected to 0x484ed10 (strlen)
--68485-- REDIR: 0x4a0f7c0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x4852880 (memmove)
--68485-- REDIR: 0x49140a0 (libc.so.6:malloc) redirected to 0x4848820 (malloc)
--68485-- REDIR: 0x4a07d80 (libc.so.6:__strncmp_avx2) redirected to 0x484f3e0 (strncmp)
--68485-- REDIR: 0x4917fc0 (libc.so.6:__GI_strstr) redirected to 0x4853ae0 (__strstr_sse2)
--68485-- REDIR: 0x49143e0 (libc.so.6:free) redirected to 0x484b210 (free)
--68485-- REDIR: 0x4915520 (libc.so.6:calloc) redirected to 0x484d9d0 (calloc)
--68485-- REDIR: 0x4a08a80 (libc.so.6:__memcmp_avx2_movbe) redirected to 0x4852010 (bcmp)
--68485-- REDIR: 0x4a0c960 (libc.so.6:__strnlen_avx2) redirected to 0x484ecb0 (strnlen)
--68485-- REDIR: 0x4a0f780 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x4853440 (mempcpy)
--68485-- REDIR: 0x4933180 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4853a50 (strstr)
--68485-- REDIR: 0x4a0c180 (libc.so.6:__strchr_avx2) redirected to 0x484e9f0 (index)
--68485-- REDIR: 0x4a082c0 (libc.so.6:__memchr_avx2) redirected to 0x484fd50 (memchr)
--68485-- REDIR: 0x4a07940 (libc.so.6:__strcmp_avx2) redirected to 0x484fbd0 (strcmp)
--68485-- REDIR: 0x4a0a7b0 (libc.so.6:__strncasecmp_avx) redirected to 0x484f640 (strncasecmp)
--68485-- REDIR: 0x4a076e0 (libc.so.6:__strpbrk_sse42) redirected to 0x4853c00 (strpbrk)
--68485-- REDIR: 0x4a09130 (libc.so.6:__strcasecmp_avx) redirected to 0x484f560 (strcasecmp)
--68485-- REDIR: 0x4a07800 (libc.so.6:__strspn_sse42) redirected to 0x4853d50 (strspn)
--68485-- REDIR: 0x4a075a0 (libc.so.6:__strcspn_sse42) redirected to 0x4853c70 (strcspn)
--68485-- REDIR: 0x4914740 (libc.so.6:realloc) redirected to 0x484dc50 (realloc)
--68485-- REDIR: 0x4a0e040 (libc.so.6:__strncpy_avx2) redirected to 0x484efe0 (strncpy)
--68541-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
--68541-- object doesn't have a symbol table
--68541-- REDIR: 0x4a0e9a0 (libc.so.6:__stpcpy_avx2) redirected to 0x4852130 (stpcpy)
--68541-- Discarding syms at 0x5e9f660-0x5eb5805 in /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (have_dinfo 1)
==68541==
==68541== HEAP SUMMARY:
==68541== in use at exit: 138,278 bytes in 204 blocks
==68541== total heap usage: 21,752 allocs, 21,548 frees, 1,879,465 bytes allocated
==68541==
==68541== Searching for pointers to 204 not-freed blocks
==68541== Checked 8,610,704 bytes
==68541==
==68541== 10 bytes in 1 blocks are still reachable in loss record 1 of 55
==68541== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x11CDE3: atclient_atsign_init (atsign.c:23)
==68541== by 0x12D73D: atclient_pkam_authenticate (atclient.c:150)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 10 bytes in 1 blocks are still reachable in loss record 2 of 55
==68541== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x11CDE3: atclient_atsign_init (atsign.c:23)
==68541== by 0x12D73D: atclient_pkam_authenticate (atclient.c:150)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 32 bytes in 1 blocks are still reachable in loss record 3 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1613E7: x509_get_certificate_policies (x509_crt.c:805)
==68541== by 0x161A9E: x509_get_crt_ext (x509_crt.c:1020)
==68541== by 0x162367: x509_crt_parse_der_core (x509_crt.c:1255)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 32 bytes in 1 blocks are still reachable in loss record 4 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1613E7: x509_get_certificate_policies (x509_crt.c:805)
==68541== by 0x161A9E: x509_get_crt_ext (x509_crt.c:1020)
==68541== by 0x162367: x509_crt_parse_der_core (x509_crt.c:1255)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 32 bytes in 4 blocks are still reachable in loss record 5 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16C7FE: mbedtls_mpi_resize_clear (bignum.c:297)
==68541== by 0x16D886: mbedtls_mpi_read_binary (bignum.c:850)
==68541== by 0x1B2708: mbedtls_rsa_import_raw (rsa.c:254)
==68541== by 0x194B84: pk_get_rsapubkey (pkparse.c:808)
==68541== by 0x194EF8: mbedtls_pk_parse_subpubkey (pkparse.c:921)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541==
==68541== 48 bytes in 1 blocks are still reachable in loss record 6 of 55
==68541== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x11ED49: atclient_connection_enable_hooks (connection.c:490)
==68541== by 0x11598C: set_worker_hooks (main.c:552)
==68541== by 0x114567: main (main.c:187)
==68541==
==68541== 48 bytes in 6 blocks are still reachable in loss record 7 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16CA28: mbedtls_mpi_lset (bignum.c:389)
==68541== by 0x17DC29: mbedtls_ecp_point_read_binary (ecp.c:813)
==68541== by 0x194983: pk_get_ecpubkey (pkparse.c:751)
==68541== by 0x194F6A: mbedtls_pk_parse_subpubkey (pkparse.c:935)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541==
==68541== 59 bytes in 1 blocks are still reachable in loss record 8 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x141B21: mbedtls_ssl_set_hostname (ssl_tls.c:2971)
==68541== by 0x11DE27: atclient_connection_connect (connection.c:144)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 59 bytes in 1 blocks are still reachable in loss record 9 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x141B21: mbedtls_ssl_set_hostname (ssl_tls.c:2971)
==68541== by 0x11DE27: atclient_connection_connect (connection.c:144)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 64 bytes in 2 blocks are still reachable in loss record 10 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16A4A2: asn1_get_sequence_of_cb (asn1parse.c:318)
==68541== by 0x16A332: mbedtls_asn1_traverse_sequence_of (asn1parse.c:254)
==68541== by 0x16A585: mbedtls_asn1_get_sequence_of (asn1parse.c:345)
==68541== by 0x160E30: x509_get_ext_key_usage (x509_crt.c:566)
==68541== by 0x16199F: x509_get_crt_ext (x509_crt.c:979)
==68541== by 0x162367: x509_crt_parse_der_core (x509_crt.c:1255)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541==
==68541== 64 bytes in 8 blocks are still reachable in loss record 11 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16C7FE: mbedtls_mpi_resize_clear (bignum.c:297)
==68541== by 0x16D886: mbedtls_mpi_read_binary (bignum.c:850)
==68541== by 0x1B2708: mbedtls_rsa_import_raw (rsa.c:254)
==68541== by 0x194B84: pk_get_rsapubkey (pkparse.c:808)
==68541== by 0x194EF8: mbedtls_pk_parse_subpubkey (pkparse.c:921)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541==
==68541== 128 bytes in 4 blocks are still reachable in loss record 12 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16A4A2: asn1_get_sequence_of_cb (asn1parse.c:318)
==68541== by 0x16A332: mbedtls_asn1_traverse_sequence_of (asn1parse.c:254)
==68541== by 0x16A585: mbedtls_asn1_get_sequence_of (asn1parse.c:345)
==68541== by 0x160E30: x509_get_ext_key_usage (x509_crt.c:566)
==68541== by 0x16199F: x509_get_crt_ext (x509_crt.c:979)
==68541== by 0x162367: x509_crt_parse_der_core (x509_crt.c:1255)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541==
==68541== 152 bytes in 1 blocks are still reachable in loss record 13 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x140154: ssl_handshake_init (ssl_tls.c:1065)
==68541== by 0x140863: mbedtls_ssl_setup (ssl_tls.c:1414)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 152 bytes in 1 blocks are still reachable in loss record 14 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x140154: ssl_handshake_init (ssl_tls.c:1065)
==68541== by 0x140863: mbedtls_ssl_setup (ssl_tls.c:1414)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 160 bytes in 1 blocks are still reachable in loss record 15 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x150868: ssl_parse_new_session_ticket (ssl_tls12_client.c:3462)
==68541== by 0x150AE4: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3578)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 160 bytes in 1 blocks are still reachable in loss record 16 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x150868: ssl_parse_new_session_ticket (ssl_tls12_client.c:3462)
==68541== by 0x150AE4: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3578)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 216 bytes in 1 blocks are still reachable in loss record 17 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x18C122: mbedtls_md_setup (md.c:481)
==68541== by 0x188EBE: mbedtls_entropy_func (entropy.c:336)
==68541== by 0x177DEA: mbedtls_ctr_drbg_reseed_internal (ctr_drbg.c:352)
==68541== by 0x17809B: mbedtls_ctr_drbg_seed (ctr_drbg.c:456)
==68541== by 0x11DC33: atclient_connection_connect (connection.c:105)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 216 bytes in 1 blocks are still reachable in loss record 18 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x18C122: mbedtls_md_setup (md.c:481)
==68541== by 0x188EBE: mbedtls_entropy_func (entropy.c:336)
==68541== by 0x177DEA: mbedtls_ctr_drbg_reseed_internal (ctr_drbg.c:352)
==68541== by 0x17809B: mbedtls_ctr_drbg_seed (ctr_drbg.c:456)
==68541== by 0x11DC33: atclient_connection_connect (connection.c:105)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 256 bytes in 4 blocks are still reachable in loss record 19 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x15CC6E: mbedtls_x509_get_name (x509.c:548)
==68541== by 0x162185: x509_crt_parse_der_core (x509_crt.c:1213)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541==
==68541== 256 bytes in 6 blocks are still reachable in loss record 20 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16C7FE: mbedtls_mpi_resize_clear (bignum.c:297)
==68541== by 0x16D886: mbedtls_mpi_read_binary (bignum.c:850)
==68541== by 0x17DC07: mbedtls_ecp_point_read_binary (ecp.c:812)
==68541== by 0x194983: pk_get_ecpubkey (pkparse.c:751)
==68541== by 0x194F6A: mbedtls_pk_parse_subpubkey (pkparse.c:935)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541==
==68541== 256 bytes in 6 blocks are still reachable in loss record 21 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16C7FE: mbedtls_mpi_resize_clear (bignum.c:297)
==68541== by 0x16D886: mbedtls_mpi_read_binary (bignum.c:850)
==68541== by 0x17DC83: mbedtls_ecp_point_read_binary (ecp.c:820)
==68541== by 0x194983: pk_get_ecpubkey (pkparse.c:751)
==68541== by 0x194F6A: mbedtls_pk_parse_subpubkey (pkparse.c:935)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541==
==68541== 272 bytes in 1 blocks are possibly lost in loss record 22 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x40147D9: calloc (rtld-malloc.h:44)
==68541== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==68541== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==68541== by 0x49047B4: allocate_stack (allocatestack.c:430)
==68541== by 0x49047B4: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==68541== by 0x114A2D: main (main.c:267)
==68541==
==68541== 456 bytes in 1 blocks are still reachable in loss record 23 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x14012A: ssl_handshake_init (ssl_tls.c:1060)
==68541== by 0x140863: mbedtls_ssl_setup (ssl_tls.c:1414)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 456 bytes in 1 blocks are still reachable in loss record 24 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x14012A: ssl_handshake_init (ssl_tls.c:1060)
==68541== by 0x140863: mbedtls_ssl_setup (ssl_tls.c:1414)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 480 bytes in 2 blocks are still reachable in loss record 25 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x176DD7: chachapoly_ctx_alloc (cipher_wrap.c:1940)
==68541== by 0x1741D3: mbedtls_cipher_setup (cipher.c:254)
==68541== by 0x1490A8: ssl_tls12_populate_transform (ssl_tls.c:8469)
==68541== by 0x145C5C: mbedtls_ssl_derive_keys (ssl_tls.c:6560)
==68541== by 0x15004E: ssl_write_certificate_verify (ssl_tls12_client.c:3269)
==68541== by 0x150AA8: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3560)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541==
==68541== 480 bytes in 2 blocks are still reachable in loss record 26 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x176DD7: chachapoly_ctx_alloc (cipher_wrap.c:1940)
==68541== by 0x1741D3: mbedtls_cipher_setup (cipher.c:254)
==68541== by 0x14910C: ssl_tls12_populate_transform (ssl_tls.c:8475)
==68541== by 0x145C5C: mbedtls_ssl_derive_keys (ssl_tls.c:6560)
==68541== by 0x15004E: ssl_write_certificate_verify (ssl_tls12_client.c:3269)
==68541== by 0x150AA8: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3560)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541==
==68541== 512 bytes in 8 blocks are still reachable in loss record 27 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x15CC6E: mbedtls_x509_get_name (x509.c:548)
==68541== by 0x162044: x509_crt_parse_der_core (x509_crt.c:1183)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541==
==68541== 752 bytes in 1 blocks are still reachable in loss record 28 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1475CA: mbedtls_ssl_parse_certificate (ssl_tls.c:7550)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 752 bytes in 1 blocks are still reachable in loss record 29 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1625EF: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1336)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 752 bytes in 1 blocks are still reachable in loss record 30 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1475CA: mbedtls_ssl_parse_certificate (ssl_tls.c:7550)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 752 bytes in 1 blocks are still reachable in loss record 31 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1625EF: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1336)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 768 bytes in 3 blocks are still reachable in loss record 32 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x19345E: eckey_alloc_wrap (pk_wrap.c:1345)
==68541== by 0x192004: mbedtls_pk_setup (pk.c:142)
==68541== by 0x194EB0: mbedtls_pk_parse_subpubkey (pkparse.c:915)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 768 bytes in 3 blocks are still reachable in loss record 33 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x19345E: eckey_alloc_wrap (pk_wrap.c:1345)
==68541== by 0x192004: mbedtls_pk_setup (pk.c:142)
==68541== by 0x194EB0: mbedtls_pk_parse_subpubkey (pkparse.c:915)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 896 bytes in 14 blocks are still reachable in loss record 34 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x15CC6E: mbedtls_x509_get_name (x509.c:548)
==68541== by 0x162185: x509_crt_parse_der_core (x509_crt.c:1213)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 896 bytes in 14 blocks are still reachable in loss record 35 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x15CC6E: mbedtls_x509_get_name (x509.c:548)
==68541== by 0x162185: x509_crt_parse_der_core (x509_crt.c:1213)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 928 bytes in 4 blocks are still reachable in loss record 36 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x193236: rsa_alloc_wrap (pk_wrap.c:576)
==68541== by 0x192004: mbedtls_pk_setup (pk.c:142)
==68541== by 0x194EB0: mbedtls_pk_parse_subpubkey (pkparse.c:915)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541==
==68541== 928 bytes in 4 blocks are still reachable in loss record 37 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x193236: rsa_alloc_wrap (pk_wrap.c:576)
==68541== by 0x192004: mbedtls_pk_setup (pk.c:142)
==68541== by 0x194EB0: mbedtls_pk_parse_subpubkey (pkparse.c:915)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 928 bytes in 4 blocks are still reachable in loss record 38 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x193236: rsa_alloc_wrap (pk_wrap.c:576)
==68541== by 0x192004: mbedtls_pk_setup (pk.c:142)
==68541== by 0x194EB0: mbedtls_pk_parse_subpubkey (pkparse.c:915)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 1,024 bytes in 16 blocks are still reachable in loss record 39 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x15CC6E: mbedtls_x509_get_name (x509.c:548)
==68541== by 0x162044: x509_crt_parse_der_core (x509_crt.c:1183)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 1,024 bytes in 16 blocks are still reachable in loss record 40 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x15CC6E: mbedtls_x509_get_name (x509.c:548)
==68541== by 0x162044: x509_crt_parse_der_core (x509_crt.c:1183)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 1,056 bytes in 4 blocks are still reachable in loss record 41 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16C7FE: mbedtls_mpi_resize_clear (bignum.c:297)
==68541== by 0x16D886: mbedtls_mpi_read_binary (bignum.c:850)
==68541== by 0x1B263C: mbedtls_rsa_import_raw (rsa.c:237)
==68541== by 0x194AD8: pk_get_rsapubkey (pkparse.c:796)
==68541== by 0x194EF8: mbedtls_pk_parse_subpubkey (pkparse.c:921)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541==
==68541== 1,072 bytes in 2 blocks are still reachable in loss record 42 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16D9AA: mbedtls_mpi_shift_l (bignum.c:894)
==68541== by 0x16F916: mbedtls_mpi_exp_mod (bignum.c:1864)
==68541== by 0x1B39DE: mbedtls_rsa_public (rsa.c:889)
==68541== by 0x1B6318: mbedtls_rsa_rsassa_pkcs1_v15_verify (rsa.c:2283)
==68541== by 0x1B63F4: mbedtls_rsa_pkcs1_verify (rsa.c:2328)
==68541== by 0x192C9C: rsa_verify_wrap (pk_wrap.c:263)
==68541== by 0x192221: mbedtls_pk_verify_restartable (pk.c:457)
==68541== by 0x14EA36: ssl_parse_server_key_exchange (ssl_tls12_client.c:2425)
==68541== by 0x150A44: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3533)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541==
==68541== 3,168 bytes in 4 blocks are still reachable in loss record 43 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16D9AA: mbedtls_mpi_shift_l (bignum.c:894)
==68541== by 0x16F916: mbedtls_mpi_exp_mod (bignum.c:1864)
==68541== by 0x1B39DE: mbedtls_rsa_public (rsa.c:889)
==68541== by 0x1B6318: mbedtls_rsa_rsassa_pkcs1_v15_verify (rsa.c:2283)
==68541== by 0x1B63F4: mbedtls_rsa_pkcs1_verify (rsa.c:2328)
==68541== by 0x192C9C: rsa_verify_wrap (pk_wrap.c:263)
==68541== by 0x192221: mbedtls_pk_verify_restartable (pk.c:457)
==68541== by 0x192271: mbedtls_pk_verify (pk.c:468)
==68541== by 0x19232A: mbedtls_pk_verify_ext (pk.c:498)
==68541== by 0x1640A0: x509_crt_check_signature (x509_crt.c:2166)
==68541==
==68541== 4,160 bytes in 8 blocks are still reachable in loss record 44 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x16C5A6: mbedtls_mpi_grow (bignum.c:219)
==68541== by 0x16C7FE: mbedtls_mpi_resize_clear (bignum.c:297)
==68541== by 0x16D886: mbedtls_mpi_read_binary (bignum.c:850)
==68541== by 0x1B263C: mbedtls_rsa_import_raw (rsa.c:237)
==68541== by 0x194AD8: pk_get_rsapubkey (pkparse.c:796)
==68541== by 0x194EF8: mbedtls_pk_parse_subpubkey (pkparse.c:921)
==68541== by 0x16220A: x509_crt_parse_der_core (x509_crt.c:1224)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541==
==68541== 4,512 bytes in 6 blocks are still reachable in loss record 45 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1625EF: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1336)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 4,512 bytes in 6 blocks are still reachable in loss record 46 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1625EF: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1336)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 5,288 bytes in 4 blocks are still reachable in loss record 47 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x161CFF: x509_crt_parse_der_core (x509_crt.c:1114)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x146D15: ssl_parse_certificate_chain (ssl_tls.c:7161)
==68541== by 0x147645: mbedtls_ssl_parse_certificate (ssl_tls.c:7563)
==68541== by 0x150A30: mbedtls_ssl_handshake_client_step (ssl_tls12_client.c:3529)
==68541== by 0x1427B8: mbedtls_ssl_handshake_step (ssl_tls.c:3859)
==68541== by 0x1428D2: mbedtls_ssl_handshake (ssl_tls.c:3923)
==68541== by 0x11DEA2: atclient_connection_connect (connection.c:155)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541==
==68541== 7,416 bytes in 7 blocks are still reachable in loss record 48 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x161CFF: x509_crt_parse_der_core (x509_crt.c:1114)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 7,416 bytes in 7 blocks are still reachable in loss record 49 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x161CFF: x509_crt_parse_der_core (x509_crt.c:1114)
==68541== by 0x162666: mbedtls_x509_crt_parse_der_internal (x509_crt.c:1347)
==68541== by 0x16276D: mbedtls_x509_crt_parse_der (x509_crt.c:1384)
==68541== by 0x1628B7: mbedtls_x509_crt_parse (x509_crt.c:1467)
==68541== by 0x11DBCC: atclient_connection_connect (connection.c:95)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 8,192 bytes in 1 blocks are definitely lost in loss record 50 of 55
==68541== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x12F681: atchops_rsakey_publickey_init (rsakey.c:14)
==68541== by 0x12C613: atclient_create_shared_encryption_key_pair_for_me_and_other (encryption_key_helpers.c:301)
==68541== by 0x12B229: atclient_get_shared_encryption_key_shared_by_me (encryption_key_helpers.c:90)
==68541== by 0x12A3B1: atclient_put (atclient_put.c:130)
==68541== by 0x1162E5: refresh_device_entry (background_jobs.c:97)
==68541== by 0x4903AC2: start_thread (pthread_create.c:442)
==68541== by 0x4994A03: clone (clone.S:100)
==68541==
==68541== 8,192 bytes in 1 blocks are definitely lost in loss record 51 of 55
==68541== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x12F6A8: atchops_rsakey_publickey_init (rsakey.c:17)
==68541== by 0x12C613: atclient_create_shared_encryption_key_pair_for_me_and_other (encryption_key_helpers.c:301)
==68541== by 0x12B229: atclient_get_shared_encryption_key_shared_by_me (encryption_key_helpers.c:90)
==68541== by 0x12A3B1: atclient_put (atclient_put.c:130)
==68541== by 0x1162E5: refresh_device_entry (background_jobs.c:97)
==68541== by 0x4903AC2: start_thread (pthread_create.c:442)
==68541== by 0x4994A03: clone (clone.S:100)
==68541==
==68541== 16,765 bytes in 1 blocks are still reachable in loss record 52 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x140789: mbedtls_ssl_setup (ssl_tls.c:1391)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 16,765 bytes in 1 blocks are still reachable in loss record 53 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1407F4: mbedtls_ssl_setup (ssl_tls.c:1401)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x1144C3: main (main.c:171)
==68541==
==68541== 16,765 bytes in 1 blocks are still reachable in loss record 54 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x140789: mbedtls_ssl_setup (ssl_tls.c:1391)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== 16,765 bytes in 1 blocks are still reachable in loss record 55 of 55
==68541== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68541== by 0x1407F4: mbedtls_ssl_setup (ssl_tls.c:1401)
==68541== by 0x11DDD7: atclient_connection_connect (connection.c:138)
==68541== by 0x12DB17: atclient_start_atserver_connection (atclient.c:244)
==68541== by 0x12D2D5: atclient_pkam_authenticate (atclient.c:85)
==68541== by 0x114533: main (main.c:180)
==68541==
==68541== LEAK SUMMARY:
==68541== definitely lost: 16,384 bytes in 2 blocks
==68541== indirectly lost: 0 bytes in 0 blocks
==68541== possibly lost: 272 bytes in 1 blocks
==68541== still reachable: 121,622 bytes in 201 blocks
==68541== suppressed: 0 bytes in 0 blocks
==68541==
==68541== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
--68485-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
--68485-- object doesn't have a symbol table
--68485-- Discarding syms at 0x569e660-0x56b4805 in /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (have_dinfo 1)
==68485==
==68485== HEAP SUMMARY:
==68485== in use at exit: 16,384 bytes in 2 blocks
==68485== total heap usage: 22,113 allocs, 22,111 frees, 2,003,125 bytes allocated
==68485==
==68485== Searching for pointers to 2 not-freed blocks
==68485== Checked 126,272 bytes
==68485==
==68485== 8,192 bytes in 1 blocks are definitely lost in loss record 1 of 2
==68485== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68485== by 0x12F681: atchops_rsakey_publickey_init (rsakey.c:14)
==68485== by 0x12C613: atclient_create_shared_encryption_key_pair_for_me_and_other (encryption_key_helpers.c:301)
==68485== by 0x12B229: atclient_get_shared_encryption_key_shared_by_me (encryption_key_helpers.c:90)
==68485== by 0x12A3B1: atclient_put (atclient_put.c:130)
==68485== by 0x1162E5: refresh_device_entry (background_jobs.c:97)
==68485== by 0x4903AC2: start_thread (pthread_create.c:442)
==68485== by 0x4994A03: clone (clone.S:100)
==68485==
==68485== 8,192 bytes in 1 blocks are definitely lost in loss record 2 of 2
==68485== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==68485== by 0x12F6A8: atchops_rsakey_publickey_init (rsakey.c:17)
==68485== by 0x12C613: atclient_create_shared_encryption_key_pair_for_me_and_other (encryption_key_helpers.c:301)
==68485== by 0x12B229: atclient_get_shared_encryption_key_shared_by_me (encryption_key_helpers.c:90)
==68485== by 0x12A3B1: atclient_put (atclient_put.c:130)
==68485== by 0x1162E5: refresh_device_entry (background_jobs.c:97)
==68485== by 0x4903AC2: start_thread (pthread_create.c:442)
==68485== by 0x4994A03: clone (clone.S:100)
==68485==
==68485== LEAK SUMMARY:
==68485== definitely lost: 16,384 bytes in 2 blocks
==68485== indirectly lost: 0 bytes in 0 blocks
==68485== possibly lost: 0 bytes in 0 blocks
==68485== still reachable: 0 bytes in 0 blocks
==68485== suppressed: 0 bytes in 0 blocks
==68485==
==68485== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment