Bug #54450 mysql_intall_db crash with debug option
Submitted: 12 Jun 2010 3:42 Modified: 21 Jun 2010 7:54
Reporter: Yuan WANG Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:5.1.47, 5.1.48, 5.1, 5.6.99 bzr OS:Linux ( 2.6.18-6-amd64 )
Assigned to: CPU Architecture:Any

[12 Jun 2010 3:42] Yuan WANG
Description:
Compile mysql 5.1.47 with BUILD/compile-pentium64-debug-max, and run mysql_install_db, it crashed. The error message is given in the attached file.

The content of my.cnf is:
[client]
port                    = 3308
socket                  = /home/ddb/wy/mysql-dbg/var/mysql.sock

[mysqld]
max_allowed_packet      = 30000000
default-character-set   = gbk
server-id               = 1
port                    = 3308
socket                  = /home/ddb/wy/mysql-dbg/var/mysql.sock
basedir                 = /home/ddb/wy/mysql-dbg/
datadir                 = /home/ddb/wy/mysql-dbg/var
log_bin                 = mysql-bin
binlog_format           = MIXED
core-file
debug

We found that if we comment out the "debug" option, then mysql_install_db will be OK.

How to repeat:
See description.
[12 Jun 2010 3:43] Yuan WANG
Error message

Attachment: errmsg.txt (text/plain), 7.88 KiB.

[14 Jun 2010 20:56] MySQL Verification Team
Thank you for the bug report.

[miguel@hegel bzr]$ cd 5.1-build/
[miguel@hegel 5.1-build]$ scripts/mysql_install_db --debug
Installing MySQL system tables...
Warning: Not freed memory segments: 1
Warning: Memory that was not free'ed (512 bytes):
           512 bytes at 0x18c08a8, allocated at line   42 in 'rpl_tblmap.cc'
Maximum memory usage: 8823806 bytes (8617k)
*** glibc detected *** /home/miguel/dbs/5.1/libexec/mysqld: corrupted double-linked list: 0x0000000001895480 ***
[21 Jun 2010 7:54] Sveta Smirnova
Bug still exists in version 5.1.48