Bug #13153 double free in mysqltest in test init_connect
Submitted: 13 Sep 2005 20:36 Modified: 14 Sep 2005 11:32
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0 OS:Linux (linux)
Assigned to: Guilhem Bichot CPU Architecture:Any

[13 Sep 2005 20:36] Guilhem Bichot
Description:
4.1 not affected.
When I run ./mysql-test-run t/information_schema*.test t/init_connect.test,
I often get, in init_connect:
*** glibc detected *** /m/mysql-5.0-wl1012/client/.libs/mysqltest: double free or corruption (out): 0x00000000005f4ff0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x31ffa6a94e]
/lib64/libc.so.6(__libc_free+0x6e)[0x31ffa6ae7e]
/m/mysql-5.0/libmysql/.libs/libmysqlclient.so.15(my_no_flags_free+0x84)[0x2aaaaaad1a8a]
/m/mysql-5.0/client/.libs/mysqltest[0x4049fb]
/m/mysql-5.0/client/.libs/mysqltest(main+0xc95)[0x40d8d4]
/lib64/libc.so.6(__libc_start_main+0xdc)[0x31ffa1c4cc]
/m/mysql-5.0/client/.libs/mysqltest[0x4045a9]

How to repeat:
see description

Suggested fix:
will propose patch
[13 Sep 2005 20:38] Guilhem Bichot
in previous post, please ignore the "-wl1012" string, I later got the same failure in a clean 5.0 tree.
[13 Sep 2005 20:53] Guilhem Bichot
Patch submitted to Monty for him to review (his code). mail.mysql.com:/tmp/bug13153-patch
[14 Sep 2005 11:32] Guilhem Bichot
Fix pushed by Monty in 5.0.13.