[sbester@box1 mysql-5.1-bugteam]$ valgrind --tool=memcheck --track-origins=yes --leak-check=full --db-attach=no -v --show-reachable=yes ./client/.libs/mysqlbinlog ~/box1-bin.000001 ==8319== Memcheck, a memory error detector ==8319== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==8319== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==8319== Command: ./client/.libs/mysqlbinlog /home/sbester/box1-bin.000001 ==8319== --8319-- Valgrind options: --8319-- --tool=memcheck --8319-- --track-origins=yes --8319-- --leak-check=full --8319-- --db-attach=no --8319-- -v --8319-- --show-reachable=yes --8319-- Contents of /proc/version: --8319-- Linux version 2.6.18-1.2798.fc6xen (brewbuilder@hs20-bc2-4.build.redhat.com) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 15:11:19 EDT 2006 --8319-- Arch and hwcaps: X86, x86-sse1-sse2 --8319-- Page sizes: currently 4096, max supported 4096 --8319-- Valgrind library directory: /home/sbester/valgrind/lib/valgrind --8319-- Reading syms from /lib/ld-2.5.so (0x2c3000) --8319-- Reading syms from /home/sbester/build/bzr/mysql-5.1-bugteam/client/.libs/mysqlbinlog (0x8048000) --8319-- Reading syms from /home/sbester/valgrind/lib/valgrind/memcheck-x86-linux (0x38000000) --8319-- object doesn't have a dynamic symbol table --8319-- Reading suppressions file: /home/sbester/valgrind/lib/valgrind/default.supp --8319-- REDIR: 0x2d80f0 (index) redirected to 0x3803e413 (vgPlain_x86_linux_REDIR_FOR_index) --8319-- Reading syms from /home/sbester/valgrind/lib/valgrind/vgpreload_core-x86-linux.so (0x4001000) --8319-- Reading syms from /home/sbester/valgrind/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4003000) ==8319== WARNING: new redirection conflicts with existing -- ignoring it --8319-- new: 0x002d80f0 (index ) R-> 0x040066d0 index --8319-- REDIR: 0x2d8290 (strlen) redirected to 0x40068b0 (strlen) --8319-- Reading syms from /lib/libpthread-2.5.so (0x484000) --8319-- Reading syms from /home/sbester/build/bzr/mysql-5.1-bugteam/libmysql/.libs/libmysqlclient.so.16.0.0 (0x401a000) --8319-- Reading syms from /lib/libcrypt-2.5.so (0x50d8000) --8319-- Reading syms from /lib/libnsl-2.5.so (0x2e0000) --8319-- Reading syms from /lib/libm-2.5.so (0x41f6000) --8319-- Reading syms from /usr/lib/libz.so.1.2.3 (0x12a000) --8319-- object doesn't have a symbol table --8319-- Reading syms from /lib/libc-2.5.so (0x309000) --8319-- REDIR: 0x3764e0 (memset) redirected to 0x4006c10 (memset) --8319-- REDIR: 0x3769d0 (memcpy) redirected to 0x4007ad0 (memcpy) --8319-- REDIR: 0x375640 (rindex) redirected to 0x40065e0 (rindex) --8319-- REDIR: 0x3752a0 (strlen) redirected to 0x4006890 (strlen) --8319-- REDIR: 0x375490 (strncmp) redirected to 0x40068f0 (strncmp) --8319-- REDIR: 0x374db0 (strcpy) redirected to 0x4007d60 (strcpy) --8319-- REDIR: 0x370cb0 (malloc) redirected to 0x400590e (malloc) --8319-- REDIR: 0x3724c0 (free) redirected to 0x4005528 (free) --8319-- REDIR: 0x374d40 (strcmp) redirected to 0x4006960 (strcmp) --8319-- REDIR: 0x374bd0 (index) redirected to 0x4006670 (index) --8319-- REDIR: 0x376470 (memmove) redirected to 0x4006c60 (memmove) --8319-- REDIR: 0x3766d0 (stpcpy) redirected to 0x40075b0 (stpcpy) /*!40019 SET @@session.max_insert_delayed_threads=0*/; --8319-- REDIR: 0x376540 (mempcpy) redirected to 0x4007330 (mempcpy) /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; DELIMITER /*!*/; # at 4 #091029 16:13:01 server id 1 end_log_pos 106 Start: binlog v 4, server v 5.1.41-enterprise-gpl-advanced-log created 091029 16:13:01 at startup ROLLBACK/*!*/; BINLOG ' 7aLpSg8BAAAAZgAAAGoAAAAAAAQANS4xLjQxLWVudGVycHJpc2UtZ3BsLWFkdmFuY2VkLWxvZwAA AAAAAAAAAAAAAAAAAADtoulKEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC '/*!*/; # at 106 ==8319== Conditional jump or move depends on uninitialised value(s) ==8319== at 0x805798A: Query_log_event::print_query_header(st_io_cache*, st_print_event_info*) (log_event.cc:2838) ==8319== by 0x805C44A: Query_log_event::print(_IO_FILE*, st_print_event_info*) (log_event.cc:2915) ==8319== by 0x805E09B: process_event(st_print_event_info*, Log_event*, unsigned long long, char const*) (mysqlbinlog.cc:962) ==8319== by 0x8061D03: main (mysqlbinlog.cc:1993) ==8319== Uninitialised value was created by a stack allocation ==8319== at 0x80612B1: main (mysqlbinlog.cc:2011) ==8319== #091029 16:13:08 server id 1 end_log_pos 192 Query thread_id=1 exec_time=0 error_code=0 use test/*!*/; SET TIMESTAMP=1256825588/*!*/; SET @@session.pseudo_thread_id=1/*!*/; SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/; SET @@session.sql_mode=0/*!*/; SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/; /*!\C latin1 *//*!*/; SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/; SET @@session.lc_time_names=0/*!*/; SET @@session.collation_database=DEFAULT/*!*/; drop table if exists t1 /*!*/; # at 192 #091029 16:13:13 server id 1 end_log_pos 277 Query thread_id=1 exec_time=0 error_code=0 SET TIMESTAMP=1256825593/*!*/; create table t1(a int) /*!*/; # at 277 #091029 16:13:16 server id 1 end_log_pos 345 Query thread_id=1 exec_time=0 error_code=0 SET TIMESTAMP=1256825596/*!*/; BEGIN /*!*/; --8319-- REDIR: 0x375590 (strncpy) redirected to 0x4007c40 (strncpy) # at 345 # at 386 #091029 16:13:16 server id 1 end_log_pos 386 Table_map: `test`.`t1` mapped to number 6 #091029 16:13:16 server id 1 end_log_pos 420 Write_rows: table id 6 flags: STMT_END_F BINLOG ' /KLpShMBAAAAKQAAAIIBAAAAAAYAAAAAAAAABHRlc3QAAnQxAAEDAAE= /KLpShcBAAAAIgAAAKQBAAAQAAYAAAAAAAEAAf/+AQAAAA== '/*!*/; # at 420 #091029 16:13:16 server id 1 end_log_pos 489 Query thread_id=1 exec_time=0 error_code=0 SET TIMESTAMP=1256825596/*!*/; COMMIT /*!*/; # at 489 #091029 16:13:22 server id 1 end_log_pos 557 Query thread_id=1 exec_time=0 error_code=0 SET TIMESTAMP=1256825602/*!*/; BEGIN /*!*/; # at 557 # at 598 #091029 16:13:22 server id 1 end_log_pos 598 Table_map: `test`.`t1` mapped to number 6 #091029 16:13:22 server id 1 end_log_pos 632 Delete_rows: table id 6 flags: STMT_END_F BINLOG ' AqPpShMBAAAAKQAAAFYCAAAAAAYAAAAAAAAABHRlc3QAAnQxAAEDAAE= AqPpShkBAAAAIgAAAHgCAAAQAAYAAAAAAAEAAf/+AQAAAA== '/*!*/; # at 632 #091029 16:13:22 server id 1 end_log_pos 701 Query thread_id=1 exec_time=0 error_code=0 SET TIMESTAMP=1256825602/*!*/; COMMIT /*!*/; # at 701 #091029 16:13:26 server id 1 end_log_pos 743 Rotate to box1-bin.000002 pos: 4 DELIMITER ; # End of log file ROLLBACK /* added by mysqlbinlog */; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; ==8319== ==8319== HEAP SUMMARY: ==8319== in use at exit: 587 bytes in 2 blocks ==8319== total heap usage: 62 allocs, 60 frees, 312,672 bytes allocated ==8319== ==8319== Searching for pointers to 2 not-freed blocks ==8319== Checked 482,604 bytes ==8319== ==8319== 103 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==8319== at 0x4005993: malloc (vg_replace_malloc.c:195) ==8319== by 0x405AB8C: my_malloc (my_malloc.c:34) ==8319== by 0x8060E22: Log_event::read_log_event(st_io_cache*, Format_description_log_event const*) (log_event.cc:1112) ==8319== by 0x8061D46: main (mysqlbinlog.cc:1974) ==8319== ==8319== 484 bytes in 1 blocks are possibly lost in loss record 2 of 2 ==8319== at 0x4005993: malloc (vg_replace_malloc.c:195) ==8319== by 0x405AB8C: my_malloc (my_malloc.c:34) ==8319== by 0x405E189: alloc_root (my_alloc.c:201) ==8319== by 0x4060BDE: init_default_directories (default.c:1099) ==8319== by 0x40611D9: my_load_defaults (default.c:442) ==8319== by 0x406160B: load_defaults (default.c:386) ==8319== by 0x8061305: main (mysqlbinlog.cc:1365) ==8319== ==8319== LEAK SUMMARY: ==8319== definitely lost: 103 bytes in 1 blocks ==8319== indirectly lost: 0 bytes in 0 blocks ==8319== possibly lost: 484 bytes in 1 blocks ==8319== still reachable: 0 bytes in 0 blocks ==8319== suppressed: 0 bytes in 0 blocks ==8319== ==8319== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 20 from 8) ==8319== ==8319== 1 errors in context 1 of 3: ==8319== Conditional jump or move depends on uninitialised value(s) ==8319== at 0x805798A: Query_log_event::print_query_header(st_io_cache*, st_print_event_info*) (log_event.cc:2838) ==8319== by 0x805C44A: Query_log_event::print(_IO_FILE*, st_print_event_info*) (log_event.cc:2915) ==8319== by 0x805E09B: process_event(st_print_event_info*, Log_event*, unsigned long long, char const*) (mysqlbinlog.cc:962) ==8319== by 0x8061D03: main (mysqlbinlog.cc:1993) ==8319== Uninitialised value was created by a stack allocation ==8319== at 0x80612B1: main (mysqlbinlog.cc:2011) ==8319== --8319-- --8319-- used_suppression: 20 dl-hack3 ==8319== ==8319== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 20 from 8) [sbester@box1 mysql-5.1-bugteam]$ [sbester@box1 mysql-5.1-bugteam]$ cat /etc/*release Fedora Core release 6 (Zod) Fedora Core release 6 (Zod) [sbester@box1 mysql-5.1-bugteam]$ bzr log | head -n 20 ------------------------------------------------------------ revno: 3329 committer: Magne Mahre branch nick: mysql-5.1-bugteam-wl5154 timestamp: Thu 2010-01-21 09:10:05 +0100 message: WL#5154 Remove deprecated 4.1 features Built using: ./BUILD/compile-pentium-debug-max [sbester@box1 mysql-5.1-bugteam]$ file ./client/.libs/mysqlbinlog ./client/.libs/mysqlbinlog: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped [sbester@box1 mysql-5.1-bugteam]$ ldd ./client/.libs/mysqlbinlog linux-gate.so.1 => (0x006bf000) libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0x00ddb000) libmysqlclient.so.16 => /home/sbester/build/bzr/mysql-5.1-bugteam/libmysql/.libs/libmysqlclient.so.16 (0x008a2000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x050d8000) libnsl.so.1 => /lib/libnsl.so.1 (0x002e0000) libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0x00101000) libz.so.1 => /usr/lib/libz.so.1 (0x0012a000) libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00c92000) /lib/ld-linux.so.2 (0x002c3000) [sbester@box1 mysql-5.1-bugteam]$