src/odbc/unittests/type

Main

Hostnameobol602
uname -aLinux obol602 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:53:52 UTC 2009 x86_64 GNU/Linux
date2009-11-27

==15257== Memcheck, a memory error detector
==15257== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==15257== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==15257== Command: ./type
==15257== 
--15257-- Valgrind options:
--15257--    --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--15257--    --tool=memcheck
--15257--    --num-callers=20
--15257--    --leak-check=yes
--15257--    -v
--15257--    --show-reachable=yes
--15257--    --log-fd=3
--15257--    --suppressions=/home/freddy/suppressions.supp
--15257-- Contents of /proc/version:
--15257--   Linux version 2.6.31-15-generic (buildd@yellow) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #50-Ubuntu SMP Tue Nov 10 14:53:52 UTC 2009
--15257-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--15257-- Page sizes: currently 4096, max supported 4096
--15257-- Valgrind library directory: /usr/lib/valgrind
--15257-- Reading syms from /home/freddy/cpp/freetds/ftds_comp82/src/odbc/unittests/type (0x400000)
--15257-- Reading syms from /lib/ld-2.10.1.so (0x4000000)
--15257-- Reading debug info from /lib/ld-2.10.1.so ..
--15257-- .. CRC mismatch (computed 27e0048f wanted 447ba3bc)
--15257-- Reading debug info from /usr/lib/debug/lib/ld-2.10.1.so ..
--15257-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000)
--15257--    object doesn't have a dynamic symbol table
--15257-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--15257-- Reading suppressions file: /home/freddy/suppressions.supp
--15257-- Reading suppressions file: /usr/lib/valgrind/default.supp
--15257-- REDIR: 0x4017050 (strlen) redirected to 0x3803fa17 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--15257-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a20000)
--15257-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c22000)
==15257== WARNING: new redirection conflicts with existing -- ignoring it
--15257--     new: 0x04017050 (strlen              ) R-> 0x04c26210 strlen
--15257-- REDIR: 0x4016ec0 (index) redirected to 0x4c25f60 (index)
--15257-- REDIR: 0x4016f40 (strcmp) redirected to 0x4c26510 (strcmp)
--15257-- Reading syms from /home/freddy/cpp/freetds/ftds_comp82/src/odbc/.libs/libtdsodbc.so.0.0.0 (0x4e2a000)
--15257-- Reading syms from /usr/lib/libgnutls.so.26.14.10 (0x50e2000)
--15257-- Reading debug info from /usr/lib/libgnutls.so.26.14.10 ..
--15257-- .. CRC mismatch (computed e962bb1e wanted 1627984e)
--15257-- Reading debug info from /usr/lib/debug/usr/lib/libgnutls.so.26.14.10 ..
--15257-- Reading syms from /lib/libpthread-2.10.1.so (0x5384000)
--15257-- Reading debug info from /lib/libpthread-2.10.1.so ..
--15257-- .. CRC mismatch (computed 217e8639 wanted 7a12e000)
--15257-- Reading debug info from /usr/lib/debug/lib/libpthread-2.10.1.so ..
--15257-- Reading syms from /lib/libc-2.10.1.so (0x55a0000)
--15257-- Reading debug info from /lib/libc-2.10.1.so ..
--15257-- .. CRC mismatch (computed 9003397f wanted a4efd6e8)
--15257-- Reading debug info from /usr/lib/debug/lib/libc-2.10.1.so ..
--15257-- Reading syms from /lib/librt-2.10.1.so (0x590f000)
--15257-- Reading debug info from /lib/librt-2.10.1.so ..
--15257-- .. CRC mismatch (computed e0bf5db1 wanted 745ed498)
--15257-- Reading debug info from /usr/lib/debug/lib/librt-2.10.1.so ..
--15257-- Reading syms from /usr/lib/libtasn1.so.3.1.5 (0x5b17000)
--15257-- Reading debug info from /usr/lib/libtasn1.so.3.1.5 ..
--15257-- .. CRC mismatch (computed 9c17bda6 wanted d502479b)
--15257--    object doesn't have a symbol table
--15257-- Reading syms from /lib/libz.so.1.2.3.3 (0x5d28000)
--15257-- Reading debug info from /lib/libz.so.1.2.3.3 ..
--15257-- .. CRC mismatch (computed 3957eb9d wanted 90f25be3)
--15257--    object doesn't have a symbol table
--15257-- Reading syms from /lib/libgcrypt.so.11.5.2 (0x5f3f000)
--15257-- Reading debug info from /lib/libgcrypt.so.11.5.2 ..
--15257-- .. CRC mismatch (computed 77ef73e7 wanted f3b95632)
--15257-- Reading debug info from /usr/lib/debug/lib/libgcrypt.so.11.5.2 ..
--15257-- Reading syms from /lib/libgpg-error.so.0.4.0 (0x61b7000)
--15257-- Reading debug info from /lib/libgpg-error.so.0.4.0 ..
--15257-- .. CRC mismatch (computed 5580a1c2 wanted 3127cddf)
--15257--    object doesn't have a symbol table
--15257-- REDIR: 0x561f7e0 (rindex) redirected to 0x4c25dc0 (rindex)
--15257-- REDIR: 0x561f3b0 (strlen) redirected to 0x4c261d0 (strlen)
--15257-- REDIR: 0x561a780 (malloc) redirected to 0x4c250d1 (malloc)
--15257-- REDIR: 0x56224c0 (memcpy) redirected to 0x4c265e0 (memcpy)
--15257-- REDIR: 0x561ee20 (strcmp) redirected to 0x4c264c0 (strcmp)
--15257-- REDIR: 0x56208d0 (memchr) redirected to 0x4c265b0 (memchr)
--15257-- REDIR: 0x561ee60 (strcpy) redirected to 0x4c26230 (strcpy)
--15257-- REDIR: 0x561a6a0 (free) redirected to 0x4c24ce1 (free)
--15257-- REDIR: 0x561ebe0 (strcat) redirected to 0x4c25fa0 (strcat)
--15257-- REDIR: 0x5624e90 (strchrnul) redirected to 0x4c27160 (strchrnul)
--15257-- REDIR: 0x5621b50 (mempcpy) redirected to 0x4c271b0 (mempcpy)
--15257-- REDIR: 0x55d8840 (setenv) redirected to 0x4c274b0 (setenv)
--15257-- REDIR: 0x561eda0 (index) redirected to 0x4c25e60 (index)
--15257-- REDIR: 0x561f580 (strncmp) redirected to 0x4c26450 (strncmp)
--15257-- REDIR: 0x561b4c0 (realloc) redirected to 0x4c25182 (realloc)
--15257-- REDIR: 0x5619d70 (calloc) redirected to 0x4c243c9 (calloc)
odbctest
--------

connection parameters:
server:   'sybase'
user:     'testuser'
password: '????'
database: 'FreeTDS'
--15257-- REDIR: 0x5621020 (memset) redirected to 0x4c27080 (memset)
--15257-- REDIR: 0x5620950 (bcmp) redirected to 0x4c26d70 (bcmp)
--15257-- REDIR: 0x5622170 (stpcpy) redirected to 0x4c26e10 (stpcpy)
--15257-- Reading syms from /lib/libnss_compat-2.10.1.so (0x67bb000)
--15257-- Reading debug info from /lib/libnss_compat-2.10.1.so ..
--15257-- .. CRC mismatch (computed 87a816bf wanted 753a1f07)
--15257-- Reading debug info from /usr/lib/debug/lib/libnss_compat-2.10.1.so ..
--15257-- Reading syms from /lib/libnsl-2.10.1.so (0x69c4000)
--15257-- Reading debug info from /lib/libnsl-2.10.1.so ..
--15257-- .. CRC mismatch (computed 3749f1e8 wanted 750c9fd1)
--15257-- Reading debug info from /usr/lib/debug/lib/libnsl-2.10.1.so ..
--15257-- Reading syms from /lib/libnss_nis-2.10.1.so (0x6bde000)
--15257-- Reading debug info from /lib/libnss_nis-2.10.1.so ..
--15257-- .. CRC mismatch (computed 2839fa35 wanted 4fda88b3)
--15257-- Reading debug info from /usr/lib/debug/lib/libnss_nis-2.10.1.so ..
--15257-- Reading syms from /lib/libnss_files-2.10.1.so (0x6de9000)
--15257-- Reading debug info from /lib/libnss_files-2.10.1.so ..
--15257-- .. CRC mismatch (computed 1e8ecf79 wanted 95e01138)
--15257-- Reading debug info from /usr/lib/debug/lib/libnss_files-2.10.1.so ..
--15257-- REDIR: 0x561f660 (strncpy) redirected to 0x4c26300 (strncpy)
--15257-- REDIR: 0x5624e30 (rawmemchr) redirected to 0x4c27190 (rawmemchr)
--15257-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x6ff6000)
--15257-- Reading debug info from /usr/lib/gconv/ISO8859-1.so ..
--15257-- .. CRC mismatch (computed cb3aff31 wanted 2fb673ac)
--15257-- Reading debug info from /usr/lib/debug/usr/lib/gconv/ISO8859-1.so ..
--15257-- REDIR: 0x4017ae0 (stpcpy) redirected to 0x4c26fb0 (stpcpy)
use FreeTDS
Setted type SQL_C_CHAR -> [1 (SQL_C_CHAR), 1 (SQL_C_CHAR), 0]
Setted type SQL_C_LONG -> [4 (SQL_C_LONG), 4 (SQL_C_LONG), 0]
Setted type SQL_C_SHORT -> [5 (SQL_C_SHORT), 5 (SQL_C_SHORT), 0]
Setted type SQL_C_FLOAT -> [7 (SQL_C_FLOAT), 7 (SQL_C_FLOAT), 0]
Setted type SQL_C_DOUBLE -> [8 (SQL_C_DOUBLE), 8 (SQL_C_DOUBLE), 0]
Setted type SQL_C_NUMERIC -> [2 (SQL_C_NUMERIC), 2 (SQL_C_NUMERIC), 0]
Setted type SQL_C_DEFAULT -> [99 (SQL_C_DEFAULT), 99 (SQL_C_DEFAULT), 0]
Setted type SQL_C_DATE -> [91 (SQL_C_TYPE_DATE), 9 (SQL_C_DATE), 1]
Setted type SQL_C_TIME -> [92 (SQL_C_TYPE_TIME), 9 (SQL_C_DATE), 2]
Setted type SQL_C_TIMESTAMP -> [93 (SQL_C_TYPE_TIMESTAMP), 9 (SQL_C_DATE), 3]
Setted type SQL_C_TYPE_DATE -> [91 (SQL_C_TYPE_DATE), 9 (SQL_C_DATE), 1]
Setted type SQL_C_TYPE_TIME -> [92 (SQL_C_TYPE_TIME), 9 (SQL_C_DATE), 2]
Setted type SQL_C_TYPE_TIMESTAMP -> [93 (SQL_C_TYPE_TIMESTAMP), 9 (SQL_C_DATE), 3]
Setted type SQL_C_INTERVAL_YEAR -> [101 (SQL_C_INTERVAL_YEAR), 10 (SQL_C_TIME), 1]
Setted type SQL_C_INTERVAL_MONTH -> [102 (SQL_C_INTERVAL_MONTH), 10 (SQL_C_TIME), 2]
Setted type SQL_C_INTERVAL_DAY -> [103 (SQL_C_INTERVAL_DAY), 10 (SQL_C_TIME), 3]
Setted type SQL_C_INTERVAL_HOUR -> [104 (SQL_C_INTERVAL_HOUR), 10 (SQL_C_TIME), 4]
Setted type SQL_C_INTERVAL_MINUTE -> [105 (SQL_C_INTERVAL_MINUTE), 10 (SQL_C_TIME), 5]
Setted type SQL_C_INTERVAL_SECOND -> [106 (SQL_C_INTERVAL_SECOND), 10 (SQL_C_TIME), 6]
Setted type SQL_C_INTERVAL_YEAR_TO_MONTH -> [107 (SQL_C_INTERVAL_YEAR_TO_MONTH), 10 (SQL_C_TIME), 7]
Setted type SQL_C_INTERVAL_DAY_TO_HOUR -> [108 (SQL_C_INTERVAL_DAY_TO_HOUR), 10 (SQL_C_TIME), 8]
Setted type SQL_C_INTERVAL_DAY_TO_MINUTE -> [109 (SQL_C_INTERVAL_DAY_TO_MINUTE), 10 (SQL_C_TIME), 9]
Setted type SQL_C_INTERVAL_DAY_TO_SECOND -> [110 (SQL_C_INTERVAL_DAY_TO_SECOND), 10 (SQL_C_TIME), 10]
Setted type SQL_C_INTERVAL_HOUR_TO_MINUTE -> [111 (SQL_C_INTERVAL_HOUR_TO_MINUTE), 10 (SQL_C_TIME), 11]
Setted type SQL_C_INTERVAL_HOUR_TO_SECOND -> [112 (SQL_C_INTERVAL_HOUR_TO_SECOND), 10 (SQL_C_TIME), 12]
Setted type SQL_C_INTERVAL_MINUTE_TO_SECOND -> [113 (SQL_C_INTERVAL_MINUTE_TO_SECOND), 10 (SQL_C_TIME), 13]
Setted type SQL_C_BINARY -> [-2 (SQL_C_BINARY), -2 (SQL_C_BINARY), 0]
Setted type SQL_C_BIT -> [-7 (SQL_C_BIT), -7 (SQL_C_BIT), 0]
Setted type SQL_C_SBIGINT -> [-25 (SQL_C_SBIGINT), -25 (SQL_C_SBIGINT), 0]
Setted type SQL_C_UBIGINT -> [-27 (SQL_C_UBIGINT), -27 (SQL_C_UBIGINT), 0]
Setted type SQL_C_TINYINT -> [-6 (SQL_C_TINYINT), -6 (SQL_C_TINYINT), 0]
Setted type SQL_C_SLONG -> [-16 (SQL_C_SLONG), -16 (SQL_C_SLONG), 0]
Setted type SQL_C_SSHORT -> [-15 (SQL_C_SSHORT), -15 (SQL_C_SSHORT), 0]
Setted type SQL_C_STINYINT -> [-26 (SQL_C_STINYINT), -26 (SQL_C_STINYINT), 0]
Setted type SQL_C_ULONG -> [-18 (SQL_C_ULONG), -18 (SQL_C_ULONG), 0]
Setted type SQL_C_USHORT -> [-17 (SQL_C_USHORT), -17 (SQL_C_USHORT), 0]
Setted type SQL_C_UTINYINT -> [-28 (SQL_C_UTINYINT), -28 (SQL_C_UTINYINT), 0]
Setted type SQL_C_GUID -> [-11 (SQL_C_GUID), -11 (SQL_C_GUID), 0]


Error setting type -5 (SQL_BIGINT)
Error setting type -3 (SQL_VARBINARY)
Error setting type -4 (SQL_LONGVARBINARY)
Error setting type 12 (SQL_VARCHAR)
Error setting type -1 (SQL_LONGVARCHAR)
Error setting type 3 (SQL_DECIMAL)
Error setting type 6 (SQL_FLOAT)
Setted type SQL_C_CHAR -> [1 (SQL_C_CHAR), 1 (SQL_C_CHAR), 0]
Setted type SQL_C_LONG -> [4 (SQL_C_LONG), 4 (SQL_C_LONG), 0]
Setted type SQL_C_SHORT -> [5 (SQL_C_SHORT), 5 (SQL_C_SHORT), 0]
Setted type SQL_C_FLOAT -> [7 (SQL_C_FLOAT), 7 (SQL_C_FLOAT), 0]
Setted type SQL_C_DOUBLE -> [8 (SQL_C_DOUBLE), 8 (SQL_C_DOUBLE), 0]
Setted type SQL_C_NUMERIC -> [2 (SQL_C_NUMERIC), 2 (SQL_C_NUMERIC), 0]
Setted type SQL_C_TIMESTAMP -> [93 (SQL_C_TYPE_TIMESTAMP), 9 (SQL_C_DATE), 3]
Setted type SQL_C_TYPE_TIMESTAMP -> [93 (SQL_C_TYPE_TIMESTAMP), 9 (SQL_C_DATE), 3]
Error setting type 99 (SQL_C_DEFAULT)
Error setting type 9 (SQL_C_DATE)
Error setting type 10 (SQL_C_TIME)
Error setting type 91 (SQL_C_TYPE_DATE)
Error setting type 92 (SQL_C_TYPE_TIME)
Error setting type 101 (SQL_C_INTERVAL_YEAR)
Error setting type 102 (SQL_C_INTERVAL_MONTH)
Error setting type 103 (SQL_C_INTERVAL_DAY)
Error setting type 104 (SQL_C_INTERVAL_HOUR)
Error setting type 105 (SQL_C_INTERVAL_MINUTE)
Error setting type 106 (SQL_C_INTERVAL_SECOND)
Error setting type 107 (SQL_C_INTERVAL_YEAR_TO_MONTH)
Error setting type 108 (SQL_C_INTERVAL_DAY_TO_HOUR)
Error setting type 109 (SQL_C_INTERVAL_DAY_TO_MINUTE)
Error setting type 110 (SQL_C_INTERVAL_DAY_TO_SECOND)
Error setting type 111 (SQL_C_INTERVAL_HOUR_TO_MINUTE)
Error setting type 112 (SQL_C_INTERVAL_HOUR_TO_SECOND)
Error setting type 113 (SQL_C_INTERVAL_MINUTE_TO_SECOND)
Setted type SQL_C_BINARY -> [-2 (SQL_C_BINARY), -2 (SQL_C_BINARY), 0]
Setted type SQL_C_BIT -> [-7 (SQL_C_BIT), -7 (SQL_C_BIT), 0]
Setted type SQL_C_TINYINT -> [-6 (SQL_C_TINYINT), -6 (SQL_C_TINYINT), 0]
Setted type SQL_C_GUID -> [-11 (SQL_C_GUID), -11 (SQL_C_GUID), 0]
Setted type SQL_BIGINT -> [-5 (SQL_BIGINT), -5 (SQL_BIGINT), 0]
Setted type SQL_VARBINARY -> [-3 (SQL_VARBINARY), -3 (SQL_VARBINARY), 0]
Setted type SQL_LONGVARBINARY -> [-4 (SQL_LONGVARBINARY), -4 (SQL_LONGVARBINARY), 0]
Setted type SQL_VARCHAR -> [12 (SQL_VARCHAR), 12 (SQL_VARCHAR), 0]
Setted type SQL_LONGVARCHAR -> [-1 (SQL_LONGVARCHAR), -1 (SQL_LONGVARCHAR), 0]
Setted type SQL_DECIMAL -> [3 (SQL_DECIMAL), 3 (SQL_DECIMAL), 0]
Setted type SQL_FLOAT -> [6 (SQL_FLOAT), 6 (SQL_FLOAT), 0]
Error setting type -25 (SQL_C_SBIGINT)
Error setting type -27 (SQL_C_UBIGINT)
Error setting type -16 (SQL_C_SLONG)
Error setting type -15 (SQL_C_SSHORT)
Error setting type -26 (SQL_C_STINYINT)
Error setting type -18 (SQL_C_ULONG)
Error setting type -17 (SQL_C_USHORT)
Error setting type -28 (SQL_C_UTINYINT)
--15257-- Discarding syms at 0x6ff64d0-0x6ff7058 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--15257-- Discarding syms at 0x67bc310-0x67c12c8 in /lib/libnss_compat-2.10.1.so due to munmap()
--15257-- Discarding syms at 0x6be0020-0x6be64a8 in /lib/libnss_nis-2.10.1.so due to munmap()
--15257-- Discarding syms at 0x69c80c0-0x69d5978 in /lib/libnsl-2.10.1.so due to munmap()
--15257-- Discarding syms at 0x6deb170-0x6df2b68 in /lib/libnss_files-2.10.1.so due to munmap()
==15257== 
==15257== HEAP SUMMARY:
==15257==     in use at exit: 300 bytes in 11 blocks
==15257==   total heap usage: 381 allocs, 370 frees, 217,649 bytes allocated
==15257== 
==15257== Searching for pointers to 11 not-freed blocks
==15257== Checked 237,368 bytes
==15257== 
==15257== LEAK SUMMARY:
==15257==    definitely lost: 0 bytes in 0 blocks
==15257==    indirectly lost: 0 bytes in 0 blocks
==15257==      possibly lost: 0 bytes in 0 blocks
==15257==    still reachable: 0 bytes in 0 blocks
==15257==         suppressed: 300 bytes in 11 blocks
==15257== 
==15257== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 5 from 5)
--15257-- 
--15257-- used_suppression:      1 getpwuid_r leak 3
--15257-- used_suppression:      5 getpwuid_r leak 2
--15257-- used_suppression:      5 getpwuid_r leak 1
--15257-- used_suppression:      2 Debian libc6 (2.10.x) stripped dynamic linker
--15257-- used_suppression:      2 Debian libc6 (2.10.x) stripped dynamic linker
==15257== 
==15257== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 5 from 5)

Main