src/dblib/unittests/t0006
Main
| Hostname | obon110 |
| gcc version | gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13) |
| uname -a | Linux obon110 2.6.23.1-1smp #3 SMP Mon Nov 5 20:51:48 CET 2007 i686 i686 i386 GNU/Linux |
| date | 2008-07-03 |
==13397== Memcheck, a memory error detector.
==13397== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==13397== Using LibVEX rev 1658, a library for dynamic binary translation.
==13397== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==13397== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==13397== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==13397==
--13397-- Command line
--13397-- ./t0006
--13397-- Startup, with flags:
--13397-- --tool=memcheck
--13397-- --num-callers=20
--13397-- --leak-check=yes
--13397-- -v
--13397-- --show-reachable=yes
--13397-- --log-fd=3
--13397-- --suppressions=/home/winnt/fziglio/suppressions.supp
--13397-- Contents of /proc/version:
--13397-- 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
--13397-- Arch and hwcaps: X86, x86-sse1-sse2
--13397-- Valgrind library directory: /usr/lib/valgrind
--13397-- Reading syms from /lib/ld-2.5.so (0xAE4000)
--13397-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/dblib/unittests/t0006 (0x8048000)
--13397-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--13397-- object doesn't have a dynamic symbol table
--13397-- Reading suppressions file: /home/winnt/fziglio/suppressions.supp
--13397-- Reading suppressions file: /usr/lib/valgrind/default.supp
--13397-- REDIR: 0xAF9540 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)
--13397-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--13397-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==13397== WARNING: new redirection conflicts with existing -- ignoring it
--13397-- new: 0x00AF9540 (index ) R-> 0x040060C0 index
--13397-- REDIR: 0xAF96E0 (strlen) redirected to 0x4006290 (strlen)
--13397-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp/src/dblib/.libs/libsybdb.so.5.0.0 (0x4009000)
--13397-- Reading syms from /lib/librt-2.5.so (0x349000)
--13397-- Reading syms from /usr/lib/libgnutls.so.13.0.6 (0x6A2D000)
--13397-- object doesn't have a symbol table
--13397-- Reading syms from /lib/libpthread-2.5.so (0xD98000)
--13397-- Reading syms from /lib/libc-2.5.so (0xB29000)
--13397-- Reading syms from /usr/lib/libz.so.1.2.3 (0xB14000)
--13397-- object doesn't have a symbol table
--13397-- Reading syms from /usr/lib/libgcrypt.so.11.2.2 (0x65F1000)
--13397-- object doesn't have a symbol table
--13397-- Reading syms from /usr/lib/libgpg-error.so.0.3.0 (0xADB000)
--13397-- object doesn't have a symbol table
--13397-- Reading syms from /lib/libnsl-2.5.so (0x330000)
--13397-- REDIR: 0xB971D0 (memset) redirected to 0x4006580 (memset)
--13397-- REDIR: 0xB976C0 (memcpy) redirected to 0x4006C60 (memcpy)
--13397-- REDIR: 0xB96330 (rindex) redirected to 0x4005FA0 (rindex)
--13397-- REDIR: 0xB95F90 (strlen) redirected to 0x4006270 (strlen)
--13397-- REDIR: 0xB91260 (malloc) redirected to 0x400537B (malloc)
--13397-- REDIR: 0xB95A30 (strcmp) redirected to 0x4006340 (strcmp)
--13397-- REDIR: 0xB95AA0 (strcpy) redirected to 0x40069F0 (strcpy)
--13397-- REDIR: 0xB96CD0 (memchr) redirected to 0x4006460 (memchr)
--13397-- REDIR: 0xB92F20 (free) redirected to 0x4004F95 (free)
found sybase15.tempdb for sa in "../../../PWD"
Start
--13397-- REDIR: 0xB90F60 (calloc) redirected to 0x40046A8 (calloc)
--13397-- REDIR: 0xB958C0 (index) redirected to 0x4006090 (index)
--13397-- REDIR: 0xB96180 (strncmp) redirected to 0x40062D0 (strncmp)
About to logon
About to open
--13397-- REDIR: 0xB98040 (strchrnul) redirected to 0x4006610 (strchrnul)
--13397-- REDIR: 0xB973C0 (stpcpy) redirected to 0x4006910 (stpcpy)
--13397-- Reading syms from /lib/libnss_files-2.5.so (0x40E1000)
--13397-- Reading syms from /lib/libnss_winbind.so.2 (0x4207000)
--13397-- object doesn't have a symbol table
--13397-- REDIR: 0xB96280 (strncpy) redirected to 0x4006DE0 (strncpy)
--13397-- REDIR: 0xB97F70 (rawmemchr) redirected to 0x4006640 (rawmemchr)
--13397-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x40EC000)
--13397-- object doesn't have a symbol table
--13397-- REDIR: 0xAF9AA0 (stpcpy) redirected to 0x4006830 (stpcpy)
DB-LIBRARY error (severity 9, dberr 20009, oserr 115, dberrstr Unable to connect: Adaptive Server is unavailable or does not exist, oserrstr Operation now in progress):
--13397-- Discarding syms at 0x40EC000-0x40EF000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--13397-- Discarding syms at 0x40E1000-0x40EC000 in /lib/libnss_files-2.5.so due to munmap()
--13397-- Discarding syms at 0x4207000-0x4212000 in /lib/libnss_winbind.so.2 due to munmap()
==13397==
==13397== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 1)
--13397--
--13397-- supp: 27 Fedora-Core-6-hack3-ld25
==13397== malloc/free: in use at exit: 85,348 bytes in 51 blocks.
==13397== malloc/free: 178 allocs, 127 frees, 203,243 bytes allocated.
==13397==
==13397== searching for pointers to 51 not-freed blocks.
==13397== checked 271,692 bytes.
==13397==
==13397== 4 bytes in 1 blocks are still reachable in loss record 2 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0x4012668: dblogin (dblib.c:694)
==13397== by 0x80495E4: main (t0006.c:70)
==13397==
==13397==
==13397== 7 bytes in 6 blocks are still reachable in loss record 3 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0x40134DB: dbstring_concat (dblib.c:931)
==13397== by 0x401367F: dbstring_assign (dblib.c:947)
==13397== by 0x4013BE1: init_dboptions (dblib.c:1063)
==13397== by 0x4013EC7: tdsdbopen (dblib.c:1101)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 16 bytes in 1 blocks are still reachable in loss record 4 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0x4093269: tds_iconv_alloc (iconv.c:283)
==13397== by 0x404CD88: tds_alloc_socket (mem.c:969)
==13397== by 0x4013FCC: tdsdbopen (dblib.c:1113)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 16 bytes in 1 blocks are still reachable in loss record 5 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x404B2D8: tds_alloc_locale (mem.c:613)
==13397== by 0x4097B17: tds_get_locale (locale.c:61)
==13397== by 0x404B0E8: tds_alloc_context (mem.c:583)
==13397== by 0x400EF01: dblib_get_tds_ctx (dblib.c:276)
==13397== by 0x40125C0: dbinit (dblib.c:673)
==13397== by 0x80494F0: main (t0006.c:61)
==13397==
==13397==
==13397== 20 bytes in 1 blocks are still reachable in loss record 6 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x404B14D: tds_alloc_context (mem.c:587)
==13397== by 0x400EF01: dblib_get_tds_ctx (dblib.c:276)
==13397== by 0x40125C0: dbinit (dblib.c:673)
==13397== by 0x80494F0: main (t0006.c:61)
==13397==
==13397==
==13397== 29 bytes in 2 blocks are still reachable in loss record 7 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0xB95D0F: strdup (in /lib/libc-2.5.so)
==13397== by 0x409823D: tds_parse_locale (locale.c:130)
==13397== by 0x407CE1D: tds_read_conf_section (config.c:465)
==13397== by 0x4097C32: tds_get_locale (locale.c:69)
==13397== by 0x404B0E8: tds_alloc_context (mem.c:583)
==13397== by 0x400EF01: dblib_get_tds_ctx (dblib.c:276)
==13397== by 0x40125C0: dbinit (dblib.c:673)
==13397== by 0x80494F0: main (t0006.c:61)
==13397==
==13397==
==13397== 48 bytes in 4 blocks are still reachable in loss record 8 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x804B13C: add_bread_crumb (common.c:223)
==13397== by 0x80494CF: main (t0006.c:58)
==13397==
==13397==
==13397== 72 bytes in 6 blocks are still reachable in loss record 9 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0x40133C8: dbstring_concat (dblib.c:926)
==13397== by 0x401367F: dbstring_assign (dblib.c:947)
==13397== by 0x4013BE1: init_dboptions (dblib.c:1063)
==13397== by 0x4013EC7: tdsdbopen (dblib.c:1101)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 120 bytes in 1 blocks are still reachable in loss record 10 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0x40932D5: tds_iconv_alloc (iconv.c:285)
==13397== by 0x404CD88: tds_alloc_socket (mem.c:969)
==13397== by 0x4013FCC: tdsdbopen (dblib.c:1113)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 128 bytes in 14 blocks are still reachable in loss record 11 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0x409E5D5: tds_dstr_copyn (tdsstring.c:94)
==13397== by 0x409E89E: tds_dstr_copy (tdsstring.c:139)
==13397== by 0x40644C4: tds_set_library (login.c:151)
==13397== by 0x4012815: dblogin (dblib.c:705)
==13397== by 0x80495E4: main (t0006.c:70)
==13397==
==13397==
==13397== 128 bytes in 1 blocks are still reachable in loss record 12 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x404C77B: tds_alloc_login (mem.c:913)
==13397== by 0x401271F: dblogin (dblib.c:698)
==13397== by 0x80495E4: main (t0006.c:70)
==13397==
==13397==
==13397== 160 bytes in 2 blocks are still reachable in loss record 13 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0xB3FEC9: __gconv_open (in /lib/libc-2.5.so)
==13397== by 0xB3FADE: iconv_open (in /lib/libc-2.5.so)
==13397== by 0x4093F07: tds_iconv_info_init (iconv.c:482)
==13397== by 0x40936A6: tds_iconv_open (iconv.c:365)
==13397== by 0x406546F: tds_connect (login.c:387)
==13397== by 0x40141EB: tdsdbopen (dblib.c:1145)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 180 bytes in 1 blocks are still reachable in loss record 14 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x404B672: tds_alloc_connection (mem.c:727)
==13397== by 0x407A71E: tds_read_config_info (config.c:153)
==13397== by 0x4014083: tdsdbopen (dblib.c:1122)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 220 bytes in 1 blocks are still reachable in loss record 15 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x404CC98: tds_alloc_socket (mem.c:955)
==13397== by 0x4013FCC: tdsdbopen (dblib.c:1113)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 240 bytes in 2 blocks are still reachable in loss record 16 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0xB47C15: __gconv_lookup_cache (in /lib/libc-2.5.so)
==13397== by 0xB411FB: __gconv_find_transform (in /lib/libc-2.5.so)
==13397== by 0xB3FE73: __gconv_open (in /lib/libc-2.5.so)
==13397== by 0xB3FADE: iconv_open (in /lib/libc-2.5.so)
==13397== by 0x4093F07: tds_iconv_info_init (iconv.c:482)
==13397== by 0x40936A6: tds_iconv_open (iconv.c:365)
==13397== by 0x406546F: tds_connect (login.c:387)
==13397== by 0x40141EB: tdsdbopen (dblib.c:1145)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 340 bytes in 1 blocks are still reachable in loss record 17 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x4013E04: tdsdbopen (dblib.c:1095)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 512 bytes in 1 blocks are still reachable in loss record 18 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x404CD0C: tds_alloc_socket (mem.c:958)
==13397== by 0x4013FCC: tdsdbopen (dblib.c:1113)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 1,440 bytes in 1 blocks are still reachable in loss record 19 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x4013A63: init_dboptions (dblib.c:1054)
==13397== by 0x4013EC7: tdsdbopen (dblib.c:1101)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397==
==13397== 16,384 bytes in 1 blocks are still reachable in loss record 20 of 21
==13397== at 0x400473F: calloc (vg_replace_malloc.c:279)
==13397== by 0x40124A1: dbinit (dblib.c:659)
==13397== by 0x80494F0: main (t0006.c:61)
==13397==
==13397==
==13397== 65,280 bytes in 2 blocks are still reachable in loss record 21 of 21
==13397== at 0x4005400: malloc (vg_replace_malloc.c:149)
==13397== by 0xB40048: __gconv_open (in /lib/libc-2.5.so)
==13397== by 0xB3FADE: iconv_open (in /lib/libc-2.5.so)
==13397== by 0x4093F07: tds_iconv_info_init (iconv.c:482)
==13397== by 0x40936A6: tds_iconv_open (iconv.c:365)
==13397== by 0x406546F: tds_connect (login.c:387)
==13397== by 0x40141EB: tdsdbopen (dblib.c:1145)
==13397== by 0x804975E: main (t0006.c:79)
==13397==
==13397== LEAK SUMMARY:
==13397== definitely lost: 0 bytes in 0 blocks.
==13397== possibly lost: 0 bytes in 0 blocks.
==13397== still reachable: 85,344 bytes in 50 blocks.
==13397== suppressed: 4 bytes in 1 blocks.
--13397-- memcheck: sanity checks: 6 cheap, 1 expensive
--13397-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--13397-- memcheck: auxmaps: 0 searches, 0 comparisons
--13397-- memcheck: SMs: n_issued = 28 (448k, 0M)
--13397-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--13397-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--13397-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--13397-- memcheck: SMs: max_defined = 45 (720k, 0M)
--13397-- memcheck: SMs: max_non_DSM = 28 (448k, 0M)
--13397-- memcheck: max sec V bit nodes: 4 (0k, 0M)
--13397-- memcheck: set_sec_vbits8 calls: 4 (new: 4, updates: 0)
--13397-- memcheck: max shadow mem size: 752k, 0M
--13397-- translate: fast SP updates identified: 7,645 ( 90.2%)
--13397-- translate: generic_known SP updates identified: 557 ( 6.5%)
--13397-- translate: generic_unknown SP updates identified: 270 ( 3.1%)
--13397-- tt/tc: 13,496 tt lookups requiring 14,231 probes
--13397-- tt/tc: 13,496 fast-cache updates, 6 flushes
--13397-- transtab: new 6,085 (145,738 -> 2,420,249; ratio 166:10) [0 scs]
--13397-- transtab: dumped 0 (0 -> ??)
--13397-- transtab: discarded 361 (7,182 -> ??)
--13397-- scheduler: 700,363 jumps (bb entries).
--13397-- scheduler: 6/8,623 major/minor sched events.
--13397-- sanity: 7 cheap, 1 expensive checks.
--13397-- exectx: 30,011 lists, 165 contexts (avg 0 per list)
--13397-- exectx: 332 searches, 167 full compares (503 per 1000)
--13397-- exectx: 344 cmp2, 75 cmp4, 0 cmpAll
Main