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

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

--13499-- 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)

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

Main