==3258== Memcheck, a memory error detector. ==3258== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==3258== Using LibVEX rev 1732, a library for dynamic binary translation. ==3258== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==3258== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==3258== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==3258== ==3258== My PID = 3258, parent PID = 14850. Prog and args are: ==3258== mysqltest ==3258== --3258-- --3258-- Command line --3258-- mysqltest --3258-- Startup, with flags: --3258-- -v --3258-- --show-reachable=yes --3258-- --leak-check=full --3258-- --log-file-exactly=LOG --3258-- Contents of /proc/version: --3258-- Linux version 2.6.18.8-0.10-default (geeko@buildhost) (gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)) #1 SMP Wed Jun 4 15:46:34 UTC 2008 --3258-- Arch and hwcaps: X86, x86-sse1-sse2 --3258-- Page sizes: currently 4096, max supported 4096 --3258-- Valgrind library directory: /usr/lib/valgrind --3258-- Reading syms from /lib/ld-2.5.so (0x4000000) --3258-- Reading syms from /home/ahe/tmp/mysqltest (0x8048000) --3258-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000) --3258-- object doesn't have a symbol table --3258-- object doesn't have a dynamic symbol table --3258-- Reading suppressions file: /usr/lib/valgrind/default.supp --3258-- REDIR: 0x4015970 (index) redirected to 0x38027EDB (???) --3258-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401E000) --3258-- object doesn't have a symbol table --3258-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4021000) --3258-- object doesn't have a symbol table ==3258== WARNING: new redirection conflicts with existing -- ignoring it --3258-- new: 0x04015970 (index ) R-> 0x040242C0 index --3258-- REDIR: 0x4015B10 (strlen) redirected to 0x4024370 (strlen) --3258-- Reading syms from /usr/lib/libmysqlclient.so.15.0.0 (0x4051000) --3258-- object doesn't have a symbol table --3258-- Reading syms from /lib/libz.so.1.2.3 (0x4192000) --3258-- object doesn't have a symbol table --3258-- Reading syms from /lib/libc-2.5.so (0x41A5000) --3258-- Reading syms from /lib/libcrypt-2.5.so (0x42D3000) --3258-- Reading syms from /lib/libnsl-2.5.so (0x4307000) --3258-- Reading syms from /lib/libm-2.5.so (0x431D000) --3258-- REDIR: 0x4210130 (rindex) redirected to 0x40241A0 (rindex) --3258-- REDIR: 0x420FD80 (strlen) redirected to 0x4024350 (strlen) --3258-- REDIR: 0x420FF80 (strncmp) redirected to 0x40243B0 (strncmp) --3258-- REDIR: 0x420F4E0 (strcat) redirected to 0x4025620 (strcat) --3258-- REDIR: 0x420D040 (malloc) redirected to 0x4023530 (malloc) --3258-- REDIR: 0x4210AB0 (memchr) redirected to 0x4024540 (memchr) --3258-- REDIR: 0x42114B0 (memcpy) redirected to 0x40252E0 (memcpy) --3258-- REDIR: 0x4211E30 (strchrnul) redirected to 0x4024770 (strchrnul) --3258-- REDIR: 0x4211010 (mempcpy) redirected to 0x4024DB0 (mempcpy) --3258-- REDIR: 0x420ACF0 (free) redirected to 0x402314A (free) --3258-- REDIR: 0x420F800 (strcmp) redirected to 0x4024420 (strcmp) --3258-- REDIR: 0x42111B0 (stpcpy) redirected to 0x4024A70 (stpcpy) --3258-- REDIR: 0x420CB20 (calloc) redirected to 0x402285D (calloc) --3258-- Reading syms from /lib/libnss_files-2.5.so (0x4444000) --3258-- REDIR: 0x420F870 (strcpy) redirected to 0x4025540 (strcpy) --3258-- REDIR: 0x4211D60 (rawmemchr) redirected to 0x40247A0 (rawmemchr) --3258-- REDIR: 0x4210FB0 (memset) redirected to 0x40246D0 (memset) --3258-- REDIR: 0x420F690 (index) redirected to 0x4024290 (index) --3258-- REDIR: 0x4210080 (strncpy) redirected to 0x4024B50 (strncpy) --3258-- REDIR: 0x420FED0 (strncat) redirected to 0x4024ED0 (strncat) --3258-- Discarding syms at 0x4444000-0x444E000 in /lib/libnss_files-2.5.so due to munmap() ==3258== ==3258== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 1) --3258-- --3258-- supp: 3 dl-hack3 ==3258== malloc/free: in use at exit: 40,896 bytes in 11 blocks. ==3258== malloc/free: 68 allocs, 57 frees, 88,728 bytes allocated. ==3258== ==3258== searching for pointers to 11 not-freed blocks. ==3258== checked 510,584 bytes. ==3258== ==3258== 16 bytes in 1 blocks are still reachable in loss record 1 of 2 ==3258== at 0x40235B5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==3258== by 0x40677CC: my_malloc (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x406844D: my_error_register (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x406745F: init_client_errs (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x40638F8: mysql_server_init (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x408C121: mysql_init (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x8048705: dbmysqlOpen (mysqltest.c:15) ==3258== by 0x8048A05: main (mysqltest.c:68) ==3258== ==3258== ==3258== 40,880 bytes in 10 blocks are still reachable in loss record 2 of 2 ==3258== at 0x40235B5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==3258== by 0x406E255: my_once_alloc (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x406E99A: (within /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x406F3A1: (within /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x406F518: get_charset_by_csname (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x408B6F7: mysql_init_character_set (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x408CB2A: mysql_real_connect (in /usr/lib/libmysqlclient.so.15.0.0) ==3258== by 0x804874F: dbmysqlOpen (mysqltest.c:17) ==3258== by 0x8048A05: main (mysqltest.c:68) ==3258== ==3258== LEAK SUMMARY: ==3258== definitely lost: 0 bytes in 0 blocks. ==3258== possibly lost: 0 bytes in 0 blocks. ==3258== still reachable: 40,896 bytes in 11 blocks. ==3258== suppressed: 0 bytes in 0 blocks. --3258-- memcheck: sanity checks: 67 cheap, 3 expensive --3258-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --3258-- memcheck: auxmaps: 0 searches, 0 comparisons --3258-- memcheck: SMs: n_issued = 15 (240k, 0M) --3258-- memcheck: SMs: n_deissued = 0 (0k, 0M) --3258-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M) --3258-- memcheck: SMs: max_undefined = 0 (0k, 0M) --3258-- memcheck: SMs: max_defined = 44 (704k, 0M) --3258-- memcheck: SMs: max_non_DSM = 15 (240k, 0M) --3258-- memcheck: max sec V bit nodes: 1 (0k, 0M) --3258-- memcheck: set_sec_vbits8 calls: 1 (new: 1, updates: 0) --3258-- memcheck: max shadow mem size: 544k, 0M --3258-- translate: fast SP updates identified: 4,538 ( 89.7%) --3258-- translate: generic_known SP updates identified: 307 ( 6.0%) --3258-- translate: generic_unknown SP updates identified: 209 ( 4.1%) --3258-- tt/tc: 8,422 tt lookups requiring 8,747 probes --3258-- tt/tc: 8,422 fast-cache updates, 4 flushes --3258-- transtab: new 4,030 (82,888 -> 1,375,722; ratio 165:10) [0 scs] --3258-- transtab: dumped 0 (0 -> ??) --3258-- transtab: discarded 122 (2,050 -> ??) --3258-- scheduler: 6,720,502 jumps (bb entries). --3258-- scheduler: 67/4,820 major/minor sched events. --3258-- sanity: 68 cheap, 3 expensive checks. --3258-- exectx: 30,011 lists, 62 contexts (avg 0 per list) --3258-- exectx: 128 searches, 66 full compares (515 per 1000) --3258-- exectx: 10 cmp2, 3 cmp4, 0 cmpAll