src/dblib/unittests/bcp

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

==13717== Memcheck, a memory error detector.
==13717== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==13717== Using LibVEX rev 1658, a library for dynamic binary translation.
==13717== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==13717== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==13717== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==13717== 
--13717-- Command line
--13717--    ./bcp
--13717-- Startup, with flags:
--13717--    --tool=memcheck
--13717--    --num-callers=20
--13717--    --leak-check=yes
--13717--    -v
--13717--    --show-reachable=yes
--13717--    --log-fd=3
--13717--    --suppressions=/home/winnt/fziglio/suppressions.supp
--13717-- Contents of /proc/version:
--13717--   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
--13717-- Arch and hwcaps: X86, x86-sse1-sse2
--13717-- Valgrind library directory: /usr/lib/valgrind
--13717-- Reading syms from /lib/ld-2.5.so (0xAE4000)
--13717-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/dblib/unittests/bcp (0x8048000)
--13717-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--13717--    object doesn't have a dynamic symbol table
--13717-- Reading suppressions file: /home/winnt/fziglio/suppressions.supp
--13717-- Reading suppressions file: /usr/lib/valgrind/default.supp
--13717-- REDIR: 0xAF9540 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)
--13717-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--13717-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==13717== WARNING: new redirection conflicts with existing -- ignoring it
--13717--     new: 0x00AF9540 (index     ) R-> 0x040060C0 index
--13717-- REDIR: 0xAF96E0 (strlen) redirected to 0x4006290 (strlen)
--13717-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/dblib/.libs/libsybdb.so.5.0.0 (0x4009000)
--13717-- Reading syms from /lib/librt-2.5.so (0x349000)
--13717-- Reading syms from /usr/lib/libgnutls.so.13.0.6 (0x6A2D000)
--13717--    object doesn't have a symbol table
--13717-- Reading syms from /lib/libpthread-2.5.so (0xD98000)
--13717-- Reading syms from /lib/libc-2.5.so (0xB29000)
--13717-- Reading syms from /usr/lib/libz.so.1.2.3 (0xB14000)
--13717--    object doesn't have a symbol table
--13717-- Reading syms from /usr/lib/libgcrypt.so.11.2.2 (0x65F1000)
--13717--    object doesn't have a symbol table
--13717-- Reading syms from /usr/lib/libgpg-error.so.0.3.0 (0xADB000)
--13717--    object doesn't have a symbol table
--13717-- Reading syms from /lib/libnsl-2.5.so (0x330000)
--13717-- REDIR: 0xB971D0 (memset) redirected to 0x4006580 (memset)
--13717-- REDIR: 0xB976C0 (memcpy) redirected to 0x4006C60 (memcpy)
--13717-- REDIR: 0xB96330 (rindex) redirected to 0x4005FA0 (rindex)
--13717-- REDIR: 0xB95F90 (strlen) redirected to 0x4006270 (strlen)
--13717-- REDIR: 0xB91260 (malloc) redirected to 0x400537B (malloc)
--13717-- REDIR: 0xB95A30 (strcmp) redirected to 0x4006340 (strcmp)
--13717-- REDIR: 0xB95AA0 (strcpy) redirected to 0x40069F0 (strcpy)
--13717-- REDIR: 0xB96CD0 (memchr) redirected to 0x4006460 (memchr)
--13717-- REDIR: 0xB92F20 (free) redirected to 0x4004F95 (free)
found TESTSRV.test for test in "../../../PWD"
Start
--13717-- REDIR: 0xB90F60 (calloc) redirected to 0x40046A8 (calloc)
--13717-- REDIR: 0xB958C0 (index) redirected to 0x4006090 (index)
--13717-- REDIR: 0xB96180 (strncmp) redirected to 0x40062D0 (strncmp)
About to logon
About to open TESTSRV.test
--13717-- REDIR: 0xB98040 (strchrnul) redirected to 0x4006610 (strchrnul)
--13717-- REDIR: 0xB973C0 (stpcpy) redirected to 0x4006910 (stpcpy)
--13717-- Reading syms from /lib/libnss_files-2.5.so (0x40E1000)
--13717-- Reading syms from /lib/libnss_winbind.so.2 (0x4207000)
--13717--    object doesn't have a symbol table
--13717-- REDIR: 0xB96280 (strncpy) redirected to 0x4006DE0 (strncpy)
--13717-- REDIR: 0xB97F70 (rawmemchr) redirected to 0x4006640 (rawmemchr)
--13717-- Reading syms from /lib/libnss_dns-2.5.so (0x4212000)
--13717-- Reading syms from /lib/libresolv-2.5.so (0x592000)
--13717-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x40EC000)
--13717--    object doesn't have a symbol table
--13717-- REDIR: 0xAF9AA0 (stpcpy) redirected to 0x4006830 (stpcpy)
--13717-- REDIR: 0xB95710 (strcat) redirected to 0x4006660 (strcat)
--13717-- REDIR: 0xB93110 (realloc) redirected to 0x400542A (realloc)
--13717-- REDIR: 0xB97160 (memmove) redirected to 0x40065B0 (memmove)
--13717-- Reading syms from /usr/lib/gconv/CP1252.so (0x41FC000)
--13717--    object doesn't have a symbol table
Dropping TESTSRV.test..all_types_bcp_unittest
Creating TESTSRV.test..all_types_bcp_unittest
--13717-- REDIR: 0xB96040 (strnlen) redirected to 0x4006240 (strnlen)
colid  name                           length Nulls
------ ------------------------------ ------ -----
1      not_null_bit                   1        N  
2      not_null_char                  10       N  
3      not_null_varchar               10       N  
4      not_null_datetime              8        N  
5      not_null_smalldatetime         4        N  
6      not_null_money                 8        N  
7      not_null_smallmoney            4        N  
8      not_null_float                 8        N  
9      not_null_real                  4        N  
10     not_null_decimal               5        N  
11     not_null_numeric               5        N  
12     not_null_int                   4        N  
13     not_null_smallint              2        N  
14     not_null_tinyint               1        N  
15     nullable_char                  10       Y  
16     nullable_varchar               10       Y  
17     nullable_datetime              8        Y  
18     nullable_smalldatetime         4        Y  
19     nullable_money                 8        Y  
20     nullable_smallmoney            4        Y  
21     nullable_float                 8        Y  
22     nullable_real                  4        Y  
23     nullable_decimal               5        Y  
24     nullable_numeric               5        Y  
25     nullable_int                   4        Y  
26     nullable_smallint              2        Y  
27     nullable_tinyint               1        Y  
ok
preparing to insert into test..all_types_bcp_unittest ... OK
Sending same row 10 times... 
Sending 5 more rows ... 
OK
15 rows copied.
done
col              nrows       len         value     
---------------- ----------- ----------- ----------
nullable_char    11          NULL        NULL      
nullable_char    6           6           a char    
nullable_int     11          NULL        NULL      
nullable_int     6           4           1234      
nullable_varchar 11          NULL        NULL      
nullable_varchar 6           9           a varchar 
Dropping table all_types_bcp_unittest
dblib okay on bcp.c
--13717-- Discarding syms at 0x41FC000-0x4200000 in /usr/lib/gconv/CP1252.so due to munmap()
--13717-- Discarding syms at 0x40EC000-0x40EF000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--13717-- Discarding syms at 0x40E1000-0x40EC000 in /lib/libnss_files-2.5.so due to munmap()
--13717-- Discarding syms at 0x4207000-0x4212000 in /lib/libnss_winbind.so.2 due to munmap()
--13717-- Discarding syms at 0x4212000-0x4218000 in /lib/libnss_dns-2.5.so due to munmap()
--13717-- Discarding syms at 0x592000-0x5A5000 in /lib/libresolv-2.5.so due to munmap()
==13717== 
==13717== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 32 from 1)
--13717-- 
--13717-- supp:   32 Fedora-Core-6-hack3-ld25
==13717== malloc/free: in use at exit: 2,028 bytes in 32 blocks.
==13717== malloc/free: 7,141 allocs, 7,109 frees, 715,945 bytes allocated.
==13717== 
==13717== searching for pointers to 32 not-freed blocks.
==13717== checked 257,300 bytes.
==13717== 
==13717== LEAK SUMMARY:
==13717==    definitely lost: 0 bytes in 0 blocks.
==13717==      possibly lost: 0 bytes in 0 blocks.
==13717==    still reachable: 0 bytes in 0 blocks.
==13717==         suppressed: 2,028 bytes in 32 blocks.
--13717--  memcheck: sanity checks: 35 cheap, 2 expensive
--13717--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--13717--  memcheck: auxmaps: 0 searches, 0 comparisons
--13717--  memcheck: SMs: n_issued      = 43 (688k, 0M)
--13717--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--13717--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--13717--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--13717--  memcheck: SMs: max_defined   = 45 (720k, 0M)
--13717--  memcheck: SMs: max_non_DSM   = 43 (688k, 0M)
--13717--  memcheck: max sec V bit nodes:    7 (0k, 0M)
--13717--  memcheck: set_sec_vbits8 calls: 9 (new: 7, updates: 2)
--13717--  memcheck: max shadow mem size:   992k, 0M
--13717-- translate:            fast SP updates identified: 17,649 ( 89.0%)
--13717-- translate:   generic_known SP updates identified: 1,686 (  8.5%)
--13717-- translate: generic_unknown SP updates identified: 481 (  2.4%)
--13717--     tt/tc: 37,444 tt lookups requiring 44,300 probes
--13717--     tt/tc: 37,444 fast-cache updates, 9 flushes
--13717--  transtab: new        14,941 (452,156 -> 7,250,656; ratio 160:10) [0 scs]
--13717--  transtab: dumped     0 (0 -> ??)
--13717--  transtab: discarded  891 (18,401 -> ??)
--13717-- scheduler: 3,590,443 jumps (bb entries).
--13717-- scheduler: 35/38,184 major/minor sched events.
--13717--    sanity: 36 cheap, 2 expensive checks.
--13717--    exectx: 30,011 lists, 1,134 contexts (avg 0 per list)
--13717--    exectx: 14,255 searches, 13,139 full compares (921 per 1000)
--13717--    exectx: 30 cmp2, 84 cmp4, 0 cmpAll

Main