src/ctlib/unittests/ct_dynamic

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

==13312== Memcheck, a memory error detector.
==13312== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==13312== Using LibVEX rev 1658, a library for dynamic binary translation.
==13312== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==13312== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==13312== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==13312== 
--13312-- Command line
--13312--    ./ct_dynamic
--13312-- Startup, with flags:
--13312--    --tool=memcheck
--13312--    --num-callers=20
--13312--    --leak-check=yes
--13312--    -v
--13312--    --show-reachable=yes
--13312--    --log-fd=3
--13312--    --suppressions=/home/winnt/fziglio/suppressions.supp
--13312-- Contents of /proc/version:
--13312--   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
--13312-- Arch and hwcaps: X86, x86-sse1-sse2
--13312-- Valgrind library directory: /usr/lib/valgrind
--13312-- Reading syms from /lib/ld-2.5.so (0xAE4000)
--13312-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/ctlib/unittests/ct_dynamic (0x8048000)
--13312-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--13312--    object doesn't have a dynamic symbol table
--13312-- Reading suppressions file: /home/winnt/fziglio/suppressions.supp
--13312-- Reading suppressions file: /usr/lib/valgrind/default.supp
--13312-- REDIR: 0xAF9540 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)
--13312-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--13312-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==13312== WARNING: new redirection conflicts with existing -- ignoring it
--13312--     new: 0x00AF9540 (index     ) R-> 0x040060C0 index
--13312-- REDIR: 0xAF96E0 (strlen) redirected to 0x4006290 (strlen)
--13312-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/ctlib/.libs/libct.so.4.0.0 (0x4009000)
--13312-- Reading syms from /lib/librt-2.5.so (0x349000)
--13312-- Reading syms from /usr/lib/libgnutls.so.13.0.6 (0x6A2D000)
--13312--    object doesn't have a symbol table
--13312-- Reading syms from /lib/libpthread-2.5.so (0xD98000)
--13312-- Reading syms from /lib/libc-2.5.so (0xB29000)
--13312-- Reading syms from /usr/lib/libz.so.1.2.3 (0xB14000)
--13312--    object doesn't have a symbol table
--13312-- Reading syms from /usr/lib/libgcrypt.so.11.2.2 (0x65F1000)
--13312--    object doesn't have a symbol table
--13312-- Reading syms from /usr/lib/libgpg-error.so.0.3.0 (0xADB000)
--13312--    object doesn't have a symbol table
--13312-- Reading syms from /lib/libnsl-2.5.so (0x330000)
--13312-- REDIR: 0xB971D0 (memset) redirected to 0x4006580 (memset)
--13312-- REDIR: 0xB976C0 (memcpy) redirected to 0x4006C60 (memcpy)
--13312-- REDIR: 0xB96330 (rindex) redirected to 0x4005FA0 (rindex)
--13312-- REDIR: 0xB95F90 (strlen) redirected to 0x4006270 (strlen)
--13312-- REDIR: 0xB91260 (malloc) redirected to 0x400537B (malloc)
--13312-- REDIR: 0xB95A30 (strcmp) redirected to 0x4006340 (strcmp)
ct_dynamic.c: use ct_dynamic/ct_param to prepare and execute  a statement 
--13312-- REDIR: 0xB96CD0 (memchr) redirected to 0x4006460 (memchr)
--13312-- REDIR: 0xB95AA0 (strcpy) redirected to 0x40069F0 (strcpy)
--13312-- REDIR: 0xB92F20 (free) redirected to 0x4004F95 (free)
--13312-- REDIR: 0xB90F60 (calloc) redirected to 0x40046A8 (calloc)
--13312-- REDIR: 0xB958C0 (index) redirected to 0x4006090 (index)
--13312-- REDIR: 0xB96180 (strncmp) redirected to 0x40062D0 (strncmp)
--13312-- REDIR: 0xB98040 (strchrnul) redirected to 0x4006610 (strchrnul)
--13312-- REDIR: 0xB973C0 (stpcpy) redirected to 0x4006910 (stpcpy)
--13312-- Reading syms from /lib/libnss_files-2.5.so (0x40BD000)
--13312-- Reading syms from /lib/libnss_winbind.so.2 (0x41E3000)
--13312--    object doesn't have a symbol table
--13312-- REDIR: 0xB96280 (strncpy) redirected to 0x4006DE0 (strncpy)
--13312-- REDIR: 0xB97F70 (rawmemchr) redirected to 0x4006640 (rawmemchr)
--13312-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x40C8000)
--13312--    object doesn't have a symbol table
--13312-- REDIR: 0xAF9AA0 (stpcpy) redirected to 0x4006830 (stpcpy)
Login failed
--13312-- Discarding syms at 0x40C8000-0x40CB000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--13312-- Discarding syms at 0x40BD000-0x40C8000 in /lib/libnss_files-2.5.so due to munmap()
--13312-- Discarding syms at 0x41E3000-0x41EE000 in /lib/libnss_winbind.so.2 due to munmap()
==13312== 
==13312== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 1)
--13312-- 
--13312-- supp:   27 Fedora-Core-6-hack3-ld25
==13312== malloc/free: in use at exit: 312 bytes in 10 blocks.
==13312== malloc/free: 158 allocs, 148 frees, 184,679 bytes allocated.
==13312== 
==13312== searching for pointers to 10 not-freed blocks.
==13312== checked 230,700 bytes.
==13312== 
==13312== 16 bytes in 1 blocks are indirectly lost in loss record 2 of 8
==13312==    at 0x400473F: calloc (vg_replace_malloc.c:279)
==13312==    by 0x40324E0: tds_alloc_locale (mem.c:613)
==13312==    by 0x407ED1F: tds_get_locale (locale.c:61)
==13312==    by 0x40322F0: tds_alloc_context (mem.c:583)
==13312==    by 0x402336C: cs_ctx_alloc (cs.c:319)
==13312==    by 0x804C579: try_ctlogin (common.c:89)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== 
==13312== 17 bytes in 1 blocks are indirectly lost in loss record 3 of 8
==13312==    at 0x4005400: malloc (vg_replace_malloc.c:149)
==13312==    by 0xB95D0F: strdup (in /lib/libc-2.5.so)
==13312==    by 0x804C6EB: try_ctlogin (common.c:101)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== 
==13312== 20 bytes in 1 blocks are indirectly lost in loss record 4 of 8
==13312==    at 0x400473F: calloc (vg_replace_malloc.c:279)
==13312==    by 0x4032355: tds_alloc_context (mem.c:587)
==13312==    by 0x402336C: cs_ctx_alloc (cs.c:319)
==13312==    by 0x804C579: try_ctlogin (common.c:89)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== 
==13312== 23 bytes in 3 blocks are indirectly lost in loss record 5 of 8
==13312==    at 0x4005400: malloc (vg_replace_malloc.c:149)
==13312==    by 0x40857DD: tds_dstr_copyn (tdsstring.c:94)
==13312==    by 0x4085AA6: tds_dstr_copy (tdsstring.c:139)
==13312==    by 0x404B6CC: tds_set_library (login.c:151)
==13312==    by 0x400DDD1: ct_con_alloc (ct.c:278)
==13312==    by 0x804C7E6: try_ctlogin (common.c:111)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== 
==13312== 64 bytes in 1 blocks are indirectly lost in loss record 6 of 8
==13312==    at 0x4005400: malloc (vg_replace_malloc.c:149)
==13312==    by 0x4023302: cs_ctx_alloc (cs.c:317)
==13312==    by 0x804C579: try_ctlogin (common.c:89)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== 
==13312== 128 bytes in 1 blocks are indirectly lost in loss record 7 of 8
==13312==    at 0x400473F: calloc (vg_replace_malloc.c:279)
==13312==    by 0x4033983: tds_alloc_login (mem.c:913)
==13312==    by 0x400DC8E: ct_con_alloc (ct.c:263)
==13312==    by 0x804C7E6: try_ctlogin (common.c:111)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== 
==13312== 308 (40 direct, 268 indirect) bytes in 1 blocks are definitely lost in loss record 8 of 8
==13312==    at 0x4005400: malloc (vg_replace_malloc.c:149)
==13312==    by 0x400DCEB: ct_con_alloc (ct.c:266)
==13312==    by 0x804C7E6: try_ctlogin (common.c:111)
==13312==    by 0x80491F5: main (ct_dynamic.c:59)
==13312== 
==13312== LEAK SUMMARY:
==13312==    definitely lost: 40 bytes in 1 blocks.
==13312==    indirectly lost: 268 bytes in 8 blocks.
==13312==      possibly lost: 0 bytes in 0 blocks.
==13312==    still reachable: 0 bytes in 0 blocks.
==13312==         suppressed: 4 bytes in 1 blocks.
--13312--  memcheck: sanity checks: 6 cheap, 1 expensive
--13312--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--13312--  memcheck: auxmaps: 0 searches, 0 comparisons
--13312--  memcheck: SMs: n_issued      = 28 (448k, 0M)
--13312--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--13312--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--13312--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--13312--  memcheck: SMs: max_defined   = 41 (656k, 0M)
--13312--  memcheck: SMs: max_non_DSM   = 28 (448k, 0M)
--13312--  memcheck: max sec V bit nodes:    4 (0k, 0M)
--13312--  memcheck: set_sec_vbits8 calls: 4 (new: 4, updates: 0)
--13312--  memcheck: max shadow mem size:   752k, 0M
--13312-- translate:            fast SP updates identified: 7,641 ( 90.4%)
--13312-- translate:   generic_known SP updates identified: 542 (  6.4%)
--13312-- translate: generic_unknown SP updates identified: 267 (  3.1%)
--13312--     tt/tc: 12,959 tt lookups requiring 13,615 probes
--13312--     tt/tc: 12,959 fast-cache updates, 6 flushes
--13312--  transtab: new        6,005 (143,932 -> 2,399,166; ratio 166:10) [0 scs]
--13312--  transtab: dumped     0 (0 -> ??)
--13312--  transtab: discarded  361 (7,182 -> ??)
--13312-- scheduler: 644,391 jumps (bb entries).
--13312-- scheduler: 6/8,143 major/minor sched events.
--13312--    sanity: 7 cheap, 1 expensive checks.
--13312--    exectx: 30,011 lists, 168 contexts (avg 0 per list)
--13312--    exectx: 333 searches, 165 full compares (495 per 1000)
--13312--    exectx: 18 cmp2, 75 cmp4, 0 cmpAll

Main