src/tds/unittests/t0002

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

==12903== Memcheck, a memory error detector.
==12903== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==12903== Using LibVEX rev 1658, a library for dynamic binary translation.
==12903== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==12903== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==12903== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==12903== 
--12903-- Command line
--12903--    ./t0002
--12903-- Startup, with flags:
--12903--    --tool=memcheck
--12903--    --num-callers=20
--12903--    --leak-check=yes
--12903--    -v
--12903--    --show-reachable=yes
--12903--    --log-fd=3
--12903--    --suppressions=/home/winnt/fziglio/suppressions.supp
--12903-- Contents of /proc/version:
--12903--   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
--12903-- Arch and hwcaps: X86, x86-sse1-sse2
--12903-- Valgrind library directory: /usr/lib/valgrind
--12903-- Reading syms from /lib/ld-2.5.so (0xAE4000)
--12903-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/tds/unittests/t0002 (0x8048000)
--12903-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--12903--    object doesn't have a dynamic symbol table
--12903-- Reading suppressions file: /home/winnt/fziglio/suppressions.supp
--12903-- Reading suppressions file: /usr/lib/valgrind/default.supp
--12903-- REDIR: 0xAF9540 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)
--12903-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--12903-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==12903== WARNING: new redirection conflicts with existing -- ignoring it
--12903--     new: 0x00AF9540 (index     ) R-> 0x040060C0 index
--12903-- REDIR: 0xAF96E0 (strlen) redirected to 0x4006290 (strlen)
--12903-- Reading syms from /lib/librt-2.5.so (0x349000)
--12903-- Reading syms from /usr/lib/libgnutls.so.13.0.6 (0x6A2D000)
--12903--    object doesn't have a symbol table
--12903-- Reading syms from /lib/libpthread-2.5.so (0xD98000)
--12903-- Reading syms from /lib/libc-2.5.so (0xB29000)
--12903-- Reading syms from /usr/lib/libz.so.1.2.3 (0xB14000)
--12903--    object doesn't have a symbol table
--12903-- Reading syms from /usr/lib/libgcrypt.so.11.2.2 (0x65F1000)
--12903--    object doesn't have a symbol table
--12903-- Reading syms from /usr/lib/libgpg-error.so.0.3.0 (0xADB000)
--12903--    object doesn't have a symbol table
--12903-- Reading syms from /lib/libnsl-2.5.so (0x330000)
--12903-- REDIR: 0xB971D0 (memset) redirected to 0x4006580 (memset)
--12903-- REDIR: 0xB976C0 (memcpy) redirected to 0x4006C60 (memcpy)
--12903-- REDIR: 0xB96330 (rindex) redirected to 0x4005FA0 (rindex)
--12903-- REDIR: 0xB95F90 (strlen) redirected to 0x4006270 (strlen)
--12903-- REDIR: 0xB91260 (malloc) redirected to 0x400537B (malloc)
--12903-- REDIR: 0xB95A30 (strcmp) redirected to 0x4006340 (strcmp)
t0002.c: Test basic submit query, results
--12903-- REDIR: 0xB96CD0 (memchr) redirected to 0x4006460 (memchr)
--12903-- REDIR: 0xB95AA0 (strcpy) redirected to 0x40069F0 (strcpy)
--12903-- REDIR: 0xB92F20 (free) redirected to 0x4004F95 (free)
--12903-- REDIR: 0xB90F60 (calloc) redirected to 0x40046A8 (calloc)
--12903-- REDIR: 0xB958C0 (index) redirected to 0x4006090 (index)
--12903-- REDIR: 0xB96180 (strncmp) redirected to 0x40062D0 (strncmp)
--12903-- REDIR: 0xB98040 (strchrnul) redirected to 0x4006610 (strchrnul)
--12903-- REDIR: 0xB973C0 (stpcpy) redirected to 0x4006910 (stpcpy)
--12903-- Reading syms from /lib/libnss_files-2.5.so (0x400A000)
--12903-- Reading syms from /lib/libnss_winbind.so.2 (0x4130000)
--12903--    object doesn't have a symbol table
--12903-- REDIR: 0xB96280 (strncpy) redirected to 0x4006DE0 (strncpy)
--12903-- REDIR: 0xB97F70 (rawmemchr) redirected to 0x4006640 (rawmemchr)
--12903-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x4015000)
--12903--    object doesn't have a symbol table
--12903-- REDIR: 0xAF9AA0 (stpcpy) redirected to 0x4006830 (stpcpy)
tds_connect() failed
try_tds_login() failed
--12903-- Discarding syms at 0x4015000-0x4018000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--12903-- Discarding syms at 0x400A000-0x4015000 in /lib/libnss_files-2.5.so due to munmap()
--12903-- Discarding syms at 0x4130000-0x413B000 in /lib/libnss_winbind.so.2 due to munmap()
==12903== 
==12903== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 25 from 1)
--12903-- 
--12903-- supp:   25 Fedora-Core-6-hack3-ld25
==12903== malloc/free: in use at exit: 252 bytes in 12 blocks.
==12903== malloc/free: 152 allocs, 140 frees, 181,808 bytes allocated.
==12903== 
==12903== searching for pointers to 12 not-freed blocks.
==12903== checked 197,988 bytes.
==12903== 
==12903== 16 bytes in 1 blocks are still reachable in loss record 2 of 6
==12903==    at 0x400473F: calloc (vg_replace_malloc.c:279)
==12903==    by 0x804DE04: tds_alloc_locale (mem.c:613)
==12903==    by 0x808C9F7: tds_get_locale (locale.c:61)
==12903==    by 0x804DC14: tds_alloc_context (mem.c:583)
==12903==    by 0x804B149: try_tds_login (common.c:92)
==12903==    by 0x8049FEF: main (t0002.c:61)
==12903== 
==12903== 
==12903== 20 bytes in 1 blocks are still reachable in loss record 3 of 6
==12903==    at 0x400473F: calloc (vg_replace_malloc.c:279)
==12903==    by 0x804DC79: tds_alloc_context (mem.c:587)
==12903==    by 0x804B149: try_tds_login (common.c:92)
==12903==    by 0x8049FEF: main (t0002.c:61)
==12903== 
==12903== 
==12903== 23 bytes in 1 blocks are still reachable in loss record 4 of 6
==12903==    at 0x4005400: malloc (vg_replace_malloc.c:149)
==12903==    by 0xB95D0F: strdup (in /lib/libc-2.5.so)
==12903==    by 0x808D11D: tds_parse_locale (locale.c:130)
==12903==    by 0x8071CFD: tds_read_conf_section (config.c:465)
==12903==    by 0x808CB12: tds_get_locale (locale.c:69)
==12903==    by 0x804DC14: tds_alloc_context (mem.c:583)
==12903==    by 0x804B149: try_tds_login (common.c:92)
==12903==    by 0x8049FEF: main (t0002.c:61)
==12903== 
==12903== 
==12903== 61 bytes in 7 blocks are indirectly lost in loss record 5 of 6
==12903==    at 0x4005400: malloc (vg_replace_malloc.c:149)
==12903==    by 0x8092B01: tds_dstr_copyn (tdsstring.c:94)
==12903==    by 0x8092DCA: tds_dstr_copy (tdsstring.c:139)
==12903==    by 0x8066BA2: tds_set_user (login.c:96)
==12903==    by 0x804AF99: try_tds_login (common.c:81)
==12903==    by 0x8049FEF: main (t0002.c:61)
==12903== 
==12903== 
==12903== 189 (128 direct, 61 indirect) bytes in 1 blocks are definitely lost in loss record 6 of 6
==12903==    at 0x400473F: calloc (vg_replace_malloc.c:279)
==12903==    by 0x804F2A7: tds_alloc_login (mem.c:913)
==12903==    by 0x804AEBE: try_tds_login (common.c:75)
==12903==    by 0x8049FEF: main (t0002.c:61)
==12903== 
==12903== LEAK SUMMARY:
==12903==    definitely lost: 128 bytes in 1 blocks.
==12903==    indirectly lost: 61 bytes in 7 blocks.
==12903==      possibly lost: 0 bytes in 0 blocks.
==12903==    still reachable: 59 bytes in 3 blocks.
==12903==         suppressed: 4 bytes in 1 blocks.
--12903--  memcheck: sanity checks: 5 cheap, 1 expensive
--12903--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--12903--  memcheck: auxmaps: 0 searches, 0 comparisons
--12903--  memcheck: SMs: n_issued      = 27 (432k, 0M)
--12903--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--12903--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--12903--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--12903--  memcheck: SMs: max_defined   = 38 (608k, 0M)
--12903--  memcheck: SMs: max_non_DSM   = 27 (432k, 0M)
--12903--  memcheck: max sec V bit nodes:    4 (0k, 0M)
--12903--  memcheck: set_sec_vbits8 calls: 4 (new: 4, updates: 0)
--12903--  memcheck: max shadow mem size:   736k, 0M
--12903-- translate:            fast SP updates identified: 7,045 ( 90.4%)
--12903-- translate:   generic_known SP updates identified: 494 (  6.3%)
--12903-- translate: generic_unknown SP updates identified: 252 (  3.2%)
--12903--     tt/tc: 12,354 tt lookups requiring 12,912 probes
--12903--     tt/tc: 12,354 fast-cache updates, 6 flushes
--12903--  transtab: new        5,628 (134,553 -> 2,241,801; ratio 166:10) [0 scs]
--12903--  transtab: dumped     0 (0 -> ??)
--12903--  transtab: discarded  361 (7,182 -> ??)
--12903-- scheduler: 503,826 jumps (bb entries).
--12903-- scheduler: 5/7,736 major/minor sched events.
--12903--    sanity: 6 cheap, 1 expensive checks.
--12903--    exectx: 30,011 lists, 168 contexts (avg 0 per list)
--12903--    exectx: 317 searches, 149 full compares (470 per 1000)
--12903--    exectx: 10 cmp2, 71 cmp4, 0 cmpAll

Main