mysqlbinlog oddness

Getting some odd output when I run mysqlbinlog however it appears it is dumping the log file properly and aborting at the end.

mysqlbinlog mysql-bin.000233 > bin233.out

*** glibc detected *** mysqlbinlog: free(): invalid pointer: 0x0000003980b52a38 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3980870d7f]
/lib64/libc.so.6(cfree+0x4b)[0x39808711db]
mysqlbinlog(main+0x4f0)[0x41c430]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x398081d994]
mysqlbinlog[0x40a969]
======= Memory map: ========
00400000-00429000 r-xp 00000000 08:03 123275832 /usr/bin/mysqlbinlog
00628000-0062f000 rw-p 00028000 08:03 123275832 /usr/bin/mysqlbinlog
02d32000-02d99000 rw-p 02d32000 00:00 0 [heap]
38e8400000-38e8409000 r-xp 00000000 08:03 36012046 /lib64/libcrypt-2.5.so
38e8409000-38e8608000 —p 00009000 08:03 36012046 /lib64/libcrypt-2.5.so
38e8608000-38e8609000 r–p 00008000 08:03 36012046 /lib64/libcrypt-2.5.so
38e8609000-38e860a000 rw-p 00009000 08:03 36012046 /lib64/libcrypt-2.5.so
38e860a000-38e8638000 rw-p 38e860a000 00:00 0
38e9000000-38e9015000 r-xp 00000000 08:03 36012066 /lib64/libnsl-2.5.so
38e9015000-38e9214000 —p 00015000 08:03 36012066 /lib64/libnsl-2.5.so
38e9214000-38e9215000 r–p 00014000 08:03 36012066 /lib64/libnsl-2.5.so
38e9215000-38e9216000 rw-p 00015000 08:03 36012066 /lib64/libnsl-2.5.so
38e9216000-38e9218000 rw-p 38e9216000 00:00 0
3980400000-398041c000 r-xp 00000000 08:03 36012034 /lib64/ld-2.5.so
398061c000-398061d000 r–p 0001c000 08:03 36012034 /lib64/ld-2.5.so
398061d000-398061e000 rw-p 0001d000 08:03 36012034 /lib64/ld-2.5.so
3980800000-398094d000 r-xp 00000000 08:03 36012041 /lib64/libc-2.5.so
398094d000-3980b4d000 —p 0014d000 08:03 36012041 /lib64/libc-2.5.so
3980b4d000-3980b51000 r–p 0014d000 08:03 36012041 /lib64/libc-2.5.so
3980b51000-3980b52000 rw-p 00151000 08:03 36012041 /lib64/libc-2.5.so
3980b52000-3980b57000 rw-p 3980b52000 00:00 0
3981000000-3981016000 r-xp 00000000 08:03 36012240 /lib64/libpthread-2.5.so
3981016000-3981215000 —p 00016000 08:03 36012240 /lib64/libpthread-2.5.so
3981215000-3981216000 r–p 00015000 08:03 36012240 /lib64/libpthread-2.5.so
3981216000-3981217000 rw-p 00016000 08:03 36012240 /lib64/libpthread-2.5.so
3981217000-398121b000 rw-p 3981217000 00:00 0
3981400000-3981482000 r-xp 00000000 08:03 36012329 /lib64/libm-2.5.so
3981482000-3981681000 —p 00082000 08:03 36012329 /lib64/libm-2.5.so
3981681000-3981682000 r–p 00081000 08:03 36012329 /lib64/libm-2.5.so
3981682000-3981683000 rw-p 00082000 08:03 36012329 /lib64/libm-2.5.so
3982400000-3982407000 r-xp 00000000 08:03 36012242 /lib64/librt-2.5.so
3982407000-3982607000 —p 00007000 08:03 36012242 /lib64/librt-2.5.so
3982607000-3982608000 r–p 00007000 08:03 36012242 /lib64/librt-2.5.so
3982608000-3982609000 rw-p 00008000 08:03 36012242 /lib64/librt-2.5.so
3aace00000-3aace0d000 r-xp 00000000 08:03 36012098 /lib64/libgcc_s-4.1.2-20080825.so.1
3aace0d000-3aad00d000 —p 0000d000 08:03 36012098 /lib64/libgcc_s-4.1.2-20080825.so.1
3aad00d000-3aad00e000 rw-p 0000d000 08:03 36012098 /lib64/libgcc_s-4.1.2-20080825.so.1
3d7c000000-3d7c0f7000 r-xp 00000000 08:03 123282229 /usr/lib64/libmysqlclient.so.16.0.0
3d7c0f7000-3d7c1f7000 —p 000f7000 08:03 123282229 /usr/lib64/libmysqlclient.so.16.0.0
3d7c1f7000-3d7c305000 rw-p 000f7000 08:03 123282229 /usr/lib64/libmysqlclient.so.16.0.0
3d7c305000-3d7c306000 rw-p 3d7c305000 00:00 0
2b35bd355000-2b35bd358000 rw-p 2b35bd355000 00:00 0
2b35bd362000-2b35bd365000 rw-p 2b35bd362000 00:00 0
7fffc4594000-7fffc45a9000 rw-p 7ffffffe9000 00:00 0 [stack]
7fffc45fd000-7fffc4600000 r-xp 7fffc45fd000 00:00 0 [vdso]
ffffffffff600000-ffffffffffe00000 —p 00000000 00:00 0 [vsyscall]
Aborted

My set up:
CentOS 5.8

rpm -qa | grep -i percona

Percona-Server-devel-51-5.1.62-rel13.3.435.rhel5
Percona-Server-server-51-5.1.62-rel13.3.435.rhel5
Percona-Server-client-51-5.1.62-rel13.3.435.rhel5
percona-toolkit-2.1.1-1
Percona-Server-shared-compat-5.1.62-rel13.3.435.rhel5

Linux 2.6.18-308.4.1.el5 #1 SMP Tue Apr 17 17:08:00 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

ldd /usr/bin/mysqlbinlog

linux-vdso.so.1 => (0x00007fffa4bfd000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003981000000)
libmysqlclient.so.16 => /usr/lib64/libmysqlclient.so.16 (0x0000003d7c000000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00000038e8400000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00000038e9000000)
libm.so.6 => /lib64/libm.so.6 (0x0000003981400000)
librt.so.1 => /lib64/librt.so.1 (0x0000003982400000)
libc.so.6 => /lib64/libc.so.6 (0x0000003980800000)
/lib64/ld-linux-x86-64.so.2 (0x0000003980400000)

Hi Grego,

This looks more like a bug that was reported on windows build of MySQL 5.1 and was fixed in MySQL 5.1.17. I am not sure if that same bug is related to you. I will check out with the Percona Server developers and get back to you.

Best,
Ovais