leshe4ka revised this gist . Go to revision
1 file changed, 112 insertions
gistfile1.txt(file created)
| @@ -0,0 +1,112 @@ | |||
| 1 | + | ❯ valgrind --leak-check=full ./build/dlopen_test | |
| 2 | + | ==297546== Memcheck, a memory error detector | |
| 3 | + | ==297546== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. | |
| 4 | + | ==297546== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info | |
| 5 | + | ==297546== Command: ./build/dlopen_test | |
| 6 | + | ==297546== | |
| 7 | + | ==297546== | |
| 8 | + | ==297546== HEAP SUMMARY: | |
| 9 | + | ==297546== in use at exit: 24,807 bytes in 29 blocks | |
| 10 | + | ==297546== total heap usage: 342 allocs, 313 frees, 242,640 bytes allocated | |
| 11 | + | ==297546== | |
| 12 | + | ==297546== 8 bytes in 1 blocks are definitely lost in loss record 1 of 15 | |
| 13 | + | ==297546== at 0x48447A8: malloc (vg_replace_malloc.c:446) | |
| 14 | + | ==297546== by 0x9889A35: ??? | |
| 15 | + | ==297546== by 0x98A088F: ??? | |
| 16 | + | ==297546== by 0x98881BB: ??? | |
| 17 | + | ==297546== by 0x40045B6: call_init (dl-init.c:74) | |
| 18 | + | ==297546== by 0x40045B6: call_init (dl-init.c:26) | |
| 19 | + | ==297546== by 0x40046AC: _dl_init (dl-init.c:121) | |
| 20 | + | ==297546== by 0x40015C1: _dl_catch_exception (dl-catch.c:215) | |
| 21 | + | ==297546== by 0x400B4FB: dl_open_worker (dl-open.c:829) | |
| 22 | + | ==297546== by 0x4001522: _dl_catch_exception (dl-catch.c:241) | |
| 23 | + | ==297546== by 0x400B903: _dl_open (dl-open.c:905) | |
| 24 | + | ==297546== by 0x4C92F13: dlopen_doit (dlopen.c:56) | |
| 25 | + | ==297546== by 0x4001522: _dl_catch_exception (dl-catch.c:241) | |
| 26 | + | ==297546== | |
| 27 | + | ==297546== 96 bytes in 1 blocks are definitely lost in loss record 10 of 15 | |
| 28 | + | ==297546== at 0x484BC13: calloc (vg_replace_malloc.c:1675) | |
| 29 | + | ==297546== by 0x9889A6D: ??? | |
| 30 | + | ==297546== by 0x9888100: ??? | |
| 31 | + | ==297546== by 0x98881D7: ??? | |
| 32 | + | ==297546== by 0x40045B6: call_init (dl-init.c:74) | |
| 33 | + | ==297546== by 0x40045B6: call_init (dl-init.c:26) | |
| 34 | + | ==297546== by 0x40046AC: _dl_init (dl-init.c:121) | |
| 35 | + | ==297546== by 0x40015C1: _dl_catch_exception (dl-catch.c:215) | |
| 36 | + | ==297546== by 0x400B4FB: dl_open_worker (dl-open.c:829) | |
| 37 | + | ==297546== by 0x4001522: _dl_catch_exception (dl-catch.c:241) | |
| 38 | + | ==297546== by 0x400B903: _dl_open (dl-open.c:905) | |
| 39 | + | ==297546== by 0x4C92F13: dlopen_doit (dlopen.c:56) | |
| 40 | + | ==297546== by 0x4001522: _dl_catch_exception (dl-catch.c:241) | |
| 41 | + | ==297546== | |
| 42 | + | ==297546== LEAK SUMMARY: | |
| 43 | + | ==297546== definitely lost: 104 bytes in 2 blocks | |
| 44 | + | ==297546== indirectly lost: 0 bytes in 0 blocks | |
| 45 | + | ==297546== possibly lost: 0 bytes in 0 blocks | |
| 46 | + | ==297546== still reachable: 24,703 bytes in 27 blocks | |
| 47 | + | ==297546== suppressed: 0 bytes in 0 blocks | |
| 48 | + | ==297546== Reachable blocks (those to which a pointer was found) are not shown. | |
| 49 | + | ==297546== To see them, rerun with: --leak-check=full --show-leak-kinds=all | |
| 50 | + | ==297546== | |
| 51 | + | ==297546== For lists of detected and suppressed errors, rerun with: -s | |
| 52 | + | ==297546== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) | |
| 53 | + | ❯ valgrind --leak-check=full /usr/bin/ldd ./build/dlopen_test | |
| 54 | + | ==297699== Memcheck, a memory error detector | |
| 55 | + | ==297699== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. | |
| 56 | + | ==297699== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info | |
| 57 | + | ==297699== Command: /usr/bin/ldd ./build/dlopen_test | |
| 58 | + | ==297699== | |
| 59 | + | ==298328== | |
| 60 | + | ==298328== HEAP SUMMARY: | |
| 61 | + | ==298328== in use at exit: 87,904 bytes in 1,671 blocks | |
| 62 | + | ==298328== total heap usage: 6,244 allocs, 4,573 frees, 337,273 bytes allocated | |
| 63 | + | ==298328== | |
| 64 | + | ==298328== LEAK SUMMARY: | |
| 65 | + | ==298328== definitely lost: 0 bytes in 0 blocks | |
| 66 | + | ==298328== indirectly lost: 0 bytes in 0 blocks | |
| 67 | + | ==298328== possibly lost: 0 bytes in 0 blocks | |
| 68 | + | ==298328== still reachable: 87,904 bytes in 1,671 blocks | |
| 69 | + | ==298328== suppressed: 0 bytes in 0 blocks | |
| 70 | + | ==298328== Reachable blocks (those to which a pointer was found) are not shown. | |
| 71 | + | ==298328== To see them, rerun with: --leak-check=full --show-leak-kinds=all | |
| 72 | + | ==298328== | |
| 73 | + | ==298328== For lists of detected and suppressed errors, rerun with: -s | |
| 74 | + | ==298328== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) | |
| 75 | + | linux-vdso.so.1 (0x00007702745f1000) | |
| 76 | + | libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000770274200000) | |
| 77 | + | libm.so.6 => /usr/lib/libm.so.6 (0x00007702744b5000) | |
| 78 | + | libgcc_s.so.1 => ./libgcc_s.so.1 (0x0000770273e00000) | |
| 79 | + | libc.so.6 => /usr/lib/libc.so.6 (0x0000770273c0f000) | |
| 80 | + | /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007702745f3000) | |
| 81 | + | ==298327== | |
| 82 | + | ==298327== HEAP SUMMARY: | |
| 83 | + | ==298327== in use at exit: 85,297 bytes in 1,576 blocks | |
| 84 | + | ==298327== total heap usage: 5,847 allocs, 4,271 frees, 324,860 bytes allocated | |
| 85 | + | ==298327== | |
| 86 | + | ==298327== LEAK SUMMARY: | |
| 87 | + | ==298327== definitely lost: 0 bytes in 0 blocks | |
| 88 | + | ==298327== indirectly lost: 0 bytes in 0 blocks | |
| 89 | + | ==298327== possibly lost: 0 bytes in 0 blocks | |
| 90 | + | ==298327== still reachable: 85,297 bytes in 1,576 blocks | |
| 91 | + | ==298327== suppressed: 0 bytes in 0 blocks | |
| 92 | + | ==298327== Reachable blocks (those to which a pointer was found) are not shown. | |
| 93 | + | ==298327== To see them, rerun with: --leak-check=full --show-leak-kinds=all | |
| 94 | + | ==298327== | |
| 95 | + | ==298327== For lists of detected and suppressed errors, rerun with: -s | |
| 96 | + | ==298327== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) | |
| 97 | + | ==297699== | |
| 98 | + | ==297699== HEAP SUMMARY: | |
| 99 | + | ==297699== in use at exit: 83,306 bytes in 1,295 blocks | |
| 100 | + | ==297699== total heap usage: 5,709 allocs, 4,414 frees, 307,885 bytes allocated | |
| 101 | + | ==297699== | |
| 102 | + | ==297699== LEAK SUMMARY: | |
| 103 | + | ==297699== definitely lost: 0 bytes in 0 blocks | |
| 104 | + | ==297699== indirectly lost: 0 bytes in 0 blocks | |
| 105 | + | ==297699== possibly lost: 0 bytes in 0 blocks | |
| 106 | + | ==297699== still reachable: 83,306 bytes in 1,295 blocks | |
| 107 | + | ==297699== suppressed: 0 bytes in 0 blocks | |
| 108 | + | ==297699== Reachable blocks (those to which a pointer was found) are not shown. | |
| 109 | + | ==297699== To see them, rerun with: --leak-check=full --show-leak-kinds=all | |
| 110 | + | ==297699== | |
| 111 | + | ==297699== For lists of detected and suppressed errors, rerun with: -s | |
| 112 | + | ==297699== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) | |
Newer
Older