src/ctlib/unittests/ct_cursors

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

==1098== Memcheck, a memory error detector
==1098== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==1098== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==1098== Command: ./ct_cursors
==1098== 
--1098-- Valgrind options:
--1098--    --tool=memcheck
--1098--    --vgdb=no
--1098--    --num-callers=20
--1098--    --leak-check=yes
--1098--    -v
--1098--    --show-reachable=yes
--1098--    --log-fd=3
--1098--    --suppressions=/home/freddy/suppressions.supp
--1098--    --track-origins=yes
--1098-- Contents of /proc/version:
--1098--   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
--1098-- 
--1098-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--1098-- Page sizes: currently 4096, max supported 4096
--1098-- Valgrind library directory: /home/freddy/install/lib/valgrind
--1098-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/test1/src/ctlib/unittests/ct_cursors
--1098-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--1098--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--1098--   .. CRC is valid
--1098-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--1098--    object doesn't have a dynamic symbol table
--1098-- Scheduler: using generic scheduler lock implementation.
--1098-- Reading suppressions file: /home/freddy/suppressions.supp
--1098-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--1098-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809ecf1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--1098-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x3809ed0b (vgPlain_amd64_linux_REDIR_FOR_index)
--1098-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--1098-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==1098== WARNING: new redirection conflicts with existing -- ignoring it
--1098--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809ecf1 vgPlain_amd64_linux_REDIR_FOR_strlen
--1098--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c30a90 strlen
--1098-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c31b40 (strcmp)
--1098-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c34d20 (mempcpy)
--1098-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/src/ctlib/.libs/libct.so.4.0.0
--1098-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--1098--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--1098--   .. build-id is valid
--1098-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--1098--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--1098--   .. CRC is valid
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
--1098--   Considering /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2 ..
--1098--   .. CRC mismatch (computed 234d2626 wanted 1ab49fb0)
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /lib/x86_64-linux-gnu/libssl.so.1.0.0
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
--1098--   Considering /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 ..
--1098--   .. CRC mismatch (computed a79adaf9 wanted 3edf8bac)
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
--1098--   Considering /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 ..
--1098--   .. CRC mismatch (computed 5654054d wanted 7d4672a0)
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /lib/x86_64-linux-gnu/libcom_err.so.2.1
--1098--   Considering /lib/x86_64-linux-gnu/libcom_err.so.2.1 ..
--1098--   .. CRC mismatch (computed 0c5846b0 wanted 1b47dcd1)
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
--1098--   Considering /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 ..
--1098--   .. CRC mismatch (computed 84efbe11 wanted 9d23b09f)
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--1098--   .. CRC mismatch (computed b7ff3c20 wanted 623a46c3)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--1098--   .. CRC is valid
--1098-- Reading syms from /lib/x86_64-linux-gnu/libkeyutils.so.1.5
--1098--    object doesn't have a symbol table
--1098-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libresolv-2.23.so ..
--1098--   .. CRC mismatch (computed 87659676 wanted 8389f31d)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.23.so ..
--1098--   .. CRC is valid
--1098-- REDIR: 0x5390fd0 (libc.so.6:strcasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x538c850 (libc.so.6:strcspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x53932c0 (libc.so.6:strncasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x538ecc0 (libc.so.6:strpbrk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x538f050 (libc.so.6:strspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x539071b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x538b050 (libc.so.6:index) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x5390180 (libc.so.6:bcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x538b2a0 (libc.so.6:strcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x53959c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x538e9d0 (libc.so.6:rindex) redirected to 0x4c30410 (rindex)
--1098-- REDIR: 0x538ccf0 (libc.so.6:strlen) redirected to 0x4c309d0 (strlen)
--1098-- REDIR: 0x5385550 (libc.so.6:malloc) redirected to 0x4c2db2f (malloc)
--1098-- REDIR: 0x544f6d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c31f10 (memcpy@@GLIBC_2.14)
--1098-- REDIR: 0x5390780 (libc.so.6:memset) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x54741a0 (libc.so.6:__memset_avx2) redirected to 0x4c33f30 (memset)
--1098-- REDIR: 0x546fc60 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33740 (__memcmp_sse4_1)
--1098-- REDIR: 0x5385a70 (libc.so.6:free) redirected to 0x4c2ec29 (free)
--1098-- REDIR: 0x5386290 (libc.so.6:calloc) redirected to 0x4c2f8b2 (calloc)
--1098-- REDIR: 0x538e990 (libc.so.6:strncpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x53a75d0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c30fe0 (__strncpy_sse2_unaligned)
--1098-- REDIR: 0x5390e20 (libc.so.6:stpcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x53a85b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4c33b90 (__stpcpy_sse2_unaligned)
--1098-- REDIR: 0x5397d30 (libc.so.6:strchrnul) redirected to 0x4c34850 (strchrnul)
--1098-- REDIR: 0x5390980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34a50 (__GI_mempcpy)
ct_cursors.c: use multiple cursors on the same connection
Trying login
--1098-- REDIR: 0x538d140 (libc.so.6:__GI_strncmp) redirected to 0x4c31180 (__GI_strncmp)
--1098-- REDIR: 0x538f630 (libc.so.6:__GI_strstr) redirected to 0x4c34f80 (__strstr_sse2)
--1098-- REDIR: 0x538fe30 (libc.so.6:memchr) redirected to 0x4c31be0 (memchr)
--1098-- REDIR: 0x5395a40 (libc.so.6:__GI_memcpy) redirected to 0x4c32570 (__GI_memcpy)
--1098-- REDIR: 0x5417bc0 (libc.so.6:__strcpy_chk) redirected to 0x4c348c0 (__strcpy_chk)
--1098-- REDIR: 0x538b080 (libc.so.6:__GI_strchr) redirected to 0x4c30570 (__GI_strchr)
--1098-- REDIR: 0x544c1b0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c312d0 (strcasecmp)
connecting as sa to sqlexpress.tempdb
--1098-- REDIR: 0x53a0b40 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31a00 (strcmp)
--1098-- REDIR: 0x544d820 (libc.so.6:__strncasecmp_avx) redirected to 0x4c313b0 (strncasecmp)
--1098-- REDIR: 0x538b2e0 (libc.so.6:__GI_strcmp) redirected to 0x4c31a50 (__GI_strcmp)
--1098-- REDIR: 0x5390e60 (libc.so.6:__GI_stpcpy) redirected to 0x4c339f0 (__GI_stpcpy)
--1098-- Reading syms from /lib/x86_64-linux-gnu/libnss_compat-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libnss_compat-2.23.so ..
--1098--   .. CRC mismatch (computed a9955d05 wanted fb5bcc8f)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_compat-2.23.so ..
--1098--   .. CRC is valid
--1098-- Reading syms from /lib/x86_64-linux-gnu/libnsl-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libnsl-2.23.so ..
--1098--   .. CRC mismatch (computed a5a10c48 wanted 9d2e1498)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnsl-2.23.so ..
--1098--   .. CRC is valid
--1098-- REDIR: 0x538c770 (libc.so.6:__GI_strcpy) redirected to 0x4c30b80 (__GI_strcpy)
--1098-- Reading syms from /lib/x86_64-linux-gnu/libnss_nis-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libnss_nis-2.23.so ..
--1098--   .. CRC mismatch (computed 34132a3b wanted 31617a24)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_nis-2.23.so ..
--1098--   .. CRC is valid
--1098-- Reading syms from /lib/x86_64-linux-gnu/libnss_files-2.23.so
--1098--   Considering /lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--1098--   .. CRC mismatch (computed 787ef17f wanted 48302948)
--1098--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--1098--   .. CRC is valid
--1098-- REDIR: 0x5385c40 (libc.so.6:realloc) redirected to 0x4c2fa81 (realloc)
--1098-- REDIR: 0x5397b20 (libc.so.6:rawmemchr) redirected to 0x4c34880 (rawmemchr)
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
--1098--   Considering /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--1098--   .. CRC mismatch (computed d872b97c wanted 2237059d)
--1098--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--1098--   .. CRC is valid
--1098-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4c33d30 (stpcpy)
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
--1098--   Considering /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--1098--   .. CRC mismatch (computed b03c450e wanted 425e109b)
--1098--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--1098--   .. CRC is valid
--1098-- REDIR: 0x538d0f0 (libc.so.6:strncmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x54472c0 (libc.so.6:__strncmp_sse42) redirected to 0x4c31260 (__strncmp_sse42)
--1098-- REDIR: 0x544f1e0 (libc.so.6:__memmove_avx_unaligned) redirected to 0x4c31ca0 (memcpy@GLIBC_2.2.5)
--1098-- REDIR: 0x5417950 (libc.so.6:__memcpy_chk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x544f6c0 (libc.so.6:__memcpy_chk_avx_unaligned) redirected to 0x4c34e10 (__memcpy_chk)
Changed database context to 'master'.
--1098-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/CP1252.so
--1098--   Considering /usr/lib/x86_64-linux-gnu/gconv/CP1252.so ..
--1098--   .. CRC mismatch (computed 4961cf62 wanted 8adf43ef)
--1098--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/CP1252.so ..
--1098--   .. CRC is valid
Changed language setting to us_english.
Changed database context to 'tempdb'.
opening first cursor on connection
opening second cursor on connection
AAA 			XXX 
BBB 			YYY 
CCC 			ZZZ 
closing first cursor on connection
closing second cursor on connection
Trying logout
--1098-- Discarding syms at 0x7d4f700-0x7d50dd9 in /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so due to munmap()
Test succeded
--1098-- REDIR: 0x538c730 (libc.so.6:strcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--1098-- REDIR: 0x53a6fa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c30ab0 (strcpy)
--1098-- Discarding syms at 0x7f53600-0x7f54266 in /usr/lib/x86_64-linux-gnu/gconv/CP1252.so due to munmap()
--1098-- Discarding syms at 0x7b4c600-0x7b4d08d in /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so due to munmap()
--1098-- Discarding syms at 0x730d2d0-0x7312bf1 in /lib/x86_64-linux-gnu/libnss_compat-2.23.so due to munmap()
--1098-- Discarding syms at 0x77300b0-0x77368ce in /lib/x86_64-linux-gnu/libnss_nis-2.23.so due to munmap()
--1098-- Discarding syms at 0x7518ff0-0x75261e1 in /lib/x86_64-linux-gnu/libnsl-2.23.so due to munmap()
--1098-- Discarding syms at 0x793c1b0-0x79422a1 in /lib/x86_64-linux-gnu/libnss_files-2.23.so due to munmap()
==1098== 
==1098== HEAP SUMMARY:
==1098==     in use at exit: 6,856 bytes in 204 blocks
==1098==   total heap usage: 3,095 allocs, 2,891 frees, 1,024,405 bytes allocated
==1098== 
==1098== Searching for pointers to 204 not-freed blocks
==1098== Checked 438,616 bytes
==1098== 
==1098== LEAK SUMMARY:
==1098==    definitely lost: 0 bytes in 0 blocks
==1098==    indirectly lost: 0 bytes in 0 blocks
==1098==      possibly lost: 0 bytes in 0 blocks
==1098==    still reachable: 0 bytes in 0 blocks
==1098==         suppressed: 6,856 bytes in 204 blocks
==1098== 
==1098== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--1098-- 
--1098-- used_suppression:     26 openssl leak 4 /home/freddy/suppressions.supp:27 suppressed: 1,792 bytes in 26 blocks
--1098-- used_suppression:    161 openssl leak 3 /home/freddy/suppressions.supp:18 suppressed: 4,584 bytes in 161 blocks
--1098-- used_suppression:     12 openssl leak 1 /home/freddy/suppressions.supp:2 suppressed: 336 bytes in 12 blocks
--1098-- used_suppression:      4 openssl leak 2 /home/freddy/suppressions.supp:10 suppressed: 112 bytes in 4 blocks
--1098-- used_suppression:      1 openssl leak 5 /home/freddy/suppressions.supp:38 suppressed: 32 bytes in 1 blocks
==1098== 
==1098== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main