src/replacements/unittests/strtok_r

Main

Hostnamekrb5.freetds.io
uname -aLinux krb5.freetds.io 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
date2021-07-12

==18041== Memcheck, a memory error detector
==18041== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==18041== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==18041== Command: ./strtok_r
==18041== 
--18041-- Valgrind options:
--18041--    --tool=memcheck
--18041--    --vgdb=no
--18041--    --num-callers=20
--18041--    --leak-check=yes
--18041--    -v
--18041--    --show-reachable=yes
--18041--    --log-fd=3
--18041--    --suppressions=/home/test/suppressions.supp
--18041--    --track-origins=yes
--18041-- Contents of /proc/version:
--18041--   Linux version 4.15.0-147-generic (buildd@lcy01-amd64-028) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021
--18041-- 
--18041-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--18041-- Page sizes: currently 4096, max supported 4096
--18041-- Valgrind library directory: /usr/lib/valgrind
--18041-- Reading syms from /home/test/ftdstmp/ftds_comp100/test5/src/replacements/unittests/strtok_r
--18041-- Reading syms from /lib/x86_64-linux-gnu/ld-2.27.so
--18041--   Considering /lib/x86_64-linux-gnu/ld-2.27.so ..
--18041--   .. CRC mismatch (computed 0ef8daab wanted 65bccefe)
--18041--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.27.so ..
--18041--   .. CRC is valid
--18041-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--18041--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--18041--   .. CRC mismatch (computed 41ddb025 wanted 9972f546)
--18041--    object doesn't have a symbol table
--18041--    object doesn't have a dynamic symbol table
--18041-- Scheduler: using generic scheduler lock implementation.
--18041-- Reading suppressions file: /home/test/suppressions.supp
--18041-- Reading suppressions file: /usr/lib/valgrind/default.supp
--18041-- REDIR: 0x4020d20 (ld-linux-x86-64.so.2:strlen) redirected to 0x580608c1 (???)
--18041-- REDIR: 0x4020b00 (ld-linux-x86-64.so.2:index) redirected to 0x580608db (???)
--18041-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--18041--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--18041--   .. CRC mismatch (computed 50df1b30 wanted 4800a4cf)
--18041--    object doesn't have a symbol table
--18041-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--18041--   Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--18041--   .. CRC mismatch (computed f893b962 wanted 95ee359e)
--18041--    object doesn't have a symbol table
==18041== WARNING: new redirection conflicts with existing -- ignoring it
--18041--     old: 0x04020d20 (strlen              ) R-> (0000.0) 0x580608c1 ???
--18041--     new: 0x04020d20 (strlen              ) R-> (2007.0) 0x04c34db0 strlen
--18041-- REDIR: 0x401d540 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c35ee0 (strcmp)
--18041-- REDIR: 0x4021260 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c394f0 (mempcpy)
--18041-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.27.so
--18041--   Considering /usr/lib/debug/.build-id/68/f36706eb2e6eee4046c4fdca2a19540b2f6113.debug ..
--18041--   .. build-id is valid
--18041-- Reading syms from /lib/x86_64-linux-gnu/libc-2.27.so
--18041--   Considering /lib/x86_64-linux-gnu/libc-2.27.so ..
--18041--   .. CRC mismatch (computed cb654923 wanted 8713c55a)
--18041--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.27.so ..
--18041--   .. CRC is valid
--18041-- REDIR: 0x50fbb70 (libc.so.6:memmove) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fae80 (libc.so.6:strncpy) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbe50 (libc.so.6:strcasecmp) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fa8d0 (libc.so.6:strcat) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50faeb0 (libc.so.6:rindex) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fd5a0 (libc.so.6:rawmemchr) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbce0 (libc.so.6:mempcpy) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbb10 (libc.so.6:bcmp) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fae40 (libc.so.6:strncmp) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fa940 (libc.so.6:strcmp) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbc40 (libc.so.6:memset) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x5118ed0 (libc.so.6:wcschr) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fade0 (libc.so.6:strnlen) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fa9b0 (libc.so.6:strcspn) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbea0 (libc.so.6:strncasecmp) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fa980 (libc.so.6:strcpy) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbfe0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50faee0 (libc.so.6:strpbrk) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fa900 (libc.so.6:index) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fadb0 (libc.so.6:strlen) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x51054a0 (libc.so.6:memrchr) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbef0 (libc.so.6:strcasecmp_l) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbae0 (libc.so.6:memchr) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x5119c90 (libc.so.6:wcslen) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fb190 (libc.so.6:strspn) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbe20 (libc.so.6:stpncpy) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbdf0 (libc.so.6:stpcpy) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fd5d0 (libc.so.6:strchrnul) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x50fbf40 (libc.so.6:strncasecmp_l) redirected to 0x4a2c6e0 (_vgnU_ifunc_wrapper)
--18041-- REDIR: 0x51eb300 (libc.so.6:__strrchr_avx2) redirected to 0x4c34730 (rindex)
--18041-- REDIR: 0x51eb4d0 (libc.so.6:__strlen_avx2) redirected to 0x4c34cf0 (strlen)
--18041-- REDIR: 0x50f4140 (libc.so.6:malloc) redirected to 0x4c31aa0 (malloc)
--18041-- REDIR: 0x51eb110 (libc.so.6:__strchrnul_avx2) redirected to 0x4c39020 (strchrnul)
--18041-- REDIR: 0x51eb9f0 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x4c39130 (mempcpy)
--18041-- REDIR: 0x5113320 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c34dd0 (strcpy)
--18041-- REDIR: 0x51e7240 (libc.so.6:__strspn_sse42) redirected to 0x4c39990 (strspn)
--18041-- REDIR: 0x51e6fb0 (libc.so.6:__strcspn_sse42) redirected to 0x4c398d0 (strcspn)
--18041-- REDIR: 0x5106c50 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c35da0 (strcmp)
--18041-- REDIR: 0x50f4a30 (libc.so.6:free) redirected to 0x4c32cd0 (free)
--18041-- REDIR: 0x51e2450 (libc.so.6:__strncmp_sse42) redirected to 0x4c35570 (__strncmp_sse42)
--18041-- REDIR: 0x51eba10 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x4c386e0 (memmove)
testint 'a b	c' with '	 ' separator(s)
got string a
got string b
got string c

testint '    x  y 	  z' with ' 	' separator(s)
got string x
got string y
got string z

testint 'a;b;c;' with ';' separator(s)
got string a
got string b
got string c

testint 'a;b;  c;;' with ';' separator(s)
got string a
got string b
got string   c

testint '' with ';' separator(s)

testint ';;;' with ';' separator(s)

==18041== 
==18041== HEAP SUMMARY:
==18041==     in use at exit: 0 bytes in 0 blocks
==18041==   total heap usage: 15 allocs, 15 frees, 4,857 bytes allocated
==18041== 
==18041== All heap blocks were freed -- no leaks are possible
==18041== 
==18041== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==18041== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main