src/dblib/unittests/done_handling

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

==10759== Memcheck, a memory error detector
==10759== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10759== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==10759== Command: ./done_handling
==10759== 
--10759-- Valgrind options:
--10759--    --tool=memcheck
--10759--    --vgdb=no
--10759--    --num-callers=20
--10759--    --leak-check=yes
--10759--    -v
--10759--    --show-reachable=yes
--10759--    --log-fd=3
--10759--    --suppressions=/home/freddy/suppressions.supp
--10759--    --track-origins=yes
--10759-- Contents of /proc/version:
--10759--   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
--10759-- 
--10759-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--10759-- Page sizes: currently 4096, max supported 4096
--10759-- Valgrind library directory: /home/freddy/install/lib/valgrind
--10759-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/test1/src/dblib/unittests/done_handling
--10759-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--10759--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--10759--   .. CRC is valid
--10759-- Reading syms from /home/freddy/install/lib/valgrind/memcheck-amd64-linux
--10759--    object doesn't have a dynamic symbol table
--10759-- Scheduler: using generic scheduler lock implementation.
--10759-- Reading suppressions file: /home/freddy/suppressions.supp
--10759-- Reading suppressions file: /home/freddy/install/lib/valgrind/default.supp
--10759-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809ecf1 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--10759-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x3809ed0b (vgPlain_amd64_linux_REDIR_FOR_index)
--10759-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_core-amd64-linux.so
--10759-- Reading syms from /home/freddy/install/lib/valgrind/vgpreload_memcheck-amd64-linux.so
==10759== WARNING: new redirection conflicts with existing -- ignoring it
--10759--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809ecf1 vgPlain_amd64_linux_REDIR_FOR_strlen
--10759--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c30a90 strlen
--10759-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c31b40 (strcmp)
--10759-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c34d20 (mempcpy)
--10759-- Reading syms from /home/freddy/ftdstmp/ftds_comp100/src/dblib/.libs/libsybdb.so.5.1.0
--10759-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--10759--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--10759--   .. build-id is valid
--10759-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--10759--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--10759--   .. CRC is valid
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
--10759--   Considering /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2 ..
--10759--   .. CRC mismatch (computed 234d2626 wanted 1ab49fb0)
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /lib/x86_64-linux-gnu/libssl.so.1.0.0
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
--10759--   Considering /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 ..
--10759--   .. CRC mismatch (computed a79adaf9 wanted 3edf8bac)
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
--10759--   Considering /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 ..
--10759--   .. CRC mismatch (computed 5654054d wanted 7d4672a0)
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /lib/x86_64-linux-gnu/libcom_err.so.2.1
--10759--   Considering /lib/x86_64-linux-gnu/libcom_err.so.2.1 ..
--10759--   .. CRC mismatch (computed 0c5846b0 wanted 1b47dcd1)
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
--10759--   Considering /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 ..
--10759--   .. CRC mismatch (computed 84efbe11 wanted 9d23b09f)
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--10759--   .. CRC mismatch (computed b7ff3c20 wanted 623a46c3)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--10759--   .. CRC is valid
--10759-- Reading syms from /lib/x86_64-linux-gnu/libkeyutils.so.1.5
--10759--    object doesn't have a symbol table
--10759-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libresolv-2.23.so ..
--10759--   .. CRC mismatch (computed 87659676 wanted 8389f31d)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.23.so ..
--10759--   .. CRC is valid
--10759-- REDIR: 0x53b2fd0 (libc.so.6:strcasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53ae850 (libc.so.6:strcspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b52c0 (libc.so.6:strncasecmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b0cc0 (libc.so.6:strpbrk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b1050 (libc.so.6:strspn) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b271b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53ad050 (libc.so.6:index) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b2180 (libc.so.6:bcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53ad2a0 (libc.so.6:strcmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b79c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53b09d0 (libc.so.6:rindex) redirected to 0x4c30410 (rindex)
--10759-- REDIR: 0x53aecf0 (libc.so.6:strlen) redirected to 0x4c309d0 (strlen)
--10759-- REDIR: 0x53a7550 (libc.so.6:malloc) redirected to 0x4c2db2f (malloc)
--10759-- REDIR: 0x54716d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c31f10 (memcpy@@GLIBC_2.14)
--10759-- REDIR: 0x53b2780 (libc.so.6:memset) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x54961a0 (libc.so.6:__memset_avx2) redirected to 0x4c33f30 (memset)
--10759-- REDIR: 0x5491c60 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33740 (__memcmp_sse4_1)
--10759-- REDIR: 0x53a7a70 (libc.so.6:free) redirected to 0x4c2ec29 (free)
--10759-- REDIR: 0x53a8290 (libc.so.6:calloc) redirected to 0x4c2f8b2 (calloc)
--10759-- REDIR: 0x53b0990 (libc.so.6:strncpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53c95d0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c30fe0 (__strncpy_sse2_unaligned)
--10759-- REDIR: 0x53b2e20 (libc.so.6:stpcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53ca5b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4c33b90 (__stpcpy_sse2_unaligned)
--10759-- REDIR: 0x53b7a40 (libc.so.6:__GI_memcpy) redirected to 0x4c32570 (__GI_memcpy)
--10759-- REDIR: 0x5439bc0 (libc.so.6:__strcpy_chk) redirected to 0x4c348c0 (__strcpy_chk)
--10759-- REDIR: 0x53af140 (libc.so.6:__GI_strncmp) redirected to 0x4c31180 (__GI_strncmp)
--10759-- REDIR: 0x53b1630 (libc.so.6:__GI_strstr) redirected to 0x4c34f80 (__strstr_sse2)
--10759-- REDIR: 0x53b1e30 (libc.so.6:memchr) redirected to 0x4c31be0 (memchr)
--10759-- REDIR: 0x53b9d30 (libc.so.6:strchrnul) redirected to 0x4c34850 (strchrnul)
found sqlexpress.tempdb for sa in "../../../PWD"
--10759-- REDIR: 0x53b2980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34a50 (__GI_mempcpy)
SQL text will be read from ../../../src/dblib/unittests/done_handling.sql
--10759-- REDIR: 0x53ad080 (libc.so.6:__GI_strchr) redirected to 0x4c30570 (__GI_strchr)
--10759-- REDIR: 0x546e1b0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c312d0 (strcasecmp)
--10759-- REDIR: 0x53c2b40 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31a00 (strcmp)
--10759-- REDIR: 0x546f820 (libc.so.6:__strncasecmp_avx) redirected to 0x4c313b0 (strncasecmp)
--10759-- REDIR: 0x53ad2e0 (libc.so.6:__GI_strcmp) redirected to 0x4c31a50 (__GI_strcmp)
--10759-- REDIR: 0x53b2e60 (libc.so.6:__GI_stpcpy) redirected to 0x4c339f0 (__GI_stpcpy)
--10759-- Reading syms from /lib/x86_64-linux-gnu/libnss_compat-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libnss_compat-2.23.so ..
--10759--   .. CRC mismatch (computed a9955d05 wanted fb5bcc8f)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_compat-2.23.so ..
--10759--   .. CRC is valid
--10759-- Reading syms from /lib/x86_64-linux-gnu/libnsl-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libnsl-2.23.so ..
--10759--   .. CRC mismatch (computed a5a10c48 wanted 9d2e1498)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnsl-2.23.so ..
--10759--   .. CRC is valid
--10759-- REDIR: 0x53ae770 (libc.so.6:__GI_strcpy) redirected to 0x4c30b80 (__GI_strcpy)
--10759-- Reading syms from /lib/x86_64-linux-gnu/libnss_nis-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libnss_nis-2.23.so ..
--10759--   .. CRC mismatch (computed 34132a3b wanted 31617a24)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_nis-2.23.so ..
--10759--   .. CRC is valid
--10759-- Reading syms from /lib/x86_64-linux-gnu/libnss_files-2.23.so
--10759--   Considering /lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--10759--   .. CRC mismatch (computed 787ef17f wanted 48302948)
--10759--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--10759--   .. CRC is valid
--10759-- REDIR: 0x53a7c40 (libc.so.6:realloc) redirected to 0x4c2fa81 (realloc)
--10759-- REDIR: 0x53b9b20 (libc.so.6:rawmemchr) redirected to 0x4c34880 (rawmemchr)
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
--10759--   Considering /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--10759--   .. CRC mismatch (computed d872b97c wanted 2237059d)
--10759--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--10759--   .. CRC is valid
--10759-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4c33d30 (stpcpy)
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
--10759--   Considering /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--10759--   .. CRC mismatch (computed b03c450e wanted 425e109b)
--10759--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--10759--   .. CRC is valid
--10759-- REDIR: 0x53af0f0 (libc.so.6:strncmp) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x54692c0 (libc.so.6:__strncmp_sse42) redirected to 0x4c31260 (__strncmp_sse42)
--10759-- REDIR: 0x54711e0 (libc.so.6:__memmove_avx_unaligned) redirected to 0x4c31ca0 (memcpy@GLIBC_2.2.5)
--10759-- REDIR: 0x5439950 (libc.so.6:__memcpy_chk) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x54716c0 (libc.so.6:__memcpy_chk_avx_unaligned) redirected to 0x4c34e10 (__memcpy_chk)
Msg 5701, Level 0, State 2
Server 'FREETDS\SQLEXPRESS', 
	Changed database context to 'master'.
--10759-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/CP1252.so
--10759--   Considering /usr/lib/x86_64-linux-gnu/gconv/CP1252.so ..
--10759--   .. CRC mismatch (computed 4961cf62 wanted 8adf43ef)
--10759--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/CP1252.so ..
--10759--   .. CRC is valid
Msg 5703, Level 0, State 1
Server 'FREETDS\SQLEXPRESS', 
	Changed language setting to us_english.
Msg 5701, Level 0, State 1
Server 'FREETDS\SQLEXPRESS', 
	Changed database context to 'tempdb'.
	  1: create table #dummy (s char(10))
	  1: insert into #dummy values('xxx')
	  1: if object_id('done_test') is not NULL drop proc done_test
	  1: create proc done_test @a varchar(10) output 
	  2: as 
	  3: 	select * from #dummy
	  1: if object_id('done_test2') is not NULL drop proc done_test2
	  1: create proc done_test2 
	  2: as 
	  3: 	select * from #dummy where s = 'aaa' 
	  4: 	select * from #dummy
normal row with rowcount on
	  1: select * from #dummy	/* normal row */
State sqlexec         SUCCEED              COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) 
State results         SUCCEED              COLS(1) 
State nextrow         REG_ROW/MORE_ROWS    COLS(1) DATA IDLE 
State nextrow         NO_MORE_ROWS         IDLE 
State results         SUCCEED              
State nextrow         NO_MORE_ROWS         
State results         NO_MORE_RESULTS      
State more results?   NO_MORE_RESULTS      
turn rowcount off
	  1: set nocount on
normal row with rowcount off
	  1: select * from #dummy	/* normal row with no count */
State sqlexec         SUCCEED              COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) 
State results         SUCCEED              COLS(1) 
State nextrow         REG_ROW/MORE_ROWS    COLS(1) DATA 
State nextrow         NO_MORE_ROWS         COLS(1) DATA 
State results         NO_MORE_RESULTS      COLS(1) DATA 
State more results?   NO_MORE_RESULTS      COLS(1) DATA 
turn rowcount back on
	  1: set nocount off
normal row without rows
	  1: select * from #dummy where 0=1	/* normal row without rows */
State sqlexec         SUCCEED              COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) ROWS(0) 
State nextrow         NO_MORE_ROWS         COLS(1) ROWS(0) 
State results         NO_MORE_RESULTS      COLS(1) ROWS(0) 
State nextrow         NO_MORE_ROWS         COLS(1) ROWS(0) 
State nextrow         NO_MORE_ROWS         COLS(1) ROWS(0) 
State results         NO_MORE_RESULTS      COLS(1) ROWS(0) 
State more results?   NO_MORE_RESULTS      COLS(1) ROWS(0) 
error query
	  1: select dklghdlgkh from #dummy	/* error query */
Msg 207, Level 16, State 1
Server 'FREETDS\SQLEXPRESS', 
	Invalid column name 'dklghdlgkh'.
DB-Library error (severity 16):
	General SQL Server error: Check messages from the SQL Server
State sqlexec         FAIL                 
State nextrow         NO_MORE_ROWS         
State nextrow         NO_MORE_ROWS         
State results         NO_MORE_RESULTS      
State nextrow         NO_MORE_ROWS         
State nextrow         NO_MORE_ROWS         
State results         NO_MORE_RESULTS      
State more results?   NO_MORE_RESULTS      
stored procedure call with output parameters
	  1: /* stored procedure call with output parameters */
	  2: declare @s varchar(10) exec done_test @s output	
State sqlexec         SUCCEED              COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) 
State results         SUCCEED              COLS(1) 
State nextrow         REG_ROW/MORE_ROWS    COLS(1) DATA 
State nextrow         NO_MORE_ROWS         COLS(1) DATA 
State results         NO_MORE_RESULTS      COLS(1) DATA 
State more results?   NO_MORE_RESULTS      COLS(1) DATA 
execute done2
	  1: exec done_test2
State sqlexec         SUCCEED              COLS(1) 
State nextrow         NO_MORE_ROWS         COLS(1) ROWS(0) 
State nextrow         NO_MORE_ROWS         COLS(1) ROWS(0) 
State results         SUCCEED              COLS(1) 
State nextrow         REG_ROW/MORE_ROWS    COLS(1) DATA 
State nextrow         NO_MORE_ROWS         COLS(1) DATA 
State results         NO_MORE_RESULTS      COLS(1) DATA 
State more results?   NO_MORE_RESULTS      COLS(1) DATA 
drop done_test
	  1: drop proc done_test
drop done_test2
	  1: drop proc done_test2
--10759-- Discarding syms at 0x7d71700-0x7d72dd9 in /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so due to munmap()
--10759-- REDIR: 0x53ae730 (libc.so.6:strcpy) redirected to 0x4a28770 (_vgnU_ifunc_wrapper)
--10759-- REDIR: 0x53c8fa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c30ab0 (strcpy)
--10759-- Discarding syms at 0x7f75600-0x7f76266 in /usr/lib/x86_64-linux-gnu/gconv/CP1252.so due to munmap()
--10759-- Discarding syms at 0x7b6e600-0x7b6f08d in /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so due to munmap()
--10759-- Discarding syms at 0x732f2d0-0x7334bf1 in /lib/x86_64-linux-gnu/libnss_compat-2.23.so due to munmap()
--10759-- Discarding syms at 0x77520b0-0x77588ce in /lib/x86_64-linux-gnu/libnss_nis-2.23.so due to munmap()
--10759-- Discarding syms at 0x753aff0-0x75481e1 in /lib/x86_64-linux-gnu/libnsl-2.23.so due to munmap()
--10759-- Discarding syms at 0x795e1b0-0x79642a1 in /lib/x86_64-linux-gnu/libnss_files-2.23.so due to munmap()
==10759== 
==10759== HEAP SUMMARY:
==10759==     in use at exit: 6,856 bytes in 204 blocks
==10759==   total heap usage: 3,114 allocs, 2,910 frees, 1,078,738 bytes allocated
==10759== 
==10759== Searching for pointers to 204 not-freed blocks
==10759== Checked 463,160 bytes
==10759== 
==10759== LEAK SUMMARY:
==10759==    definitely lost: 0 bytes in 0 blocks
==10759==    indirectly lost: 0 bytes in 0 blocks
==10759==      possibly lost: 0 bytes in 0 blocks
==10759==    still reachable: 0 bytes in 0 blocks
==10759==         suppressed: 6,856 bytes in 204 blocks
==10759== 
==10759== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--10759-- 
--10759-- used_suppression:     26 openssl leak 4 /home/freddy/suppressions.supp:27 suppressed: 1,792 bytes in 26 blocks
--10759-- used_suppression:    161 openssl leak 3 /home/freddy/suppressions.supp:18 suppressed: 4,584 bytes in 161 blocks
--10759-- used_suppression:     12 openssl leak 1 /home/freddy/suppressions.supp:2 suppressed: 336 bytes in 12 blocks
--10759-- used_suppression:      4 openssl leak 2 /home/freddy/suppressions.supp:10 suppressed: 112 bytes in 4 blocks
--10759-- used_suppression:      1 openssl leak 5 /home/freddy/suppressions.supp:38 suppressed: 32 bytes in 1 blocks
==10759== 
==10759== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Main