Skip to content

Instantly share code, notes, and snippets.

@daveneeley
Last active July 5, 2019 18:04
Show Gist options
  • Save daveneeley/7133bb1062667b4a5ab1e934aec28073 to your computer and use it in GitHub Desktop.
Save daveneeley/7133bb1062667b4a5ab1e934aec28073 to your computer and use it in GitHub Desktop.
git_filter + libgit2 valgrind output
valgrind --leak-check=full -v --track-origins=yes /path/to/git_filter/git_filter control.cfg continue
==30710== Memcheck, a memory error detector
==30710== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==30710== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==30710== Command: /path/to/git_filter/git_filter control.cfg continue
==30710==
--30710-- Valgrind options:
--30710-- --leak-check=full
--30710-- -v
--30710-- --track-origins=yes
--30710-- Contents of /proc/version:
--30710-- Linux version 3.10.0-327.18.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu May 12 11:03:55 UTC 2016
--30710--
--30710-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-sse3
--30710-- Page sizes: currently 4096, max supported 4096
--30710-- Valgrind library directory: /usr/lib64/valgrind
--30710-- Reading syms from /sti/work1/1d0fd339fa72b042/git_filter/git_filter
--30710-- Reading syms from /usr/lib64/ld-2.17.so
--30710-- Considering /usr/lib/debug/.build-id/09/e1bb4d034c7263810a41100647068858a7ecb6.debug ..
--30710-- .. build-id is valid
--30710-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux
--30710-- object doesn't have a symbol table
--30710-- object doesn't have a dynamic symbol table
--30710-- Scheduler: using generic scheduler lock implementation.
--30710-- Reading suppressions file: /usr/lib64/valgrind/default.supp
==30710== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-30710-by-user-on-machine-name
==30710== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-30710-by-user-on-machine-name
==30710== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-30710-by-user-on-machine-name
==30710==
==30710== TO CONTROL THIS PROCESS USING vgdb (which you probably
==30710== don't want to do, unless you know exactly what you're doing,
==30710== or are doing some strange experiment):
==30710== /usr/lib64/valgrind/../../bin/vgdb --pid=30710 ...command...
==30710==
==30710== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==30710== /path/to/gdb /path/to/git_filter/git_filter
==30710== and then give GDB the following command
==30710== target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=30710
==30710== --pid is optional if only one valgrind process is running
==30710==
--30710-- REDIR: 0x4018b90 (ld-linux-x86-64.so.2:strlen) redirected to 0x58059dd1 (???)
--30710-- REDIR: 0x4018a90 (ld-linux-x86-64.so.2:index) redirected to 0x58059deb (???)
--30710-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so
--30710-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
==30710== WARNING: new redirection conflicts with existing -- ignoring it
--30710-- old: 0x04018b90 (strlen ) R-> (0000.0) 0x58059dd1 ???
--30710-- new: 0x04018b90 (strlen ) R-> (2007.0) 0x04c2ca70 strlen
--30710-- REDIR: 0x4018b10 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2dbc0 (strcmp)
--30710-- REDIR: 0x4019c40 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c30c40 (mempcpy)
--30710-- Reading syms from /usr/lib64/librt-2.17.so
--30710-- Considering /usr/lib/debug/.build-id/cb/0d2c9f29dbd13c47e7d2eefb94b35835698cca.debug ..
--30710-- .. build-id is valid
--30710-- Reading syms from /usr/lib64/libc-2.17.so
--30710-- Considering /usr/lib/debug/.build-id/08/8d48a9ab5a512d9f75ba3d66b6cf77eb6588f9.debug ..
--30710-- .. build-id is valid
--30710-- Reading syms from /usr/lib64/libpthread-2.17.so
--30710-- Considering /usr/lib/debug/.build-id/72/3f0ac75ef88e778940ae8a8bc30141d85b116a.debug ..
--30710-- .. build-id is valid
--30710-- REDIR: 0x50c8ac0 (libc.so.6:strcasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x50c4e70 (libc.so.6:strnlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x50cad90 (libc.so.6:strncasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x50c78d0 (libc.so.6:memset) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x50c7880 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x50c4d90 (libc.so.6:__GI_strlen) redirected to 0x4c2c9d0 (__GI_strlen)
--30710-- REDIR: 0x50c6860 (libc.so.6:__GI_strrchr) redirected to 0x4c2c430 (__GI_strrchr)
--30710-- REDIR: 0x50bec10 (libc.so.6:calloc) redirected to 0x4c2b8bf (calloc)
--30710-- REDIR: 0x50be220 (libc.so.6:malloc) redirected to 0x4c29b3c (malloc)
--30710-- REDIR: 0x50dcd10 (libc.so.6:__GI_strstr) redirected to 0x4c30ed0 (__strstr_sse2)
--30710-- REDIR: 0x50be700 (libc.so.6:realloc) redirected to 0x4c2ba8e (realloc)
--30710-- REDIR: 0x50c6f60 (libc.so.6:memchr) redirected to 0x4c2dc60 (memchr)
--30710-- REDIR: 0x50cd4b0 (libc.so.6:__GI_memcpy) redirected to 0x4c2e560 (__GI_memcpy)
--30710-- REDIR: 0x50c4d40 (libc.so.6:strlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x51a13b0 (libc.so.6:__strlen_sse2_pminub) redirected to 0x4c2c9b0 (strlen)
--30710-- REDIR: 0x50be620 (libc.so.6:free) redirected to 0x4c2ac36 (free)
--30710-- REDIR: 0x50c3230 (libc.so.6:index) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x5170a10 (libc.so.6:__strchr_sse42) redirected to 0x4c2c620 (index)
--30710-- REDIR: 0x50ced40 (libc.so.6:strchrnul) redirected to 0x4c30760 (strchrnul)
--30710-- REDIR: 0x50c8470 (libc.so.6:__GI_mempcpy) redirected to 0x4c30970 (__GI_mempcpy)
--30710-- REDIR: 0x518bd10 (libc.so.6:__memmove_ssse3_back) redirected to 0x4c2dd20 (memcpy@GLIBC_2.2.5)
--30710-- REDIR: 0x50c4f90 (libc.so.6:__GI_strncmp) redirected to 0x4c2d200 (__GI_strncmp)
--30710-- REDIR: 0x50c8960 (libc.so.6:__GI_stpcpy) redirected to 0x4c2f8b0 (__GI_stpcpy)
--30710-- REDIR: 0x50c6820 (libc.so.6:rindex) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x5172850 (libc.so.6:__strrchr_sse42) redirected to 0x4c2c4c0 (__strrchr_sse42)
--30710-- REDIR: 0x50c7910 (libc.so.6:__GI_memset) redirected to 0x4c2fe60 (memset)
--30710-- REDIR: 0x50c32f0 (libc.so.6:strcmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x5170ac0 (libc.so.6:__strcmp_sse42) redirected to 0x4c2db70 (__strcmp_sse42)
--30710-- REDIR: 0x5173060 (libc.so.6:__strcasecmp_sse42) redirected to 0x4c2d350 (strcasecmp)
Continuing from previous runs.
--30710-- REDIR: 0x50c4f50 (libc.so.6:strncmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x5171870 (libc.so.6:__strncmp_sse42) redirected to 0x4c2d2e0 (__strncmp_sse42)
--30710-- REDIR: 0x50c76f0 (libc.so.6:__GI_memmove) redirected to 0x4c301b0 (__GI_memmove)
==30710== Warning: set address range perms: large range [0x6b66000, 0x3a976000) (defined)
--30710-- REDIR: 0x50dd2d0 (libc.so.6:strstr) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
--30710-- REDIR: 0x51729f0 (libc.so.6:__strstr_sse42) redirected to 0x4c30f60 (__strstr_sse42)
--30710-- REDIR: 0xffffffffff600400 (???:???) redirected to 0x58059dbd (???)
==30710== Use of uninitialised value of size 8
==30710== at 0x414960: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710== Uninitialised value was created by a heap allocation
==30710== at 0x4C2BB58: realloc (vg_replace_malloc.c:785)
==30710== by 0x414A7D: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710==
==30710== Invalid read of size 1
==30710== at 0x414960: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710== Address 0x18 is not stack'd, malloc'd or (recently) free'd
==30710==
==30710==
==30710== Process terminating with default action of signal 11 (SIGSEGV)
==30710== Access not within mapped region at address 0x18
==30710== at 0x414960: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710== If you believe this happened as a result of a stack
==30710== overflow in your program's main thread (unlikely but
==30710== possible), you can try to increase the size of the
==30710== main thread stack using the --main-stacksize= flag.
==30710== The main thread stack size used in this run was 8388608.
==30710==
==30710== HEAP SUMMARY:
==30710== in use at exit: 43,328,962 bytes in 117,956 blocks
==30710== total heap usage: 759,490 allocs, 641,534 frees, 3,278,344,090 bytes allocated
==30710==
==30710== Searching for pointers to 117,956 not-freed blocks
==30710== Checked 43,973,056 bytes
==30710==
==30710== LEAK SUMMARY:
==30710== definitely lost: 0 bytes in 0 blocks
==30710== indirectly lost: 0 bytes in 0 blocks
==30710== possibly lost: 0 bytes in 0 blocks
==30710== still reachable: 43,328,962 bytes in 117,956 blocks
==30710== suppressed: 0 bytes in 0 blocks
==30710== Reachable blocks (those to which a pointer was found) are not shown.
==30710== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==30710==
==30710== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
==30710==
==30710== 1 errors in context 1 of 2:
==30710== Invalid read of size 1
==30710== at 0x414960: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710== Address 0x18 is not stack'd, malloc'd or (recently) free'd
==30710==
==30710==
==30710== 1 errors in context 2 of 2:
==30710== Use of uninitialised value of size 8
==30710== at 0x414960: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710== Uninitialised value was created by a heap allocation
==30710== at 0x4C2BB58: realloc (vg_replace_malloc.c:785)
==30710== by 0x414A7D: process_commit (in /path/to/git_filter/git_filter)
==30710== by 0x414E0A: revwalk_next_unsorted (in /path/to/git_filter/git_filter)
==30710== by 0x414CAC: git_revwalk_next (in /path/to/git_filter/git_filter)
==30710== by 0x404427: main (git_filter.c:1066)
==30710==
==30710== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
[11:58:56] ==29== Memcheck, a memory error detector
[11:58:56] ==29== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
[11:58:56] ==29== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
[11:58:56] ==29== Command: /srv/src/git_filter/git_filter /srv/src/VCSTools/git_filter_projects/template/control.cfg
[11:58:56] ==29==
[11:58:56] --29-- Valgrind options:
[11:58:56] --29-- --leak-check=full
[11:58:56] --29-- -v
[11:58:56] --29-- --track-origins=yes
[11:58:56] --29-- --show-leak-kinds=all
[11:58:56] --29-- Contents of /proc/version:
[11:58:56] --29-- Linux version 4.19.50-coreos-r1 (jenkins@ip-10-7-32-103) (gcc version 8.2.0 (Gentoo Hardened 8.2.0-r6 p1.7)) #1 SMP Mon Jul 1 19:07:03 -00 2019
[11:58:56] --29--
[11:58:56] --29-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-sse3
[11:58:56] --29-- Page sizes: currently 4096, max supported 4096
[11:58:56] --29-- Valgrind library directory: /usr/lib/valgrind
[11:58:56] --29-- Reading syms from /srv/src/git_filter/git_filter
[11:58:56] --29-- Reading syms from /lib/x86_64-linux-gnu/ld-2.24.so
[11:58:56] --29-- Considering /usr/lib/debug/.build-id/60/6df9c355103e82140d513bc7a25a635591c153.debug ..
[11:58:56] --29-- .. build-id is valid
[11:58:56] --29-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
[11:58:56] --29-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
[11:58:56] --29-- .. CRC mismatch (computed db5b2ec5 wanted 0eae776b)
[11:58:56] --29-- Considering /usr/lib/debug/usr/lib/valgrind/memcheck-amd64-linux ..
[11:58:56] --29-- .. CRC is valid
[11:58:56] --29-- object doesn't have a dynamic symbol table
[11:58:56] --29-- Scheduler: using generic scheduler lock implementation.
[11:58:56] --29-- Reading suppressions file: /usr/lib/valgrind/default.supp
[11:58:56] ==29== embedded gdbserver: reading from /opt/buildagent/temp/buildTmp/vgdb-pipe-from-vgdb-to-29-by-???-on-f95d702f283f
[11:58:56] ==29== embedded gdbserver: writing to /opt/buildagent/temp/buildTmp/vgdb-pipe-to-vgdb-from-29-by-???-on-f95d702f283f
[11:58:56] ==29== embedded gdbserver: shared mem /opt/buildagent/temp/buildTmp/vgdb-pipe-shared-mem-vgdb-29-by-???-on-f95d702f283f
[11:58:56] ==29==
[11:58:56] ==29== TO CONTROL THIS PROCESS USING vgdb (which you probably
[11:58:56] ==29== don't want to do, unless you know exactly what you're doing,
[11:58:56] ==29== or are doing some strange experiment):
[11:58:56] ==29== /usr/lib/valgrind/../../bin/vgdb --pid=29 ...command...
[11:58:56] ==29==
[11:58:56] ==29== TO DEBUG THIS PROCESS USING GDB: start GDB like this
[11:58:56] ==29== /path/to/gdb /srv/src/git_filter/git_filter
[11:58:56] ==29== and then give GDB the following command
[11:58:56] ==29== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=29
[11:58:56] ==29== --pid is optional if only one valgrind process is running
[11:58:56] ==29==
[11:58:56] --29-- REDIR: 0x401aec0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809de81 (vgPlain_amd64_linux_REDIR_FOR_strlen)
[11:58:56] --29-- REDIR: 0x4019770 (ld-linux-x86-64.so.2:index) redirected to 0x3809de9b (vgPlain_amd64_linux_REDIR_FOR_index)
[11:58:56] --29-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
[11:58:56] --29-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
[11:58:56] --29-- .. CRC mismatch (computed 74a069fa wanted 84d99202)
[11:58:56] --29-- Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
[11:58:56] --29-- .. CRC is valid
[11:58:56] --29-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
[11:58:56] --29-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
[11:58:56] --29-- .. CRC mismatch (computed 88f2547e wanted 8a7a4459)
[11:58:56] --29-- Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
[11:58:56] --29-- .. CRC is valid
[11:58:56] ==29== WARNING: new redirection conflicts with existing -- ignoring it
[11:58:56] --29-- old: 0x0401aec0 (strlen ) R-> (0000.0) 0x3809de81 vgPlain_amd64_linux_REDIR_FOR_strlen
[11:58:56] --29-- new: 0x0401aec0 (strlen ) R-> (2007.0) 0x04c2ee60 strlen
[11:58:56] --29-- REDIR: 0x4019990 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2ff60 (strcmp)
[11:58:56] --29-- REDIR: 0x401b9d0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c33330 (mempcpy)
[11:58:57] --29-- Reading syms from /usr/lib/libgit2.so.0.28.2
[11:58:57] --29-- Reading syms from /lib/x86_64-linux-gnu/librt-2.24.so
[11:58:57] --29-- Considering /usr/lib/debug/.build-id/86/b35d63facd97d22973e99ee9863f7714c4f53a.debug ..
[11:58:57] --29-- .. build-id is valid
[11:58:57] --29-- Reading syms from /lib/x86_64-linux-gnu/libc-2.24.so
[11:58:57] --29-- Considering /usr/lib/debug/.build-id/77/5143e680ff0cd4cd51cce1ce8ca216e635a1d6.debug ..
[11:58:57] --29-- .. build-id is valid
[11:58:57] --29-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.24.so
[11:58:57] --29-- Considering /usr/lib/debug/.build-id/16/d609487bcc4acbac29a4eaa2dda0d2f56211ec.debug ..
[11:58:57] --29-- .. build-id is valid
[11:58:57] --29-- Reading syms from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
[11:58:57] --29-- object doesn't have a symbol table
[11:58:57] --29-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
[11:58:57] --29-- object doesn't have a symbol table
[11:58:57] --29-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8
[11:58:57] --29-- object doesn't have a symbol table
[11:58:57] --29-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.24.so
[11:58:57] --29-- Considering /usr/lib/debug/.build-id/db/2caeeec37482a98ab1416d0a9afe2944930de9.debug ..
[11:58:57] --29-- .. build-id is valid
[11:58:57] --29-- REDIR: 0x5411710 (libc.so.6:strcasecmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x540d1b0 (libc.so.6:strcspn) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x5413a00 (libc.so.6:strncasecmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x540f620 (libc.so.6:strpbrk) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x540f9b0 (libc.so.6:strspn) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x5410d80 (libc.so.6:memmove) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x540bc00 (libc.so.6:strcmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x540f330 (libc.so.6:rindex) redirected to 0x4c2e7f0 (rindex)
[11:58:57] --29-- REDIR: 0x540d650 (libc.so.6:strlen) redirected to 0x4c2eda0 (strlen)
[11:58:57] --29-- REDIR: 0x5408900 (libc.so.6:calloc) redirected to 0x4c2db10 (calloc)
[11:58:57] --29-- REDIR: 0x5407f10 (libc.so.6:malloc) redirected to 0x4c2bb40 (malloc)
[11:58:57] --29-- REDIR: 0x540ff50 (libc.so.6:__GI_strstr) redirected to 0x4c33590 (__strstr_sse2)
[11:58:57] --29-- REDIR: 0x54085c0 (libc.so.6:realloc) redirected to 0x4c2dd50 (realloc)
[11:58:57] --29-- REDIR: 0x54105f0 (libc.so.6:memchr) redirected to 0x4c30000 (memchr)
[11:58:57] --29-- REDIR: 0x5410e90 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4c300c0 (memcpy@GLIBC_2.2.5)
[11:58:57] --29-- REDIR: 0x5408510 (libc.so.6:free) redirected to 0x4c2cd70 (free)
[11:58:57] --29-- REDIR: 0x540b9b0 (libc.so.6:index) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
[11:58:57] --29-- REDIR: 0x540b9e0 (libc.so.6:__GI_strchr) redirected to 0x4c2e950 (__GI_strchr)
[11:58:57] --29-- REDIR: 0x5417710 (libc.so.6:strchrnul) redirected to 0x4c32e60 (strchrnul)
[11:58:57] --29-- REDIR: 0x5410e70 (libc.so.6:__GI_mempcpy) redirected to 0x4c33060 (__GI_mempcpy)
[11:58:57] ==29== Jump to the invalid address stated on the next line
[11:58:57] ==29== at 0x0: ???
[11:58:57] ==29== by 0x4E60193: git_buf_grow (buffer.c:104)
[11:58:57] ==29== by 0x4E60430: git_buf_set (buffer.c:165)
[11:58:57] ==29== by 0x4E6050C: git_buf_sets (buffer.c:189)
[11:58:57] ==29== by 0x4ED297D: git_path_prettify (path.c:373)
[11:58:57] ==29== by 0x4EEF1DA: find_repo (repository.c:453)
[11:58:57] ==29== by 0x4EEFFF3: git_repository_open_ext (repository.c:811)
[11:58:57] ==29== by 0x4EF025C: git_repository_open (repository.c:873)
[11:58:57] ==29== by 0x401B68: main (git_filter.c:1020)
[11:58:57] ==29== Address 0x0 is not stack'd, malloc'd or (recently) free'd
[11:58:57] ==29==
[11:58:57] ==29==
[11:58:57] ==29== Process terminating with default action of signal 11 (SIGSEGV): dumping core
[11:58:57] ==29== Bad permissions for mapped region at address 0x0
[11:58:57] ==29== at 0x0: ???
[11:58:57] ==29== by 0x4E60193: git_buf_grow (buffer.c:104)
[11:58:57] ==29== by 0x4E60430: git_buf_set (buffer.c:165)
[11:58:57] ==29== by 0x4E6050C: git_buf_sets (buffer.c:189)
[11:58:57] ==29== by 0x4ED297D: git_path_prettify (path.c:373)
[11:58:57] ==29== by 0x4EEF1DA: find_repo (repository.c:453)
[11:58:57] ==29== by 0x4EEFFF3: git_repository_open_ext (repository.c:811)
[11:58:57] ==29== by 0x4EF025C: git_repository_open (repository.c:873)
[11:58:57] ==29== by 0x401B68: main (git_filter.c:1020)
[11:58:57] ==29==
[11:58:57] ==29== HEAP SUMMARY:
[11:58:57] ==29== in use at exit: 3,956 bytes in 20 blocks
[11:58:57] ==29== total heap usage: 46 allocs, 26 frees, 11,476 bytes allocated
[11:58:57] ==29==
[11:58:57] ==29== Searching for pointers to 20 not-freed blocks
[11:58:57] ==29== Checked 268,832 bytes
[11:58:57] ==29==
[11:58:57] ==29== 11 bytes in 1 blocks are still reachable in loss record 1 of 6
[11:58:57] ==29== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
[11:58:57] ==29== by 0x540D3B9: strdup (strdup.c:42)
[11:58:57] ==29== by 0x403E9C: parse_config_file (git_filter.c:899)
[11:58:57] ==29== by 0x401B57: main (git_filter.c:1018)
[11:58:57] ==29==
[11:58:57] ==29== 14 bytes in 1 blocks are still reachable in loss record 2 of 6
[11:58:57] ==29== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
[11:58:57] ==29== by 0x540D3B9: strdup (strdup.c:42)
[11:58:57] ==29== by 0x403E66: parse_config_file (git_filter.c:892)
[11:58:57] ==29== by 0x401B57: main (git_filter.c:1018)
[11:58:57] ==29==
[11:58:57] ==29== 22 bytes in 1 blocks are still reachable in loss record 3 of 6
[11:58:57] ==29== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
[11:58:57] ==29== by 0x540D3B9: strdup (strdup.c:42)
[11:58:57] ==29== by 0x403ED2: parse_config_file (git_filter.c:906)
[11:58:57] ==29== by 0x401B57: main (git_filter.c:1018)
[11:58:57] ==29==
[11:58:57] ==29== 69 bytes in 8 blocks are still reachable in loss record 4 of 6
[11:58:57] ==29== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
[11:58:57] ==29== by 0x540D3B9: strdup (strdup.c:42)
[11:58:57] ==29== by 0x403DC2: parse_config_file (git_filter.c:930)
[11:58:57] ==29== by 0x401B57: main (git_filter.c:1018)
[11:58:57] ==29==
[11:58:57] ==29== 1,024 bytes in 8 blocks are still reachable in loss record 5 of 6
[11:58:57] ==29== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
[11:58:57] ==29== by 0x40241B: local_sprintf (git_filter.c:123)
[11:58:57] ==29== by 0x403DB7: parse_config_file (git_filter.c:928)
[11:58:57] ==29== by 0x401B57: main (git_filter.c:1018)
[11:58:57] ==29==
[11:58:57] ==29== 2,816 bytes in 1 blocks are still reachable in loss record 6 of 6
[11:58:57] ==29== at 0x4C2BADF: malloc (vg_replace_malloc.c:298)
[11:58:57] ==29== by 0x4C2DE5F: realloc (vg_replace_malloc.c:785)
[11:58:57] ==29== by 0x403F69: tf_list_new (git_filter.c:106)
[11:58:57] ==29== by 0x403F69: parse_config_file (git_filter.c:930)
[11:58:57] ==29== by 0x401B57: main (git_filter.c:1018)
[11:58:57] ==29==
[11:58:57] ==29== LEAK SUMMARY:
[11:58:57] ==29== definitely lost: 0 bytes in 0 blocks
[11:58:57] ==29== indirectly lost: 0 bytes in 0 blocks
[11:58:57] ==29== possibly lost: 0 bytes in 0 blocks
[11:58:57] ==29== still reachable: 3,956 bytes in 20 blocks
[11:58:57] ==29== suppressed: 0 bytes in 0 blocks
[11:58:57] ==29==
[11:58:57] ==29== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
[11:58:57] ==29==
[11:58:57] ==29== 1 errors in context 1 of 1:
[11:58:57] ==29== Jump to the invalid address stated on the next line
[11:58:57] ==29== at 0x0: ???
[11:58:57] ==29== by 0x4E60193: git_buf_grow (buffer.c:104)
[11:58:57] ==29== by 0x4E60430: git_buf_set (buffer.c:165)
[11:58:57] ==29== by 0x4E6050C: git_buf_sets (buffer.c:189)
[11:58:57] ==29== by 0x4ED297D: git_path_prettify (path.c:373)
[11:58:57] ==29== by 0x4EEF1DA: find_repo (repository.c:453)
[11:58:57] ==29== by 0x4EEFFF3: git_repository_open_ext (repository.c:811)
[11:58:57] ==29== by 0x4EF025C: git_repository_open (repository.c:873)
[11:58:57] ==29== by 0x401B68: main (git_filter.c:1020)
[11:58:57] ==29== Address 0x0 is not stack'd, malloc'd or (recently) free'd
[11:58:57] ==29==
[11:58:57] ==29== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment