src/dblib/unittests/t0021

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

==16349== Memcheck, a memory error detector
==16349== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==16349== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==16349== Command: ./t0021
==16349== 
--16349-- Valgrind options:
--16349--    --tool=memcheck
--16349--    --vgdb=no
--16349--    --num-callers=20
--16349--    --leak-check=yes
--16349--    -v
--16349--    --show-reachable=yes
--16349--    --log-fd=3
--16349--    --suppressions=/home/freddy/suppressions.supp
--16349--    --track-origins=yes
--16349-- Contents of /proc/version:
--16349--   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
--16349-- 
--16349-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--16349-- Page sizes: currently 4096, max supported 4096
--16349-- Valgrind library directory: /home/freddy/install/lib/valgrind
--16349-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/test3/src/dblib/unittests/t0021
--16349-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--16349--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--16349--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--16349--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--16349--   .. CRC is valid
--16349-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--16349--    object doesn't have a dynamic symbol table
--16349-- Scheduler: using generic scheduler lock implementation.
--16349-- Reading suppressions file: /home/freddy/suppressions.supp
--16349-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--16349-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809ecf1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--16349-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x3809ed0b (vgPlain_amd64_linux_REDIR_FOR_index)
--16349-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--16349-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==16349== WARNING: new redirection conflicts with existing -- ignoring it
--16349--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809ecf1 vgPlain_amd64_linux_REDIR_FOR_strlen
--16349--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c30a90 strlen
--16349-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c31b40 (strcmp)
--16349-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c34d20 (mempcpy)
--16349-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/src/dblib/.libs/libsybdb.so.5.1.0
--16349-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--16349--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--16349--   .. build-id is valid
--16349-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--16349--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--16349--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--16349--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--16349--   .. CRC is valid
--16349-- Reading syms from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
--16349--   Considering /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2 ..
--16349--   .. CRC mismatch (computed 234d2626 wanted 1ab49fb0)
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /lib/x86_64-linux-gnu/libssl.so.1.0.0
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
--16349--   Considering /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 ..
--16349--   .. CRC mismatch (computed a79adaf9 wanted 3edf8bac)
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
--16349--   Considering /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 ..
--16349--   .. CRC mismatch (computed 5654054d wanted 7d4672a0)
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /lib/x86_64-linux-gnu/libcom_err.so.2.1
--16349--   Considering /lib/x86_64-linux-gnu/libcom_err.so.2.1 ..
--16349--   .. CRC mismatch (computed 0c5846b0 wanted 1b47dcd1)
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
--16349--   Considering /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 ..
--16349--   .. CRC mismatch (computed 84efbe11 wanted 9d23b09f)
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--16349--   Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--16349--   .. CRC mismatch (computed b7ff3c20 wanted 623a46c3)
--16349--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--16349--   .. CRC is valid
--16349-- Reading syms from /lib/x86_64-linux-gnu/libkeyutils.so.1.5
--16349--    object doesn't have a symbol table
--16349-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.23.so
--16349--   Considering /lib/x86_64-linux-gnu/libresolv-2.23.so ..
--16349--   .. CRC mismatch (computed 87659676 wanted 8389f31d)
--16349--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.23.so ..
--16349--   .. CRC is valid
--16349-- REDIR: 0x53b2fd0 (libc.so.6:strcasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53ae850 (libc.so.6:strcspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b52c0 (libc.so.6:strncasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b0cc0 (libc.so.6:strpbrk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b1050 (libc.so.6:strspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b271b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53ad050 (libc.so.6:index) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b2180 (libc.so.6:bcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53ad2a0 (libc.so.6:strcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b79c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53b09d0 (libc.so.6:rindex) redirected to 0x4c30410 (rindex)
--16349-- REDIR: 0x53aecf0 (libc.so.6:strlen) redirected to 0x4c309d0 (strlen)
--16349-- REDIR: 0x53a7550 (libc.so.6:malloc) redirected to 0x4c2db2f (malloc)
--16349-- REDIR: 0x54716d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c31f10 (memcpy@@GLIBC_2.14)
--16349-- REDIR: 0x53b2780 (libc.so.6:memset) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x54961a0 (libc.so.6:__memset_avx2) redirected to 0x4c33f30 (memset)
--16349-- REDIR: 0x5491c60 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33740 (__memcmp_sse4_1)
--16349-- REDIR: 0x53a7a70 (libc.so.6:free) redirected to 0x4c2ec29 (free)
--16349-- REDIR: 0x53a8290 (libc.so.6:calloc) redirected to 0x4c2f8b2 (calloc)
--16349-- REDIR: 0x53b0990 (libc.so.6:strncpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53c95d0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c30fe0 (__strncpy_sse2_unaligned)
--16349-- REDIR: 0x53b2e20 (libc.so.6:stpcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53ca5b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4c33b90 (__stpcpy_sse2_unaligned)
--16349-- REDIR: 0x53b9d30 (libc.so.6:strchrnul) redirected to 0x4c34850 (strchrnul)
--16349-- REDIR: 0x53b2980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34a50 (__GI_mempcpy)
Starting ./t0021
--16349-- REDIR: 0x53b1630 (libc.so.6:__GI_strstr) redirected to 0x4c34f80 (__strstr_sse2)
--16349-- REDIR: 0x53b1e30 (libc.so.6:memchr) redirected to 0x4c31be0 (memchr)
--16349-- REDIR: 0x53b7a40 (libc.so.6:__GI_memcpy) redirected to 0x4c32570 (__GI_memcpy)
--16349-- REDIR: 0x53ad080 (libc.so.6:__GI_strchr) redirected to 0x4c30570 (__GI_strchr)
--16349-- REDIR: 0x546e1b0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c312d0 (strcasecmp)
short buffer, single
This is a string with '' and " in it
single quote
This is a string with '' and " in it.
double quote
This is a string with ' and "" in it.
both quotes
This is a string with '' and "" in it.
t0021.c OK
--16349-- REDIR: 0x53af140 (libc.so.6:__GI_strncmp) redirected to 0x4c31180 (__GI_strncmp)
--16349-- REDIR: 0x53ae730 (libc.so.6:strcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--16349-- REDIR: 0x53c8fa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c30ab0 (strcpy)
==16349== 
==16349== HEAP SUMMARY:
==16349==     in use at exit: 1,824 bytes in 27 blocks
==16349==   total heap usage: 1,672 allocs, 1,645 frees, 285,370 bytes allocated
==16349== 
==16349== Searching for pointers to 27 not-freed blocks
==16349== Checked 458,304 bytes
==16349== 
==16349== LEAK SUMMARY:
==16349==    definitely lost: 0 bytes in 0 blocks
==16349==    indirectly lost: 0 bytes in 0 blocks
==16349==      possibly lost: 0 bytes in 0 blocks
==16349==    still reachable: 0 bytes in 0 blocks
==16349==         suppressed: 1,824 bytes in 27 blocks
==16349== 
==16349== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--16349-- 
--16349-- used_suppression:     26 openssl leak 4 /home/freddy/suppressions.supp:27 suppressed: 1,792 bytes in 26 blocks
--16349-- used_suppression:      1 openssl leak 5 /home/freddy/suppressions.supp:38 suppressed: 32 bytes in 1 blocks
==16349== 
==16349== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main