src/replacements/unittests/strtok_r

Main

Hostnamefreddy
uname -aLinux freddy 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
date2018-05-24

==9409== Memcheck, a memory error detector
==9409== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==9409== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==9409== Command: ./strtok_r
==9409== 
--9409-- Valgrind options:
--9409--    --tool=memcheck
--9409--    --vgdb=no
--9409--    --num-callers=20
--9409--    --leak-check=yes
--9409--    -v
--9409--    --show-reachable=yes
--9409--    --log-fd=3
--9409--    --suppressions=/home/freddy/suppressions.supp
--9409--    --track-origins=yes
--9409-- Contents of /proc/version:
--9409--   Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018
--9409-- 
--9409-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--9409-- Page sizes: currently 4096, max supported 4096
--9409-- Valgrind library directory: /home/freddy/install/lib/valgrind
--9409-- Reading syms from /home/freddy/ftdstmp/ftds_comp99m/test5/src/replacements/unittests/strtok_r
--9409-- Reading syms from /lib/x86_64-linux-gnu/ld-2.27.so
--9409--   Considering /lib/x86_64-linux-gnu/ld-2.27.so ..
--9409--   .. CRC mismatch (computed 1b7c895e wanted 2943108a)
--9409--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.27.so ..
--9409--   .. CRC is valid
--9409-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--9409--    object doesn't have a dynamic symbol table
--9409-- Scheduler: using generic scheduler lock implementation.
--9409-- Reading suppressions file: /home/freddy/suppressions.supp
--9409-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--9409-- REDIR: 0x401f2f0 (ld-linux-x86-64.so.2:strlen) redirected to 0x380a60c1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--9409-- REDIR: 0x401f0d0 (ld-linux-x86-64.so.2:index) redirected to 0x380a60db (vgPlain_amd64_linux_REDIR_FOR_index)
--9409-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--9409-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==9409== WARNING: new redirection conflicts with existing -- ignoring it
--9409--     old: 0x0401f2f0 (strlen              ) R-> (0000.0) 0x380a60c1 vgPlain_amd64_linux_REDIR_FOR_strlen
--9409--     new: 0x0401f2f0 (strlen              ) R-> (2007.0) 0x04c32c60 strlen
--9409-- REDIR: 0x401d360 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c33d60 (strcmp)
--9409-- REDIR: 0x401f830 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c37130 (mempcpy)
--9409-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.27.so
--9409--   Considering /usr/lib/debug/.build-id/28/c6aade70b2d40d1f0f3d0a1a0cad1ab816448f.debug ..
--9409--   .. build-id is valid
--9409-- Reading syms from /lib/x86_64-linux-gnu/libc-2.27.so
--9409--   Considering /lib/x86_64-linux-gnu/libc-2.27.so ..
--9409--   .. CRC mismatch (computed b1c74187 wanted 042cc048)
--9409--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.27.so ..
--9409--   .. CRC is valid
--9409-- REDIR: 0x50f9c70 (libc.so.6:memmove) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8d40 (libc.so.6:strncpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9f50 (libc.so.6:strcasecmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8790 (libc.so.6:strcat) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8d70 (libc.so.6:rindex) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50fb7c0 (libc.so.6:rawmemchr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9de0 (libc.so.6:mempcpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9c10 (libc.so.6:bcmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8d00 (libc.so.6:strncmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8800 (libc.so.6:strcmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9d40 (libc.so.6:memset) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x51170f0 (libc.so.6:wcschr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8ca0 (libc.so.6:strnlen) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8870 (libc.so.6:strcspn) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9fa0 (libc.so.6:strncasecmp) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8840 (libc.so.6:strcpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50fa0e0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8da0 (libc.so.6:strpbrk) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f87c0 (libc.so.6:index) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f8c70 (libc.so.6:strlen) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x51036c0 (libc.so.6:memrchr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9ff0 (libc.so.6:strcasecmp_l) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9be0 (libc.so.6:memchr) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x5117eb0 (libc.so.6:wcslen) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9050 (libc.so.6:strspn) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9f20 (libc.so.6:stpncpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50f9ef0 (libc.so.6:stpcpy) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50fb7f0 (libc.so.6:strchrnul) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x50fa040 (libc.so.6:strncasecmp_l) redirected to 0x4a2a742 (_vgnU_ifunc_wrapper)
--9409-- REDIR: 0x51e93c0 (libc.so.6:__strrchr_avx2) redirected to 0x4c325f0 (rindex)
--9409-- REDIR: 0x51e9590 (libc.so.6:__strlen_avx2) redirected to 0x4c32ba0 (strlen)
--9409-- REDIR: 0x50f2070 (libc.so.6:malloc) redirected to 0x4c2fb1f (malloc)
--9409-- REDIR: 0x51e91d0 (libc.so.6:__strchrnul_avx2) redirected to 0x4c36c60 (strchrnul)
--9409-- REDIR: 0x51e9ab0 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x4c36d70 (mempcpy)
testint 'a b	c' with '	 ' separator(s)
--9409-- REDIR: 0x51d6950 (libc.so.6:__strcpy_ssse3) redirected to 0x4c32c80 (strcpy)
--9409-- REDIR: 0x51e5300 (libc.so.6:__strspn_sse42) redirected to 0x4c37530 (strspn)
--9409-- REDIR: 0x51e5070 (libc.so.6:__strcspn_sse42) redirected to 0x4c374d0 (strcspn)
--9409-- REDIR: 0x51e51b0 (libc.so.6:__strpbrk_sse42) redirected to 0x4c37470 (strpbrk)
--9409-- REDIR: 0x51c4d60 (libc.so.6:__strcmp_ssse3) redirected to 0x4c33c20 (strcmp)
got string a
got string b
got string c

--9409-- REDIR: 0x50f2950 (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)

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

Main