src/odbc/unittests/params

Main

Hostnameobon110
gcc versiongcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)
uname -aLinux obon110 2.6.23.1-1smp #3 SMP Mon Nov 5 20:51:48 CET 2007 i686 i686 i386 GNU/Linux
date2008-07-03

==20106== Memcheck, a memory error detector.
==20106== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==20106== Using LibVEX rev 1658, a library for dynamic binary translation.
==20106== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==20106== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==20106== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==20106== 
--20106-- Command line
--20106--    ./params
--20106-- Startup, with flags:
--20106--    --tool=memcheck
--20106--    --num-callers=20
--20106--    --leak-check=yes
--20106--    -v
--20106--    --show-reachable=yes
--20106--    --log-fd=3
--20106--    --suppressions=/home/winnt/fziglio/suppressions.supp
--20106-- Contents of /proc/version:
--20106--   Linux version 2.6.23.1-1smp (fziglio@obon110) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)) #3 SMP Mon Nov 5 20:51:48 CET 2007
--20106-- Arch and hwcaps: X86, x86-sse1-sse2
--20106-- Valgrind library directory: /usr/lib/valgrind
--20106-- Reading syms from /lib/ld-2.5.so (0xAE4000)
--20106-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp_old/src/odbc/unittests/params (0x8048000)
--20106-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--20106--    object doesn't have a dynamic symbol table
--20106-- Reading suppressions file: /home/winnt/fziglio/suppressions.supp
--20106-- Reading suppressions file: /usr/lib/valgrind/default.supp
--20106-- REDIR: 0xAF9540 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)
--20106-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--20106-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==20106== WARNING: new redirection conflicts with existing -- ignoring it
--20106--     new: 0x00AF9540 (index     ) R-> 0x040060C0 index
--20106-- REDIR: 0xAF96E0 (strlen) redirected to 0x4006290 (strlen)
--20106-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp_old/src/odbc/.libs/libtdsodbc.so.0.0.0 (0x4009000)
--20106-- Reading syms from /usr/lib/libgnutls.so.13.0.6 (0x6A2D000)
--20106--    object doesn't have a symbol table
--20106-- Reading syms from /lib/libc-2.5.so (0xB29000)
--20106-- Reading syms from /usr/lib/libz.so.1.2.3 (0xB14000)
--20106--    object doesn't have a symbol table
--20106-- Reading syms from /usr/lib/libgcrypt.so.11.2.2 (0x65F1000)
--20106--    object doesn't have a symbol table
--20106-- Reading syms from /usr/lib/libgpg-error.so.0.3.0 (0xADB000)
--20106--    object doesn't have a symbol table
--20106-- Reading syms from /lib/libnsl-2.5.so (0x330000)
--20106-- REDIR: 0xB96330 (rindex) redirected to 0x4005FA0 (rindex)
--20106-- REDIR: 0xB95F90 (strlen) redirected to 0x4006270 (strlen)
--20106-- REDIR: 0xB91260 (malloc) redirected to 0x400537B (malloc)
--20106-- REDIR: 0xB976C0 (memcpy) redirected to 0x4006C60 (memcpy)
--20106-- REDIR: 0xB95A30 (strcmp) redirected to 0x4006340 (strcmp)
--20106-- REDIR: 0xB96CD0 (memchr) redirected to 0x4006460 (memchr)
--20106-- REDIR: 0xB95AA0 (strcpy) redirected to 0x40069F0 (strcpy)
--20106-- REDIR: 0xB92F20 (free) redirected to 0x4004F95 (free)
--20106-- REDIR: 0xB95710 (strcat) redirected to 0x4006660 (strcat)
--20106-- REDIR: 0xB958C0 (index) redirected to 0x4006090 (index)
--20106-- REDIR: 0xB96180 (strncmp) redirected to 0x40062D0 (strncmp)
--20106-- REDIR: 0xB93110 (realloc) redirected to 0x400542A (realloc)
--20106-- REDIR: 0xB971D0 (memset) redirected to 0x4006580 (memset)
odbctest
--------

connection parameters:
server:   'TESTSRV'
user:     'test'
password: '????'
database: 'test'
--20106-- REDIR: 0xB98040 (strchrnul) redirected to 0x4006610 (strchrnul)
--20106-- REDIR: 0xB973C0 (stpcpy) redirected to 0x4006910 (stpcpy)
--20106-- REDIR: 0xB90F60 (calloc) redirected to 0x40046A8 (calloc)
--20106-- Reading syms from /lib/libnss_files-2.5.so (0x40CA000)
--20106-- Reading syms from /lib/libnss_winbind.so.2 (0x41EF000)
--20106--    object doesn't have a symbol table
--20106-- REDIR: 0xB96280 (strncpy) redirected to 0x4006DE0 (strncpy)
--20106-- REDIR: 0xB97F70 (rawmemchr) redirected to 0x4006640 (rawmemchr)
--20106-- Reading syms from /lib/libnss_dns-2.5.so (0x41FA000)
--20106-- Reading syms from /lib/libresolv-2.5.so (0x592000)
--20106-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x40D5000)
--20106--    object doesn't have a symbol table
--20106-- REDIR: 0xAF9AA0 (stpcpy) redirected to 0x4006830 (stpcpy)
--20106-- REDIR: 0xB97160 (memmove) redirected to 0x40065B0 (memmove)
--20106-- Reading syms from /usr/lib/gconv/CP1252.so (0x41E4000)
--20106--    object doesn't have a symbol table
use test
drop proc spTestProc
Unable to execute statement
CREATE PROCEDURE spTestProc
    @InParam int,
    @OutParam int OUTPUT,
    @OutString varchar(20) OUTPUT
AS
     SELECT @OutParam = @InParam
     SELECT @OutString = 'This is cool!'
     IF @InParam < 10
          RETURN (0)
     ELSE
          RETURN (1)

drop proc spTestProc
Output:
   Return Code = 0
   InParam = 5
   OutParam = 5
   OutString = This is cool!
odbctest
--------

connection parameters:
server:   'TESTSRV'
user:     'test'
password: '????'
database: 'test'
use test
drop proc spTestProc
Unable to execute statement
CREATE PROCEDURE spTestProc
    @InParam int,
    @OutParam int OUTPUT,
    @OutString varchar(20) OUTPUT
AS
     SELECT @OutParam = @InParam
     SELECT @OutString = 'This is cool!'
     IF @InParam < 10
          RETURN (0)
     ELSE
          RETURN (1)

drop proc spTestProc
Output:
   Return Code = 0
   InParam = 5
   OutParam = 5
   OutString = This is cool!
Done successfully!
--20106-- Discarding syms at 0x41E4000-0x41E8000 in /usr/lib/gconv/CP1252.so due to munmap()
--20106-- Discarding syms at 0x40D5000-0x40D8000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--20106-- Discarding syms at 0x40CA000-0x40D5000 in /lib/libnss_files-2.5.so due to munmap()
--20106-- Discarding syms at 0x41EF000-0x41FA000 in /lib/libnss_winbind.so.2 due to munmap()
--20106-- Discarding syms at 0x41FA000-0x4200000 in /lib/libnss_dns-2.5.so due to munmap()
--20106-- Discarding syms at 0x592000-0x5A5000 in /lib/libresolv-2.5.so due to munmap()
==20106== 
==20106== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 30 from 1)
--20106-- 
--20106-- supp:   30 Fedora-Core-6-hack3-ld25
==20106== malloc/free: in use at exit: 2,028 bytes in 32 blocks.
==20106== malloc/free: 8,095 allocs, 8,063 frees, 1,008,618 bytes allocated.
==20106== 
==20106== searching for pointers to 32 not-freed blocks.
==20106== checked 224,596 bytes.
==20106== 
==20106== LEAK SUMMARY:
==20106==    definitely lost: 0 bytes in 0 blocks.
==20106==      possibly lost: 0 bytes in 0 blocks.
==20106==    still reachable: 0 bytes in 0 blocks.
==20106==         suppressed: 2,028 bytes in 32 blocks.
--20106--  memcheck: sanity checks: 31 cheap, 2 expensive
--20106--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--20106--  memcheck: auxmaps: 0 searches, 0 comparisons
--20106--  memcheck: SMs: n_issued      = 45 (720k, 0M)
--20106--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--20106--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--20106--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--20106--  memcheck: SMs: max_defined   = 42 (672k, 0M)
--20106--  memcheck: SMs: max_non_DSM   = 45 (720k, 0M)
--20106--  memcheck: max sec V bit nodes:    9 (0k, 0M)
--20106--  memcheck: set_sec_vbits8 calls: 16 (new: 9, updates: 7)
--20106--  memcheck: max shadow mem size:   1024k, 1M
--20106-- translate:            fast SP updates identified: 16,519 ( 89.0%)
--20106-- translate:   generic_known SP updates identified: 1,580 (  8.5%)
--20106-- translate: generic_unknown SP updates identified: 458 (  2.4%)
--20106--     tt/tc: 37,969 tt lookups requiring 43,307 probes
--20106--     tt/tc: 37,969 fast-cache updates, 9 flushes
--20106--  transtab: new        13,918 (416,748 -> 6,714,024; ratio 161:10) [0 scs]
--20106--  transtab: dumped     0 (0 -> ??)
--20106--  transtab: discarded  890 (18,387 -> ??)
--20106-- scheduler: 3,137,881 jumps (bb entries).
--20106-- scheduler: 31/42,224 major/minor sched events.
--20106--    sanity: 32 cheap, 2 expensive checks.
--20106--    exectx: 30,011 lists, 1,702 contexts (avg 0 per list)
--20106--    exectx: 16,140 searches, 14,533 full compares (900 per 1000)
--20106--    exectx: 30 cmp2, 82 cmp4, 0 cmpAll

Main