src/tds/unittests/t0008

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

==4884== Memcheck, a memory error detector
==4884== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==4884== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==4884== Command: ./t0008
==4884== 
--4884-- Valgrind options:
--4884--    --tool=memcheck
--4884--    --vgdb=no
--4884--    --num-callers=20
--4884--    --leak-check=yes
--4884--    -v
--4884--    --show-reachable=yes
--4884--    --log-fd=3
--4884--    --suppressions=/home/freddy/suppressions.supp
--4884--    --track-origins=yes
--4884-- Contents of /proc/version:
--4884--   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
--4884-- 
--4884-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--4884-- Page sizes: currently 4096, max supported 4096
--4884-- Valgrind library directory: /home/freddy/install/lib/valgrind
--4884-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/test3/src/tds/unittests/t0008
--4884-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--4884--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--4884--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--4884--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--4884--   .. CRC is valid
--4884-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--4884--    object doesn't have a dynamic symbol table
--4884-- Scheduler: using generic scheduler lock implementation.
--4884-- Reading suppressions file: /home/freddy/suppressions.supp
--4884-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--4884-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809ecf1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--4884-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x3809ed0b (vgPlain_amd64_linux_REDIR_FOR_index)
--4884-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--4884-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==4884== WARNING: new redirection conflicts with existing -- ignoring it
--4884--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809ecf1 vgPlain_amd64_linux_REDIR_FOR_strlen
--4884--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c30a90 strlen
--4884-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c31b40 (strcmp)
--4884-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c34d20 (mempcpy)
--4884-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--4884--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--4884--   .. build-id is valid
--4884-- Reading syms from /lib/x86_64-linux-gnu/libssl.so.1.0.0
--4884--    object doesn't have a symbol table
--4884-- Reading syms from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
--4884--    object doesn't have a symbol table
--4884-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--4884--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--4884--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--4884--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--4884--   .. CRC is valid
--4884-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--4884--   Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--4884--   .. CRC mismatch (computed b7ff3c20 wanted 623a46c3)
--4884--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--4884--   .. CRC is valid
--4884-- REDIR: 0x57a8fd0 (libc.so.6:strcasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57a4850 (libc.so.6:strcspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57ab2c0 (libc.so.6:strncasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57a6cc0 (libc.so.6:strpbrk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57a7050 (libc.so.6:strspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57a871b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57a32a0 (libc.so.6:strcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57a69d0 (libc.so.6:rindex) redirected to 0x4c30410 (rindex)
--4884-- REDIR: 0x57a4cf0 (libc.so.6:strlen) redirected to 0x4c309d0 (strlen)
--4884-- REDIR: 0x579d550 (libc.so.6:malloc) redirected to 0x4c2db2f (malloc)
--4884-- REDIR: 0x57ad9c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x58676d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c31f10 (memcpy@@GLIBC_2.14)
--4884-- REDIR: 0x57a8780 (libc.so.6:memset) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x588c1a0 (libc.so.6:__memset_avx2) redirected to 0x4c33f30 (memset)
--4884-- REDIR: 0x57a8180 (libc.so.6:bcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x5887c60 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33740 (__memcmp_sse4_1)
--4884-- REDIR: 0x579da70 (libc.so.6:free) redirected to 0x4c2ec29 (free)
--4884-- REDIR: 0x579e290 (libc.so.6:calloc) redirected to 0x4c2f8b2 (calloc)
--4884-- REDIR: 0x57a6990 (libc.so.6:strncpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57bf5d0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c30fe0 (__strncpy_sse2_unaligned)
--4884-- REDIR: 0x57a8e20 (libc.so.6:stpcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57c05b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4c33b90 (__stpcpy_sse2_unaligned)
test some valid values..
--4884-- REDIR: 0x582fbc0 (libc.so.6:__strcpy_chk) redirected to 0x4c348c0 (__strcpy_chk)
--4884-- REDIR: 0x582f950 (libc.so.6:__memcpy_chk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x58676c0 (libc.so.6:__memcpy_chk_avx_unaligned) redirected to 0x4c34e10 (__memcpy_chk)
--4884-- REDIR: 0x57afd30 (libc.so.6:strchrnul) redirected to 0x4c34850 (strchrnul)
--4884-- REDIR: 0x57afb20 (libc.so.6:rawmemchr) redirected to 0x4c34880 (rawmemchr)
--4884-- REDIR: 0x57a8980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34a50 (__GI_mempcpy)
prec=18 scale=0 00 00 00 00 00 00 00 04 D2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
--4884-- REDIR: 0x57b8b40 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31a00 (strcmp)
prec=18 scale=0 00 00 00 00 00 49 96 02 D2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1234567890
prec=18 scale=0 00 01 B6 9B 4B A6 30 F3 4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
123456789012345678
prec=18 scale=0 00 0D E0 B6 B3 A7 63 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
999999999999999999
test overflow..
error
error
prec=18 scale=0 00 00 00 00 00 00 00 04 D2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
prec=38 scale=0 00 00 00 00 01 8E E9 0F F6 C3 73 E0 EE 4E 3F 0A D2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
123456789012345678901234567890
error
prec=38 scale=0 00 4B 3B 4C A8 5A 86 C4 7A 09 8A 22 3F FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
99999999999999999999999999999999999999
error
prec=18 scale=1 00 00 00 00 00 00 00 30 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
prec=18 scale=2 00 00 00 00 00 00 01 E2 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1234.56
prec=18 scale=5 00 00 00 00 00 00 00 00 7B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0.00123
prec=18 scale=4 00 00 00 00 00 00 00 00 7B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0.0123
prec=18 scale=3 00 00 00 00 00 00 00 00 7B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0.123
prec=18 scale=2 00 00 00 00 00 00 00 00 7B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1.23
prec=18 scale=1 00 00 00 00 00 00 00 00 7B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
12.3
prec=18 scale=4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0.0000
prec=18 scale=0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0
--4884-- REDIR: 0x57a5140 (libc.so.6:__GI_strncmp) redirected to 0x4c31180 (__GI_strncmp)
--4884-- REDIR: 0x57a4730 (libc.so.6:strcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--4884-- REDIR: 0x57befa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c30ab0 (strcpy)
==4884== 
==4884== HEAP SUMMARY:
==4884==     in use at exit: 1,824 bytes in 27 blocks
==4884==   total heap usage: 1,636 allocs, 1,609 frees, 234,576 bytes allocated
==4884== 
==4884== Searching for pointers to 27 not-freed blocks
==4884== Checked 298,272 bytes
==4884== 
==4884== LEAK SUMMARY:
==4884==    definitely lost: 0 bytes in 0 blocks
==4884==    indirectly lost: 0 bytes in 0 blocks
==4884==      possibly lost: 0 bytes in 0 blocks
==4884==    still reachable: 0 bytes in 0 blocks
==4884==         suppressed: 1,824 bytes in 27 blocks
==4884== 
==4884== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--4884-- 
--4884-- used_suppression:     26 openssl leak 4 /home/freddy/suppressions.supp:27 suppressed: 1,792 bytes in 26 blocks
--4884-- used_suppression:      1 openssl leak 5 /home/freddy/suppressions.supp:38 suppressed: 32 bytes in 1 blocks
==4884== 
==4884== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main