#master: drop table if exists `t1`; create table `t1` (`col000` double default null) engine=myisam; #slave: drop table if exists `t1`; create table `t1` (`col000` double not null) engine=myisam; #master: insert into t1 values (null); [sbester@box1 mysql-advanced-gpl-5.1.39-linux-i686-glibc23]$ valgrind --tool=memcheck --track-origins=yes --db-attach=no -v --show-reachable=no ./bin/mysqld --no-defaults --basedir=./ --datadir=./data --port=3306 --server-id=6 ==23529== Memcheck, a memory error detector ==23529== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==23529== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==23529== Command: ./bin/mysqld --no-defaults --basedir=./ --datadir=./data --port=3306 --server-id=6 ==23529== --23529-- Valgrind options: --23529-- --tool=memcheck --23529-- --track-origins=yes --23529-- --db-attach=no --23529-- -v --23529-- --show-reachable=no --23529-- Contents of /proc/version: --23529-- 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 --23529-- Arch and hwcaps: X86, x86-sse1-sse2 --23529-- Page sizes: currently 4096, max supported 4096 --23529-- Valgrind library directory: /home/sbester/valgrind/lib/valgrind --23529-- Reading syms from /lib/ld-2.5.so (0x2c3000) --23529-- Reading syms from /home/sbester/mysql/5.1/mysql-advanced-gpl-5.1.39-linux-i686-glibc23/bin/mysqld (0x8048000) --23529-- Reading syms from /home/sbester/valgrind/lib/valgrind/memcheck-x86-linux (0x38000000) --23529-- object doesn't have a dynamic symbol table --23529-- Reading suppressions file: /home/sbester/valgrind/lib/valgrind/default.supp --23529-- REDIR: 0x2d80f0 (index) redirected to 0x3803e413 (vgPlain_x86_linux_REDIR_FOR_index) --23529-- Reading syms from /home/sbester/valgrind/lib/valgrind/vgpreload_core-x86-linux.so (0x4001000) --23529-- Reading syms from /home/sbester/valgrind/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4003000) ==23529== WARNING: new redirection conflicts with existing -- ignoring it --23529-- new: 0x002d80f0 (index ) R-> 0x040066d0 index --23529-- REDIR: 0x2d8290 (strlen) redirected to 0x40068b0 (strlen) --23529-- Reading syms from /lib/libpthread-2.5.so (0x484000) --23529-- Reading syms from /lib/libdl-2.5.so (0xdd5000) --23529-- Reading syms from /lib/libcrypt-2.5.so (0x50d8000) --23529-- Reading syms from /lib/libnsl-2.5.so (0x2e0000) --23529-- Reading syms from /lib/libm-2.5.so (0x401b000) --23529-- Reading syms from /lib/libc-2.5.so (0x4042000) --23529-- REDIR: 0x40af4e0 (memset) redirected to 0x4006c10 (memset) --23529-- REDIR: 0x40af9d0 (memcpy) redirected to 0x4007ad0 (memcpy) --23529-- REDIR: 0x40ae640 (rindex) redirected to 0x40065e0 (rindex) --23529-- REDIR: 0x40ae350 (strnlen) redirected to 0x4006860 (strnlen) --23529-- REDIR: 0x40af470 (memmove) redirected to 0x4006c60 (memmove) --23529-- REDIR: 0x40ae2a0 (strlen) redirected to 0x4006890 (strlen) --23529-- REDIR: 0x40a99b0 (calloc) redirected to 0x4004c1e (calloc) --23529-- REDIR: 0x40a9cb0 (malloc) redirected to 0x400590e (malloc) --23529-- Reading syms from /lib/libgcc_s-4.1.1-20061011.so.1 (0x4f81000) --23529-- object doesn't have a symbol table --23529-- REDIR: 0x40aefe0 (memchr) redirected to 0x4006a80 (memchr) --23529-- REDIR: 0x40ab4c0 (free) redirected to 0x4005528 (free) --23529-- REDIR: 0x40ae490 (strncmp) redirected to 0x40068f0 (strncmp) --23529-- REDIR: 0x40af6d0 (stpcpy) redirected to 0x40075b0 (stpcpy) --23529-- REDIR: 0x40addb0 (strcpy) redirected to 0x4007d60 (strcpy) --23529-- REDIR: 0x40add40 (strcmp) redirected to 0x4006960 (strcmp) --23529-- REDIR: 0x40adbd0 (index) redirected to 0x4006670 (index) --23529-- REDIR: 0x40b0280 (rawmemchr) redirected to 0x4006cf0 (rawmemchr) --23529-- REDIR: 0x40af540 (mempcpy) redirected to 0x4007330 (mempcpy) --23529-- REDIR: 0x40ada20 (strcat) redirected to 0x4007060 (strcat) --23529-- REDIR: 0x40ab6b0 (realloc) redirected to 0x40059bd (realloc) 091012 13:46:43 [Note] Plugin 'FEDERATED' is disabled. 091012 13:46:48 InnoDB: Started; log sequence number 0 381283 --23529-- memcheck GC: 1024 nodes, 1024 survivors (100.0%) --23529-- memcheck GC: increase table size to 2048 091012 13:46:50 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=box1-relay-bin' to avoid this problem. 091012 13:46:50 [Note] Slave I/O thread: connected to master 'root@192.168.1.100:3306',replication started in log 'xp64-bin.000001' at position 24507 091012 13:46:51 [Note] Event Scheduler: Loaded 0 events 091012 13:46:51 [Note] ./bin/mysqld: ready for connections. Version: '5.1.39-enterprise-gpl-advanced' socket: '/tmp/mysql.sock' port: 3306 MySQL Enterprise Server - Advanced Edition (GPL) 091012 13:46:51 [Note] Slave SQL thread initialized, starting replication in log 'xp64-bin.000001' at position 24507, relay log './box1-relay-bin.000011' position: 672 --23529-- REDIR: 0x40ae590 (strncpy) redirected to 0x4007c40 (strncpy) ==23529== Thread 11: ==23529== Invalid read of size 1 ==23529== at 0x4007BE0: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b31 is 0 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== ==23529== Invalid read of size 1 ==23529== at 0x4007BED: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b32 is 1 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== ==23529== Invalid read of size 1 ==23529== at 0x4007BF6: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b33 is 2 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== ==23529== Invalid read of size 1 ==23529== at 0x4007BFF: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b34 is 3 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== --23529-- REDIR: 0x40b0350 (strchrnul) redirected to 0x4006cc0 (strchrnul) --23529-- Reading syms from /lib/libnss_files-2.5.so (0x400f000) --23529-- Reading syms from /lib/libnss_dns-2.5.so (0x5061000) --23529-- Reading syms from /lib/libresolv-2.5.so (0x5067000) 091012 13:54:30 [Note] ./bin/mysqld: Normal shutdown 091012 13:54:30 [Note] Event Scheduler: Purging the queue. 0 events 091012 13:54:30 [Note] Slave I/O thread killed while reading event 091012 13:54:30 [Note] Slave I/O thread exiting, read up to log 'xp64-bin.000001', position 24716 091012 13:54:30 [Note] Error reading relay log event: slave SQL thread was killed 091012 13:54:31 InnoDB: Starting shutdown... 091012 13:54:33 InnoDB: Shutdown completed; log sequence number 0 381283 091012 13:54:33 [Warning] Forcing shutdown of 1 plugins 091012 13:54:33 [Note] ./bin/mysqld: Shutdown complete --23529-- Discarding syms at 0x40109a0-0x4017344 in /lib/libnss_files-2.5.so due to munmap() --23529-- Discarding syms at 0x5061c50-0x50646b4 in /lib/libnss_dns-2.5.so due to munmap() --23529-- Discarding syms at 0x50691a0-0x5074134 in /lib/libresolv-2.5.so due to munmap() ==23529== ==23529== HEAP SUMMARY: ==23529== in use at exit: 1,992 bytes in 13 blocks ==23529== total heap usage: 32,686 allocs, 32,673 frees, 49,172,692 bytes allocated ==23529== ==23529== Searching for pointers to 13 not-freed blocks ==23529== Checked 84,513,476 bytes ==23529== ==23529== LEAK SUMMARY: ==23529== definitely lost: 0 bytes in 0 blocks ==23529== indirectly lost: 0 bytes in 0 blocks ==23529== possibly lost: 1,088 bytes in 8 blocks ==23529== still reachable: 904 bytes in 5 blocks ==23529== suppressed: 0 bytes in 0 blocks ==23529== Rerun with --leak-check=full to see details of leaked memory ==23529== ==23529== ERROR SUMMARY: 8 errors from 4 contexts (suppressed: 28 from 11) ==23529== ==23529== 2 errors in context 1 of 4: ==23529== Invalid read of size 1 ==23529== at 0x4007BFF: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b34 is 3 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== ==23529== ==23529== 2 errors in context 2 of 4: ==23529== Invalid read of size 1 ==23529== at 0x4007BF6: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b33 is 2 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== ==23529== ==23529== 2 errors in context 3 of 4: ==23529== Invalid read of size 1 ==23529== at 0x4007BED: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b32 is 1 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== ==23529== ==23529== 2 errors in context 4 of 4: ==23529== Invalid read of size 1 ==23529== at 0x4007BE0: memcpy (mc_replace_strmem.c:482) ==23529== by 0x81DC4B7: Field_real::unpack(unsigned char*, unsigned char const*, unsigned int, bool) (field.cc:1498) ==23529== by 0x82CE116: unpack_row(Relay_log_info const*, st_table*, unsigned int, unsigned char const*, st_bitmap const*, unsigned char const**, unsigned long*) (rpl_record.cc:242) ==23529== by 0x82C590D: Rows_log_event::write_row(Relay_log_info const*, bool) (log_event.h:3549) ==23529== by 0x82C5B6D: Write_rows_log_event::do_exec_row(Relay_log_info const*) (log_event.cc:8623) ==23529== by 0x82C70F4: Rows_log_event::do_apply_event(Relay_log_info const*) (log_event.cc:7407) ==23529== by 0x8339F4E: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*, bool) (log_event.h:1059) ==23529== by 0x833B595: handle_slave_sql (slave.cc:2281) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== Address 0x7c49b31 is 0 bytes after a block of size 1 alloc'd ==23529== at 0x4005993: malloc (vg_replace_malloc.c:195) ==23529== by 0x84C8F83: my_malloc (my_malloc.c:34) ==23529== by 0x82C9495: Rows_log_event::Rows_log_event(char const*, unsigned int, Log_event_type, Format_description_log_event const*) (log_event.cc:7075) ==23529== by 0x82C96EE: Write_rows_log_event::Write_rows_log_event(char const*, unsigned int, Format_description_log_event const*) (log_event.cc:8241) ==23529== by 0x82CBDDB: Log_event::read_log_event(char const*, unsigned int, char const**, Format_description_log_event const*) (log_event.cc:1275) ==23529== by 0x82CC2E7: Log_event::read_log_event(st_io_cache*, st_my_pthread_fastmutex_t*, Format_description_log_event const*) (log_event.cc:1124) ==23529== by 0x833AC89: handle_slave_sql (slave.cc:4091) ==23529== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==23529== by 0x410F06D: clone (in /lib/libc-2.5.so) ==23529== --23529-- --23529-- used_suppression: 28 dl-hack3 ==23529== ==23529== ERROR SUMMARY: 8 errors from 4 contexts (suppressed: 28 from 11)