src/replacements/unittests/strtok_r

Main

Hostnamefreddy
uname -aLinux freddy 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
date2016-05-31

==20552== Memcheck, a memory error detector
==20552== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==20552== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==20552== Command: ./strtok_r
==20552== 
--20552-- Valgrind options:
--20552--    --tool=memcheck
--20552--    --vgdb=no
--20552--    --num-callers=20
--20552--    --leak-check=yes
--20552--    -v
--20552--    --show-reachable=yes
--20552--    --log-fd=3
--20552--    --suppressions=/home/freddy/suppressions.supp
--20552--    --track-origins=yes
--20552-- Contents of /proc/version:
--20552--   Linux version 4.4.0-22-generic (buildd@lgw01-41) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016
--20552-- 
--20552-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--20552-- Page sizes: currently 4096, max supported 4096
--20552-- Valgrind library directory: /home/freddy/install/lib/valgrind
--20552-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/test4/src/replacements/unittests/strtok_r
--20552-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--20552--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--20552--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--20552--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--20552--   .. CRC is valid
--20552-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--20552--    object doesn't have a dynamic symbol table
--20552-- Scheduler: using generic scheduler lock implementation.
--20552-- Reading suppressions file: /home/freddy/suppressions.supp
--20552-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--20552-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809ecf1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--20552-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x3809ed0b (vgPlain_amd64_linux_REDIR_FOR_index)
--20552-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--20552-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==20552== WARNING: new redirection conflicts with existing -- ignoring it
--20552--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809ecf1 vgPlain_amd64_linux_REDIR_FOR_strlen
--20552--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c30a90 strlen
--20552-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c31b40 (strcmp)
--20552-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c34d20 (mempcpy)
--20552-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--20552--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--20552--   .. build-id is valid
--20552-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--20552--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--20552--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--20552--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--20552--   .. CRC is valid
--20552-- REDIR: 0x50e4fd0 (libc.so.6:strcasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50e0850 (libc.so.6:strcspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50e72c0 (libc.so.6:strncasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50e2cc0 (libc.so.6:strpbrk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50e3050 (libc.so.6:strspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50e471b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50e29d0 (libc.so.6:rindex) redirected to 0x4c30410 (rindex)
--20552-- REDIR: 0x50e0cf0 (libc.so.6:strlen) redirected to 0x4c309d0 (strlen)
--20552-- REDIR: 0x50d9550 (libc.so.6:malloc) redirected to 0x4c2db2f (malloc)
--20552-- REDIR: 0x50ebd30 (libc.so.6:strchrnul) redirected to 0x4c34850 (strchrnul)
--20552-- REDIR: 0x50e4980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34a50 (__GI_mempcpy)
testint 'a b	c' with '	 ' separator(s)
--20552-- REDIR: 0x50e0730 (libc.so.6:strcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50fafa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c30ab0 (strcpy)
--20552-- REDIR: 0x51a0090 (libc.so.6:__strspn_sse42) redirected to 0x4c35120 (strspn)
--20552-- REDIR: 0x519ff60 (libc.so.6:__strpbrk_sse42) redirected to 0x4c35060 (strpbrk)
--20552-- REDIR: 0x50df2a0 (libc.so.6:strcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x50f4b40 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31a00 (strcmp)
got string a
got string b
got string c

--20552-- REDIR: 0x50d9a70 (libc.so.6:free) redirected to 0x4c2ec29 (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)

--20552-- REDIR: 0x50e1140 (libc.so.6:__GI_strncmp) redirected to 0x4c31180 (__GI_strncmp)
--20552-- REDIR: 0x50e99c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--20552-- REDIR: 0x51a36d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c31f10 (memcpy@@GLIBC_2.14)
==20552== 
==20552== HEAP SUMMARY:
==20552==     in use at exit: 0 bytes in 0 blocks
==20552==   total heap usage: 15 allocs, 15 frees, 1,789 bytes allocated
==20552== 
==20552== All heap blocks were freed -- no leaks are possible
==20552== 
==20552== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==20552== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main