|
2025-06-20
| ||
| 16:29 | • Closed ticket [c587295271]: Valgrind shows small memory leak after TIP 720 merge... artifact: 3aa544ca34 user: apnadkarni | |
| 16:05 | • Ticket [c587295271]: 3 changes artifact: 21ca5d2bee user: dkf | |
| 16:04 | • Pending ticket [c587295271]. artifact: fedf634859 user: dkf | |
| 16:03 | • Ticket [c587295271]: 3 changes artifact: fdfdf224bb user: dkf | |
| 15:51 | Clean up aux data correctly on failed compile [c587295271] check-in: 4561d57d8d user: dkf tags: trunk, main | |
| 15:41 | • Ticket [c587295271] Valgrind shows small memory leak after TIP 720 merge sta... artifact: 29cad39568 user: dkf | |
| 15:36 | • Ticket [c587295271]: 3 changes artifact: 76067d491c user: dkf | |
| 15:09 | • Ticket [c587295271]: 3 changes artifact: 280c54244d user: dkf | |
|
2025-06-19
| ||
| 16:16 | • Ticket [c587295271]: 3 changes artifact: 4ebbfe20a8 user: apnadkarni | |
| 16:14 | Partial fix for [c587295271] memory leak in TclCompileTryCmd check-in: 25c6c7365f user: apnadkarni tags: trunk, main | |
|
2025-06-18
| ||
| 16:05 | • Ticket [c587295271] Valgrind shows small memory leak after TIP 720 merge sta... artifact: 18b7aa4e6e user: apnadkarni | |
| 14:27 | • Ticket [c587295271]: 3 changes artifact: a4b6a66582 user: jan.nijtmans | |
|
2025-05-27
| ||
| 03:29 | • Ticket [c587295271]: 4 changes artifact: 6ef28da950 user: apnadkarni | |
|
2025-05-26
| ||
| 16:54 | • Ticket [c587295271]: 3 changes artifact: a0a600921b user: apnadkarni | |
| 16:47 | Proposed fix for [c587295271] - memory leak in TclCompileTryCmd closed check-in: f47e0fa249 user: apnadkarni tags: mistake | |
|
2025-05-25
| ||
| 17:07 | • Ticket [c587295271] Valgrind shows small memory leak after TIP 720 merge sta... artifact: 8cb69f7ff7 user: apnadkarni | |
| 16:31 | • Ticket [c587295271]: 3 changes artifact: 314ac89d24 user: apnadkarni | |
| 15:27 | • Ticket [c587295271]: 3 changes artifact: ddd9926b2a user: apnadkarni | |
| 15:24 | • New ticket [c587295271]. artifact: 0cd4c16896 user: apnadkarni | |
Valgrind shows small memory leak after TIP 720 merge
Valgrind shows attached memory leak with post merge of TIP 720. Log is attached. No leak shown prior to the merge. I think this is a fairly recent change with the tip 720 branch as it did not show on earlier checks.
4561d57d8dClean up aux data correctly on failed compile [c587295271] check-in2025-06-20 15:51:5325c6c7365fPartial fix for [c587295271] memory leak in TclCompileTryCmd check-in2025-06-19 16:14:57f47e0fa249Proposed fix for [c587295271] - memory leak in TclCompileTryCmd check-in2025-05-26 16:47:19
==140130== Memcheck, a memory error detector ==140130== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==140130== Using Valgrind-3.25.0-0b55712730-20250425 and LibVEX; rerun with -h for copyright info ==140130== Command: ./tcltest /home/apn/src/trunk/tcl/tests/all.tcl -singleproc 1 -constraints valgrind ==140130== --140130-- Valgrind options: --140130-- --tool=memcheck --140130-- --num-callers=24 --140130-- --leak-resolution=high --140130-- --leak-check=yes --140130-- --show-reachable=yes --140130-- -v --140130-- --keep-debuginfo=yes --140130-- --suppressions=/home/apn/src/trunk/tcl/tools/valgrind_suppress --140130-- Contents of /proc/version: --140130-- Linux version 6.14.5-300.fc42.x86_64 (mockbuild@15aac3d173eb4003ace5b1dbc26de526) (gcc (GCC) 15.1.1 20250425 (Red Hat 15.1.1-1), GNU ld version 2.44-3.fc42) #1 SMP PREEMPT_DYNAMIC Fri May 2 14:16:46 UTC 2025 --140130-- --140130-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand-rdseed-fma --140130-- Page sizes: currently 4096, max supported 4096 --140130-- Valgrind library directory: /usr/libexec/valgrind --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/tcltest --140130-- Reading syms from /usr/lib64/ld-linux-x86-64.so.2 --140130-- Warning: cross-CU LIMITATION: some inlined fn names --140130-- might be shown as UnknownInlinedFun --140130-- Reading syms from /usr/libexec/valgrind/memcheck-amd64-linux --140130-- object doesn't have a dynamic symbol table --140130-- Scheduler: using generic scheduler lock implementation. --140130-- Reading suppressions file: /home/apn/src/trunk/tcl/tools/valgrind_suppress --140130-- Reading suppressions file: /usr/libexec/valgrind/default.supp ==140130== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-140130-by-apn-on-tcltk.wu.ac.at ==140130== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-140130-by-apn-on-tcltk.wu.ac.at ==140130== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-140130-by-apn-on-tcltk.wu.ac.at ==140130== ==140130== TO CONTROL THIS PROCESS USING vgdb (which you probably ==140130== don't want to do, unless you know exactly what you're doing, ==140130== or are doing some strange experiment): ==140130== /usr/libexec/valgrind/../../bin/vgdb --pid=140130 ...command... ==140130== ==140130== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==140130== /path/to/gdb ./tcltest ==140130== and then give GDB the following command ==140130== target remote | /usr/libexec/valgrind/../../bin/vgdb --pid=140130 ==140130== --pid is optional if only one valgrind process is running ==140130== ==140130== Downloading debug info for /usr/libexec/valgrind/memcheck-amd64-linux... --140130-- Considering /home/apn/.cache/debuginfod_client/7e12d15647149bf73dd5ffbf49b864f2b6829427/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/libexec/valgrind/memcheck-amd64-linux ==140130== Downloading debug info for /home/apn/.cache/debuginfod_client/7e12d15647149bf73dd5ffbf49b864f2b6829427/debuginfo... --140130-- Considering /home/apn/.cache/debuginfod_client/e25cfc467ffde64b3451d162871d042abc7bc825/debuginfo .. --140130-- .. build-id is valid ==140130== Successfully downloaded debug file for /home/apn/.cache/debuginfod_client/7e12d15647149bf73dd5ffbf49b864f2b6829427/debuginfo --140130-- REDIR: 0x40267a0 (ld-linux-x86-64.so.2:strlen) redirected to 0x5823e27d (vgPlain_amd64_linux_REDIR_FOR_strlen) --140130-- REDIR: 0x4025160 (ld-linux-x86-64.so.2:strcmp) redirected to 0x5823e297 (vgPlain_amd64_linux_REDIR_FOR_strcmp) --140130-- REDIR: 0x4024f30 (ld-linux-x86-64.so.2:index) redirected to 0x5823e2d0 (vgPlain_amd64_linux_REDIR_FOR_index) --140130-- REDIR: 0x40242c0 (ld-linux-x86-64.so.2:bcmp) redirected to 0x5823e2b2 (vgPlain_amd64_linux_REDIR_FOR_memcmp) --140130-- Reading syms from /usr/libexec/valgrind/vgpreload_core-amd64-linux.so --140130-- Reading syms from /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so ==140130== WARNING: new redirection conflicts with existing -- ignoring it --140130-- old: 0x04025160 (strcmp ) R-> (0000.0) 0x5823e297 vgPlain_amd64_linux_REDIR_FOR_strcmp --140130-- new: 0x04025160 (strcmp ) R-> (2016.0) 0x04849970 strcmp ==140130== WARNING: new redirection conflicts with existing -- ignoring it --140130-- old: 0x040267a0 (strlen ) R-> (0000.0) 0x5823e27d vgPlain_amd64_linux_REDIR_FOR_strlen --140130-- new: 0x040267a0 (strlen ) R-> (2007.0) 0x04848540 strlen --140130-- REDIR: 0x4024590 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x484e100 (mempcpy) --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/libtcl9.1.so --140130-- Reading syms from /usr/lib64/libz.so.1.3.1.zlib-ng --140130-- Reading syms from /usr/lib64/libm.so.6 --140130-- Reading syms from /usr/lib64/libtommath.so.1.3.1 --140130-- Reading syms from /usr/lib64/libc.so.6 ==140130== Downloading debug info for /usr/lib64/libc.so.6... --140130-- Considering /home/apn/.cache/debuginfod_client/2b3c02fe7e4d3811767175b6f323692a10a4e116/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/lib64/libc.so.6 --140130-- REDIR: 0x4026940 (ld-linux-x86-64.so.2:strncmp) redirected to 0x4849110 (strncmp) --140130-- REDIR: 0x4c6ab00 (libc.so.6:strnlen) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6ab80 (libc.so.6:strpbrk) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c68bc0 (libc.so.6:strcmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7fd30 (libc.so.6:wcsnlen) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67c20 (libc.so.6:memset) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7f3f0 (libc.so.6:wcslen) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4ce0d80 (libc.so.6:__memcpy_chk) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67ba0 (libc.so.6:memrchr) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7fcc0 (libc.so.6:wcsncpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c670b0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7e220 (libc.so.6:wcschr) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c68ac0 (libc.so.6:index) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6abb0 (libc.so.6:rindex) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7e2c0 (libc.so.6:wcscmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67e70 (libc.so.6:stpncpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c8bde0 (libc.so.6:wmemchr) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6a9a0 (libc.so.6:strncmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67ed0 (libc.so.6:strcasecmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c69ca0 (libc.so.6:strcspn) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7f1d0 (libc.so.6:wcscpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c68a50 (libc.so.6:strcat) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6a8a0 (libc.so.6:strncasecmp_l) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c68b40 (libc.so.6:strchrnul) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c66fc0 (libc.so.6:bcmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c69c30 (libc.so.6:strcpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67f70 (libc.so.6:strcasecmp_l) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6a780 (libc.so.6:strlen) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6aa40 (libc.so.6:strncpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c8be60 (libc.so.6:wmemcmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4ce0e90 (libc.so.6:__memmove_chk) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) ==140130== WARNING: new redirection conflicts with existing -- ignoring it --140130-- old: 0x04d27410 (__memcpy_chk_avx_una) R-> (2030.0) 0x0484e210 __memcpy_chk --140130-- new: 0x04d27410 (__memcpy_chk_avx_una) R-> (2024.0) 0x0484dae0 __memmove_chk --140130-- REDIR: 0x4c67e00 (libc.so.6:stpcpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67980 (libc.so.6:memmove) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) ==140130== Preferring higher priority redirection: --140130-- old: 0x04d27440 (__memcpy_avx_unalign) R-> (2018.0) 0x0484b020 __memcpy_avx_unaligned_erms --140130-- new: 0x04d27440 (__memcpy_avx_unalign) R-> (2018.1) 0x0484cdb0 memmove --140130-- REDIR: 0x4c66f40 (libc.so.6:memchr) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6adb0 (libc.so.6:strspn) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7de30 (libc.so.6:wcpncpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c67a90 (libc.so.6:mempcpy) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c6a800 (libc.so.6:strncasecmp) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4d2c070 (libc.so.6:__strrchr_avx2) redirected to 0x4847ca0 (rindex) --140130-- REDIR: 0x4c62d50 (libc.so.6:malloc) redirected to 0x483eab0 (malloc) --140130-- REDIR: 0x4d29a10 (libc.so.6:__strcmp_avx2) redirected to 0x48497f0 (strcmp) --140130-- REDIR: 0x4d2a1c0 (libc.so.6:__strlen_avx2) redirected to 0x4848420 (strlen) --140130-- REDIR: 0x4d2b2a0 (libc.so.6:__strncmp_avx2) redirected to 0x4848ee0 (strncmp) --140130-- REDIR: 0x4d26a40 (libc.so.6:__memchr_avx2) redirected to 0x4849a30 (memchr) --140130-- REDIR: 0x4d295e0 (libc.so.6:__strchr_avx2) redirected to 0x4847f20 (index) --140130-- REDIR: 0x4d29820 (libc.so.6:__strchrnul_avx2) redirected to 0x484db80 (strchrnul) --140130-- REDIR: 0x4d27400 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x484dcc0 (mempcpy) --140130-- REDIR: 0x4d27440 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x484cdb0 (memmove) --140130-- REDIR: 0x4c634a0 (libc.so.6:free) redirected to 0x4841dd1 (free) --140130-- REDIR: 0x4d27410 (libc.so.6:__memcpy_chk_avx_unaligned_erms) redirected to 0x484e210 (__memcpy_chk) --140130-- REDIR: 0x4d28150 (libc.so.6:__stpcpy_avx2) redirected to 0x484c4e0 (stpcpy) --140130-- REDIR: 0x4c64030 (libc.so.6:calloc) redirected to 0x4846369 (calloc) ==140130== Downloading debug info for /usr/lib64/libtommath.so.1.3.1... --140130-- Considering /home/apn/.cache/debuginfod_client/591018b3f037d771eaf03b3131556cb56efcc3a0/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/lib64/libtommath.so.1.3.1 --140130-- REDIR: 0x4d27e40 (libc.so.6:__memset_avx2_unaligned_erms) redirected to 0x484cc80 (memset) --140130-- REDIR: 0x4d29f70 (libc.so.6:__strcpy_avx2) redirected to 0x4848570 (strcpy) --140130-- REDIR: 0x4c63830 (libc.so.6:realloc) redirected to 0x4846583 (realloc) --140130-- REDIR: 0x4d26ce0 (libc.so.6:__memcmp_avx2_movbe) redirected to 0x484c3a0 (bcmp) --140130-- REDIR: 0x4c6b6b0 (libc.so.6:strstr) redirected to 0x483a4ba (_vgnU_ifunc_wrapper) --140130-- REDIR: 0x4c7b7e0 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x484e280 (strstr) --140130-- REDIR: 0x4d2a340 (libc.so.6:__strncasecmp_avx2) redirected to 0x4849260 (strncasecmp) --140130-- REDIR: 0x4d49840 (libc.so.6:__strpbrk_sse42) redirected to 0x484e400 (strpbrk) --140130-- REDIR: 0x4c63f20 (libc.so.6:aligned_alloc) redirected to 0x4847493 (aligned_alloc) ==140130== Downloading debug info for /usr/lib64/libz.so.1.3.1.zlib-ng... --140130-- Considering /home/apn/.cache/debuginfod_client/e55fa60a32d4cfbd0685f1fda06842deb272e005/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/lib64/libz.so.1.3.1.zlib-ng ==140130== Downloading debug info for /home/apn/.cache/debuginfod_client/e55fa60a32d4cfbd0685f1fda06842deb272e005/debuginfo... --140130-- Considering /home/apn/.cache/debuginfod_client/5779d7f04958c50e093c9d757efdf63520b72a7c/debuginfo .. --140130-- .. build-id is valid ==140130== Successfully downloaded debug file for /home/apn/.cache/debuginfod_client/e55fa60a32d4cfbd0685f1fda06842deb272e005/debuginfo --140130-- REDIR: 0x4d49970 (libc.so.6:__strspn_sse42) redirected to 0x484e560 (strspn) --140130-- REDIR: 0x4d2b900 (libc.so.6:__strncpy_avx2) redirected to 0x4848730 (strncpy) ==140130== Warning: set address range perms: large range [0x59ce2042, 0xd9ce2041) (undefined) ==140130== Warning: set address range perms: large range [0xd9ce3040, 0x159ce3050) (undefined) ==140130== Warning: set address range perms: large range [0x59ce2028, 0xd9ce2059) (noaccess) ==140130== Warning: set address range perms: large range [0xd9ce3028, 0x159ce3068) (noaccess) --140197-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140220-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140221-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140222-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140223-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140224-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140225-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140226-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140227-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140228-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140229-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140130-- REDIR: 0x4d288c0 (libc.so.6:__strcasecmp_avx2) redirected to 0x4849180 (strcasecmp) --140253-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140130-- REDIR: 0x4d288d0 (libc.so.6:__strcasecmp_l_avx2) redirected to 0x4849400 (strcasecmp_l) --140255-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140257-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140258-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140260-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140293-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140294-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140427-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140430-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140431-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140130-- Reading syms from /usr/lib64/libnss_systemd.so.2 --140130-- Reading syms from /usr/lib64/libcap.so.2.73 --140130-- Reading syms from /usr/lib64/libgcc_s-15-20250425.so.1 ==140130== Downloading debug info for /usr/lib64/libnss_systemd.so.2... --140130-- Considering /home/apn/.cache/debuginfod_client/20921ecd09d4bca0ed2e2f8dfc652cb3a0495201/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/lib64/libnss_systemd.so.2 ==140130== Downloading debug info for /home/apn/.cache/debuginfod_client/20921ecd09d4bca0ed2e2f8dfc652cb3a0495201/debuginfo... --140130-- Considering /home/apn/.cache/debuginfod_client/7899e9f1a5f052cd7efc84aefbcd566dcf6ef80c/debuginfo .. --140130-- .. build-id is valid ==140130== Successfully downloaded debug file for /home/apn/.cache/debuginfod_client/20921ecd09d4bca0ed2e2f8dfc652cb3a0495201/debuginfo --140130-- REDIR: 0x4c64810 (libc.so.6:malloc_usable_size) redirected to 0x4847770 (malloc_usable_size) --140130-- REDIR: 0x4d2bda0 (libc.so.6:__strnlen_avx2) redirected to 0x48483c0 (strnlen) --140130-- REDIR: 0x4c65400 (libc.so.6:reallocarray) redirected to 0x484682e (reallocarray) --140130-- Reading syms from /usr/lib64/libnss_myhostname.so.2 ==140130== Downloading debug info for /usr/lib64/libnss_myhostname.so.2... --140130-- Considering /home/apn/.cache/debuginfod_client/ea601b8713e456a7b36b7db1d23fa288ea5027bf/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/lib64/libnss_myhostname.so.2 ==140130== Downloading debug info for /home/apn/.cache/debuginfod_client/ea601b8713e456a7b36b7db1d23fa288ea5027bf/debuginfo... --140130-- Considering /home/apn/.cache/debuginfod_client/7899e9f1a5f052cd7efc84aefbcd566dcf6ef80c/debuginfo .. --140130-- .. build-id is valid ==140130== Successfully downloaded debug file for /home/apn/.cache/debuginfod_client/ea601b8713e456a7b36b7db1d23fa288ea5027bf/debuginfo --140130-- Reading syms from /usr/lib64/libnss_resolve.so.2 ==140130== Downloading debug info for /usr/lib64/libnss_resolve.so.2... --140130-- Considering /home/apn/.cache/debuginfod_client/8d72e4362b111c0fc6a95b313c0a885809c18f12/debuginfo .. --140130-- .. CRC is valid ==140130== Successfully downloaded debug file for /usr/lib64/libnss_resolve.so.2 ==140130== Downloading debug info for /home/apn/.cache/debuginfod_client/8d72e4362b111c0fc6a95b313c0a885809c18f12/debuginfo... --140130-- Considering /home/apn/.cache/debuginfod_client/7899e9f1a5f052cd7efc84aefbcd566dcf6ef80c/debuginfo .. --140130-- .. build-id is valid ==140130== Successfully downloaded debug file for /home/apn/.cache/debuginfod_client/8d72e4362b111c0fc6a95b313c0a885809c18f12/debuginfo --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkga.so --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgb.so --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgc.so --140130-- Archiving syms at 0x4aa62e0-0x4aa6a7a in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgc.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 289,728 ExeContexts, archived 0 ExeContexts --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkge.so --140130-- Reading syms from /tmp/tcl_1PaqIv ==140130== warning: connection to image /tmp/tcl_1PaqIv failed ==140130== no debug info loaded --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgooa.so --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so --140130-- Archiving syms at 0x17c8f300-0x17c8feeb in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 411,643 ExeContexts, archived 86 ExeContexts --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so --140130-- Archiving syms at 0x17c8f300-0x17c8feeb in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 411,746 ExeContexts, archived 94 ExeContexts --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so --140130-- Archiving syms at 0x17c8f300-0x17c8feeb in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 411,905 ExeContexts, archived 86 ExeContexts --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so --140130-- Archiving syms at 0x17c8f300-0x17c8feeb in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 411,998 ExeContexts, archived 93 ExeContexts --140130-- Reading syms from /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so --140130-- Archiving syms at 0x17c8f300-0x17c8feeb in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgua.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 412,174 ExeContexts, archived 165 ExeContexts --140130-- Reading syms from /tmp/tcl_78mnMW ==140130== warning: connection to image /tmp/tcl_78mnMW failed ==140130== no debug info loaded --140130-- Archiving syms at 0x17c8f300-0x17c8feeb in /tmp/tcl_78mnMW (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 412,269 ExeContexts, archived 86 ExeContexts --140130-- Archiving syms at 0x17c8b2e0-0x17c8bb37 in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgooa.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 435,135 ExeContexts, archived 52 ExeContexts --140130-- Archiving syms at 0x4aaa2e0-0x4aaaa7a in /tmp/tcl_1PaqIv (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 435,141 ExeContexts, archived 35 ExeContexts --140130-- Archiving syms at 0x4aa62e0-0x4aa67e7 in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkge.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 435,141 ExeContexts, archived 249 ExeContexts --140130-- Archiving syms at 0x4aa22e0-0x4aa2c4c in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkgb.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 435,141 ExeContexts, archived 72 ExeContexts --140130-- Archiving syms at 0x4a9e2e0-0x4a9ea65 in /data/home/apn/src/trunk/tcl/unix/build/dltest/tcl9pkga.so (have_dinfo 1) --140130-- Scanning and archiving ExeContexts ... --140130-- Scanned 435,141 ExeContexts, archived 41 ExeContexts --140130-- REDIR: 0x4d46c40 (libc.so.6:__strcspn_sse42) redirected to 0x484e460 (strcspn) ==140130== ==140130== HEAP SUMMARY: ==140130== in use at exit: 10,973 bytes in 55 blocks ==140130== total heap usage: 173,649,189 allocs, 173,649,134 frees, 25,320,450,236 bytes allocated ==140130== ==140130== Searching for pointers to 55 not-freed blocks ==140130== Checked 148,872 bytes ==140130== ==140130== 4 bytes in 1 blocks are indirectly lost in loss record 1 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x497F753: Tcl_InitStringRep (tclObj.c:1749) ==140130== by 0x49711AC: SetListFromAny (tclListObj.c:3426) ==140130== by 0x496C4D0: TclListObjGetRep (tclListObj.c:1264) ==140130== by 0x496DD1D: Tcl_ListObjLength (tclListObj.c:2033) ==140130== by 0x48D935D: TclCompileTryCmd (tclCompCmdsSZ.c:2880) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x489FFF2: TclNRCatchObjCmd (tclCmdAH.c:195) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 16 bytes in 4 blocks are indirectly lost in loss record 3 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x497F753: Tcl_InitStringRep (tclObj.c:1749) ==140130== by 0x49711AC: SetListFromAny (tclListObj.c:3426) ==140130== by 0x496C4D0: TclListObjGetRep (tclListObj.c:1264) ==140130== by 0x496DD1D: Tcl_ListObjLength (tclListObj.c:2033) ==140130== by 0x48D935D: TclCompileTryCmd (tclCompCmdsSZ.c:2880) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E9E25: TclCompileCmdWord (tclCompile.c:2929) ==140130== by 0x48C2078: TclCompileCatchCmd (tclCompCmds.c:662) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x4997E64: TclNRUplevelObjCmd (tclProc.c:1002) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== ==140130== 48 bytes in 1 blocks are indirectly lost in loss record 8 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x496BAA5: ListStoreNew (tclListObj.c:762) ==140130== by 0x496BCA8: ListRepInit (tclListObj.c:885) ==140130== by 0x496BD53: ListRepInitAttempt (tclListObj.c:937) ==140130== by 0x4970F95: SetListFromAny (tclListObj.c:3394) ==140130== by 0x496C4D0: TclListObjGetRep (tclListObj.c:1264) ==140130== by 0x496DD1D: Tcl_ListObjLength (tclListObj.c:2033) ==140130== by 0x48D935D: TclCompileTryCmd (tclCompCmdsSZ.c:2880) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x489FFF2: TclNRCatchObjCmd (tclCmdAH.c:195) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 48 bytes in 1 blocks are indirectly lost in loss record 9 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x49710E8: SetListFromAny (tclListObj.c:3424) ==140130== by 0x496C4D0: TclListObjGetRep (tclListObj.c:1264) ==140130== by 0x496DD1D: Tcl_ListObjLength (tclListObj.c:2033) ==140130== by 0x48D935D: TclCompileTryCmd (tclCompCmdsSZ.c:2880) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x489FFF2: TclNRCatchObjCmd (tclCmdAH.c:195) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 80 bytes in 2 blocks are indirectly lost in loss record 12 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x4936839: AllocStringEntry (tclHash.c:829) ==140130== by 0x4935FC2: CreateHashEntry (tclHash.c:378) ==140130== by 0x4935C22: Tcl_CreateHashEntry (tclHash.c:254) ==140130== by 0x48760DF: ResolveJumpTableTargets (tclAssembly.c:3059) ==140130== by 0x4875F5E: FillInJumpOffsets (tclAssembly.c:2991) ==140130== by 0x4875A65: FinishAssembly (tclAssembly.c:2755) ==140130== by 0x4872A7B: TclAssembleCode (tclAssembly.c:1088) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== ==140130== 80 bytes in 2 blocks are indirectly lost in loss record 13 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x4936839: AllocStringEntry (tclHash.c:829) ==140130== by 0x4935FC2: CreateHashEntry (tclHash.c:378) ==140130== by 0x4935C22: Tcl_CreateHashEntry (tclHash.c:254) ==140130== by 0x48760DF: ResolveJumpTableTargets (tclAssembly.c:3059) ==140130== by 0x4875F5E: FillInJumpOffsets (tclAssembly.c:2991) ==140130== by 0x4875A65: FinishAssembly (tclAssembly.c:2755) ==140130== by 0x4872A7B: TclAssembleCode (tclAssembly.c:1088) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6F4A: TclSetByteCodeFromAny (tclCompile.c:1143) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== ==140130== 104 bytes in 1 blocks are indirectly lost in loss record 14 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x4871B81: AllocJumptable (tclCompile.h:1134) ==140130== by 0x4873C4D: AssembleOneLine (tclAssembly.c:1514) ==140130== by 0x4872993: TclAssembleCode (tclAssembly.c:1059) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 104 bytes in 1 blocks are indirectly lost in loss record 15 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x4871B81: AllocJumptable (tclCompile.h:1134) ==140130== by 0x4873C4D: AssembleOneLine (tclAssembly.c:1514) ==140130== by 0x4872993: TclAssembleCode (tclAssembly.c:1059) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6F4A: TclSetByteCodeFromAny (tclCompile.c:1143) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 104 bytes in 1 blocks are definitely lost in loss record 16 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x4871B81: AllocJumptable (tclCompile.h:1134) ==140130== by 0x4873C4D: AssembleOneLine (tclAssembly.c:1514) ==140130== by 0x4872993: TclAssembleCode (tclAssembly.c:1059) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x489FFF2: TclNRCatchObjCmd (tclCmdAH.c:195) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 104 bytes in 1 blocks are definitely lost in loss record 17 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x4871B81: AllocJumptable (tclCompile.h:1134) ==140130== by 0x4873C4D: AssembleOneLine (tclAssembly.c:1514) ==140130== by 0x4872993: TclAssembleCode (tclAssembly.c:1059) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6F4A: TclSetByteCodeFromAny (tclCompile.c:1143) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x489FFF2: TclNRCatchObjCmd (tclCmdAH.c:195) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 144 (104 direct, 40 indirect) bytes in 1 blocks are definitely lost in loss record 19 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x4871B81: AllocJumptable (tclCompile.h:1134) ==140130== by 0x4873C4D: AssembleOneLine (tclAssembly.c:1514) ==140130== by 0x4872993: TclAssembleCode (tclAssembly.c:1059) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 144 (40 direct, 104 indirect) bytes in 1 blocks are definitely lost in loss record 20 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x4936839: AllocStringEntry (tclHash.c:829) ==140130== by 0x4935FC2: CreateHashEntry (tclHash.c:378) ==140130== by 0x4935C22: Tcl_CreateHashEntry (tclHash.c:254) ==140130== by 0x48760DF: ResolveJumpTableTargets (tclAssembly.c:3059) ==140130== by 0x4875F5E: FillInJumpOffsets (tclAssembly.c:2991) ==140130== by 0x4875A65: FinishAssembly (tclAssembly.c:2755) ==140130== by 0x4872A7B: TclAssembleCode (tclAssembly.c:1088) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6F4A: TclSetByteCodeFromAny (tclCompile.c:1143) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== ==140130== 148 (48 direct, 100 indirect) bytes in 1 blocks are definitely lost in loss record 21 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x48D92B4: TclCompileTryCmd (tclCompCmdsSZ.c:2878) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x489FFF2: TclNRCatchObjCmd (tclCmdAH.c:195) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 184 (40 direct, 144 indirect) bytes in 1 blocks are definitely lost in loss record 22 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x4936839: AllocStringEntry (tclHash.c:829) ==140130== by 0x4935FC2: CreateHashEntry (tclHash.c:378) ==140130== by 0x4935C22: Tcl_CreateHashEntry (tclHash.c:254) ==140130== by 0x48760DF: ResolveJumpTableTargets (tclAssembly.c:3059) ==140130== by 0x4875F5E: FillInJumpOffsets (tclAssembly.c:2991) ==140130== by 0x4875A65: FinishAssembly (tclAssembly.c:2755) ==140130== by 0x4872A7B: TclAssembleCode (tclAssembly.c:1088) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== ==140130== 184 (104 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 23 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x4871B81: AllocJumptable (tclCompile.h:1134) ==140130== by 0x4873C4D: AssembleOneLine (tclAssembly.c:1514) ==140130== by 0x4872993: TclAssembleCode (tclAssembly.c:1059) ==140130== by 0x4872755: TclCompileAssembleCmd (tclAssembly.c:943) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6F4A: TclSetByteCodeFromAny (tclCompile.c:1143) ==140130== by 0x4999668: TclProcCompileProc (tclProc.c:2054) ==140130== by 0x4998E2B: TclPushProcCallFrame (tclProc.c:1569) ==140130== by 0x4998F70: NRInterpProc (tclProc.c:1660) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== by 0x4006F1: main (tclAppInit.c:94) ==140130== ==140130== 192 bytes in 4 blocks are indirectly lost in loss record 24 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x496BAA5: ListStoreNew (tclListObj.c:762) ==140130== by 0x496BCA8: ListRepInit (tclListObj.c:885) ==140130== by 0x496BD53: ListRepInitAttempt (tclListObj.c:937) ==140130== by 0x4970F95: SetListFromAny (tclListObj.c:3394) ==140130== by 0x496C4D0: TclListObjGetRep (tclListObj.c:1264) ==140130== by 0x496DD1D: Tcl_ListObjLength (tclListObj.c:2033) ==140130== by 0x48D935D: TclCompileTryCmd (tclCompCmdsSZ.c:2880) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E9E25: TclCompileCmdWord (tclCompile.c:2929) ==140130== by 0x48C2078: TclCompileCatchCmd (tclCompCmds.c:662) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x4997E64: TclNRUplevelObjCmd (tclProc.c:1002) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== ==140130== 192 bytes in 4 blocks are indirectly lost in loss record 25 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x49710E8: SetListFromAny (tclListObj.c:3424) ==140130== by 0x496C4D0: TclListObjGetRep (tclListObj.c:1264) ==140130== by 0x496DD1D: Tcl_ListObjLength (tclListObj.c:2033) ==140130== by 0x48D935D: TclCompileTryCmd (tclCompCmdsSZ.c:2880) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E9E25: TclCompileCmdWord (tclCompile.c:2929) ==140130== by 0x48C2078: TclCompileCatchCmd (tclCompCmds.c:662) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x4997E64: TclNRUplevelObjCmd (tclProc.c:1002) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== ==140130== 592 (192 direct, 400 indirect) bytes in 4 blocks are definitely lost in loss record 26 of 31 ==140130== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==140130== by 0x486FA2F: TclpAlloc (tclAlloc.c:700) ==140130== by 0x488E0AB: Tcl_Alloc (tclCkalloc.c:1035) ==140130== by 0x48D92B4: TclCompileTryCmd (tclCompCmdsSZ.c:2878) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E9E25: TclCompileCmdWord (tclCompile.c:2929) ==140130== by 0x48C2078: TclCompileCatchCmd (tclCompCmds.c:662) ==140130== by 0x490C14E: TclAttemptCompileProc (tclEnsemble.c:3353) ==140130== by 0x48E8AE4: CompileCmdCompileProc (tclCompile.c:2252) ==140130== by 0x48E8F9A: CompileCommandTokens (tclCompile.c:2382) ==140130== by 0x48E947C: TclCompileScript (tclCompile.c:2568) ==140130== by 0x48E6E4F: TclSetByteCodeFromAny (tclCompile.c:1116) ==140130== by 0x4912AB4: TclCompileObj (tclExecute.c:1790) ==140130== by 0x4881629: TclNREvalObjEx (tclBasic.c:6235) ==140130== by 0x4997E64: TclNRUplevelObjCmd (tclProc.c:1002) ==140130== by 0x487E5C8: Dispatch (tclBasic.c:4639) ==140130== by 0x487E62C: TclNRRunCallbacks (tclBasic.c:4655) ==140130== by 0x487DED4: Tcl_EvalObjv (tclBasic.c:4394) ==140130== by 0x4880668: TclEvalEx (tclBasic.c:5494) ==140130== by 0x4963981: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==140130== by 0x49757B1: Tcl_MainEx (tclMain.c:404) ==140130== ==140130== LEAK SUMMARY: ==140130== definitely lost: 736 bytes in 11 blocks ==140130== indirectly lost: 868 bytes in 21 blocks ==140130== possibly lost: 0 bytes in 0 blocks ==140130== still reachable: 0 bytes in 0 blocks ==140130== suppressed: 9,369 bytes in 23 blocks ==140130== ==140130== ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0) --140130-- --140130-- used_suppression: 2 TclCreatesocketAddress/getaddrinfo/calloc /home/apn/src/trunk/tcl/tools/valgrind_suppress:16 suppressed: 3,699 bytes in 4 blocks --140130-- used_suppression: 3 TclpGetPwNam/getpwname_r/__nss_next2/calloc /home/apn/src/trunk/tcl/tools/valgrind_suppress:152 suppressed: 5,278 bytes in 6 blocks --140130-- used_suppression: 3 TclCreatesocketAddress/getaddrinfo/malloc /home/apn/src/trunk/tcl/tools/valgrind_suppress:36 suppressed: 242 bytes in 6 blocks --140130-- used_suppression: 4 TclpGetPwNam/getpwname_r/__nss_next2/malloc /home/apn/src/trunk/tcl/tools/valgrind_suppress:163 suppressed: 134 bytes in 6 blocks --140130-- used_suppression: 1 TclpDlopen/decompose_rpath /home/apn/src/trunk/tcl/tools/valgrind_suppress:46 suppressed: 16 bytes in 1 blocks ==140130== ==140130== ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0)
assemble.test seems to be the trigger, though it may not be the only one.
assemble.test is not the only trigger. error.test does it too and didn't check others. Specifically, to help track down, tests error-17.10 and error-17.11 both trigger the leak.
The leak is in the TclCompileTryCmd. Line 2887
handlers[handlerIdx].matchClause = tmpObj;
stores an allocated Tcl_Obj. However, handlerIdx itself is not incremented until the bottom of the loop. Thus when there is a jump on error out of the loop to the failedToCompile label, the loop
while (handlerIdx-- > 0) {
if (handlers[handlerIdx].matchClause) {
TclDecrRefCount(handlers[handlerIdx].matchClause);
}
}
fails to release the object as handlerIdx has not been incremented yet.
A proposed fix for the leak in TclCompileTryCmd is in the [bug-c587295271-trycompile-leak] branch. This seems to fix the error.test leaks. However, assemble.test (see below) still shows a separate leak. I'm not sure where the AllocJumptable call at tclAssembly.c:1514 is supposed to have a matching free, both for error and success cases. Volunteering @dkf for a fix :-) ==3567== 104 bytes in 1 blocks are definitely lost in loss record 6 of 10 ==3567== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==3567== by 0x488EC2A: TclpAlloc (tclAlloc.c:700) ==3567== by 0x48AE3C1: Tcl_Alloc (tclCkalloc.c:1035) ==3567== by 0x4890E05: AllocJumptable (tclCompile.h:1134) ==3567== by 0x4892D0A: AssembleOneLine (tclAssembly.c:1514) ==3567== by 0x4891CBA: TclAssembleCode (tclAssembly.c:1059) ==3567== by 0x4891A78: TclCompileAssembleCmd (tclAssembly.c:943) ==3567== by 0x49320B0: TclAttemptCompileProc (tclEnsemble.c:3353) ==3567== by 0x490D1B6: CompileCmdCompileProc (tclCompile.c:2252) ==3567== by 0x490D694: CompileCommandTokens (tclCompile.c:2382) ==3567== by 0x490DB8B: TclCompileScript (tclCompile.c:2568) ==3567== by 0x490B52B: TclSetByteCodeFromAny (tclCompile.c:1143) ==3567== by 0x4939053: TclCompileObj (tclExecute.c:1790) ==3567== by 0x48A1453: TclNREvalObjEx (tclBasic.c:6235) ==3567== by 0x48C11D6: TclNRCatchObjCmd (tclCmdAH.c:195) ==3567== by 0x489E179: Dispatch (tclBasic.c:4639) ==3567== by 0x489E1E1: TclNRRunCallbacks (tclBasic.c:4655) ==3567== by 0x489DA3C: Tcl_EvalObjv (tclBasic.c:4394) ==3567== by 0x48A03E9: TclEvalEx (tclBasic.c:5494) ==3567== by 0x498B7DC: Tcl_FSEvalFileEx (tclIOUtil.c:1792) ==3567== by 0x499FFC5: Tcl_MainEx (tclMain.c:404) ==3567== by 0x10B63B: main (tclAppInit.c:94)
Is this already fixed (maybe by continued after-tip-720 commits)?
Trunk still seems to have both leaks. If CI passes the [bug-c587295271-trycompile-leak] branch, I will look at merging it into trunk. The assemble.test related leak needs @dkf though, I am unsure about the freeing responsibilities in that case.
I've merged the fix for the TclCompileTryCmd leak into trunk. The leak in assembly.test awaits @dkf's attention.
The leaking JumptableInfo (stack frames beneath tclAssembly.c:1514 are exactly uninformative) is attached to the CompileEnv being built as aux data (at line 1522, just below) and is definitely attached; there's no failure exit path between the two lines.
The question then becomes why the CompileEnv isn't cleaning up the attached aux data entries.
Narrowed it down. Tests assemble-31.6, assemble-41.2 and assemble-41.3 are leaking the jump table somehow...
And the problem is not actually with jump tables. It's with how the aux data table is being reset on error in TclCompileAssembleCmd (see line 953). If there had been tests with failing with other aux data allocated by the assembler, those too would have leaked.
Should be fixed.
The actual deallocator is in tclCompCmdsSZ.c (it's FreeJumptableInfo) but isn't itself interesting, just as AllocJumptable isn't interesting. The problem was exactly that it was not being called when the compilation environment was reset after a failed assemble (which was necessary because without the reset I was getting crashes with something else going wonky; I forget exactly what but it was horrible). The problem was I'd got the reset wrong; I wasn't deleting the no-longer-desired aux data structures during the reset process. My fix adds that in.
I found the problem by adding printf() calls into the jumptable allocator and deallocator functions and going through the tests in assemble.test; the sole characteristic factor was a failure in the assembly generation after the (local) success of the jumpTable instruction. It was a little noisy matching up allocation addresses. I then remembered that I'd done something with resetting the compilation environment (which isn't owned by the assemble command) on error.
Also note that assemble is special in needing this reset; other commands use a strategy in tclCompile.c of falling back to their interpreted versions, but assemble basically doesn't have that option. It can only work in compiled mode.
BTW, I'm on a platform that can't run Valgrind, so someone else will have to confirm the fix.
Well, glad I left this for dkf. I would have been lost. Closing as valgrind shows no leaks as of [4561d57d8d].