src/replacements/unittests/strtok_r

Main

Hostnamefreddy
uname -aLinux freddy 4.13.0-17-generic #20-Ubuntu SMP Mon Nov 6 10:04:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
date2017-12-12

==30959== Memcheck, a memory error detector
==30959== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==30959== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==30959== Command: ./strtok_r
==30959== 
--30959-- Valgrind options:
--30959--    --tool=memcheck
--30959--    --vgdb=no
--30959--    --num-callers=20
--30959--    --leak-check=yes
--30959--    -v
--30959--    --show-reachable=yes
--30959--    --log-fd=3
--30959--    --suppressions=/home/freddy/suppressions.supp
--30959--    --track-origins=yes
--30959-- Contents of /proc/version:
--30959--   Linux version 4.13.0-17-generic (buildd@lcy01-amd64-011) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3)) #20-Ubuntu SMP Mon Nov 6 10:04:08 UTC 2017
--30959-- 
--30959-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--30959-- Page sizes: currently 4096, max supported 4096
--30959-- Valgrind library directory: /home/freddy/install/lib/valgrind
--30959-- Reading syms from /home/freddy/ftdstmp/ftds_comp99m/test4/src/replacements/unittests/strtok_r
--30959-- Reading syms from /lib/x86_64-linux-gnu/ld-2.26.so
--30959--   Considering /lib/x86_64-linux-gnu/ld-2.26.so ..
--30959--   .. CRC mismatch (computed 8e133c77 wanted 4706bdfa)
--30959--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.26.so ..
--30959--   .. CRC is valid
--30959-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--30959--    object doesn't have a dynamic symbol table
--30959-- Scheduler: using generic scheduler lock implementation.
--30959-- Reading suppressions file: /home/freddy/suppressions.supp
--30959-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--30959-- REDIR: 0x401f7b0 (ld-linux-x86-64.so.2:strlen) redirected to 0x380a60c1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--30959-- REDIR: 0x401f590 (ld-linux-x86-64.so.2:index) redirected to 0x380a60db (vgPlain_amd64_linux_REDIR_FOR_index)
--30959-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--30959-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==30959== WARNING: new redirection conflicts with existing -- ignoring it
--30959--     old: 0x0401f7b0 (strlen              ) R-> (0000.0) 0x380a60c1 vgPlain_amd64_linux_REDIR_FOR_strlen
--30959--     new: 0x0401f7b0 (strlen              ) R-> (2007.0) 0x04c32c60 strlen
--30959-- REDIR: 0x401d820 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c33d60 (strcmp)
--30959-- REDIR: 0x401fcf0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c37130 (mempcpy)
--30959-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.26.so
--30959--   Considering /usr/lib/debug/.build-id/4a/08084aa956dcb4ad3e4c2295b927f237767bfe.debug ..
--30959--   .. build-id is valid
--30959-- Reading syms from /lib/x86_64-linux-gnu/libc-2.26.so
--30959--   Considering /lib/x86_64-linux-gnu/libc-2.26.so ..
--30959--   .. CRC mismatch (computed cc2bbe88 wanted e29f45fb)
--30959--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.26.so ..
--30959--   .. CRC is valid
--30959-- REDIR: 0x50efef0 (libc.so.6:memmove) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eefb0 (libc.so.6:strncpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f01d0 (libc.so.6:strcasecmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eea00 (libc.so.6:strcat) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eefe0 (libc.so.6:rindex) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f1b50 (libc.so.6:rawmemchr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f0060 (libc.so.6:mempcpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50efe80 (libc.so.6:bcmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eef70 (libc.so.6:strncmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eea70 (libc.so.6:strcmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50effc0 (libc.so.6:memset) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x510deb0 (libc.so.6:wcschr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eef10 (libc.so.6:strnlen) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eeae0 (libc.so.6:strcspn) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f0220 (libc.so.6:strncasecmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eeab0 (libc.so.6:strcpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f0360 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50ef010 (libc.so.6:strpbrk) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eea30 (libc.so.6:index) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50eeee0 (libc.so.6:strlen) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50fa4b0 (libc.so.6:memrchr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f0270 (libc.so.6:strcasecmp_l) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50efe50 (libc.so.6:memchr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x510ec60 (libc.so.6:wcslen) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50ef2f0 (libc.so.6:strspn) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f01a0 (libc.so.6:stpncpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f0170 (libc.so.6:stpcpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f1b80 (libc.so.6:strchrnul) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x50f02c0 (libc.so.6:strncasecmp_l) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--30959-- REDIR: 0x51d96a0 (libc.so.6:__strrchr_avx2) redirected to 0x4c325f0 (rindex)
--30959-- REDIR: 0x51d9870 (libc.so.6:__strlen_avx2) redirected to 0x4c32ba0 (strlen)
--30959-- REDIR: 0x50e9e90 (libc.so.6:malloc) redirected to 0x4c2fb1f (malloc)
--30959-- REDIR: 0x51d94b0 (libc.so.6:__strchrnul_avx2) redirected to 0x4c36c60 (strchrnul)
--30959-- REDIR: 0x51d9d90 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x4c36d70 (mempcpy)
testint 'a b	c' with '	 ' separator(s)
--30959-- REDIR: 0x51c6c50 (libc.so.6:__strcpy_ssse3) redirected to 0x4c32c80 (strcpy)
--30959-- REDIR: 0x51d55e0 (libc.so.6:__strspn_sse42) redirected to 0x4c37530 (strspn)
--30959-- REDIR: 0x51d5370 (libc.so.6:__strcspn_sse42) redirected to 0x4c374d0 (strcspn)
--30959-- REDIR: 0x51d54b0 (libc.so.6:__strpbrk_sse42) redirected to 0x4c37470 (strpbrk)
--30959-- REDIR: 0x51b5060 (libc.so.6:__strcmp_ssse3) redirected to 0x4c33c20 (strcmp)
got string a
got string b
got string c

--30959-- REDIR: 0x50ea390 (libc.so.6:free) redirected to 0x4c30ccc (free)
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)

--30959-- REDIR: 0x51d0810 (libc.so.6:__strncmp_sse42) redirected to 0x4c33430 (__strncmp_sse42)
--30959-- REDIR: 0x51d9db0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x4c363c0 (memmove)
==30959== 
==30959== HEAP SUMMARY:
==30959==     in use at exit: 0 bytes in 0 blocks
==30959==   total heap usage: 15 allocs, 15 frees, 1,789 bytes allocated
==30959== 
==30959== All heap blocks were freed -- no leaks are possible
==30959== 
==30959== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==30959== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main