use of uninitialized vale in MYSQL_BIN_LOG::write()
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL patches by Codership | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
High
|
Teemu Ollakka | |||
5.6 |
Fix Released
|
High
|
Teemu Ollakka | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
High
|
Unassigned | |||
5.6 |
Fix Released
|
High
|
Unassigned |
Bug Description
Valgrind complains:
==24840== Conditional jump or move depends on uninitialised value(s)
==24840== at 0x765459: MYSQL_BIN_
==24840== by 0x581CD6: mysql_create_
==24840== by 0x5A602F: mysql_execute_
==24840== by 0x5AB82A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6266)
==24840== by 0x5ABA80: wsrep_mysql_
==24840== by 0x5AD0E8: dispatch_
==24840== by 0x5AF908: do_command(THD*) (sql_parse.cc:869)
==24840== by 0x658310: do_handle_
==24840== by 0x6584CC: handle_
==24840== by 0x5897E99: start_thread (pthread_
==24840== by 0x67D5CCC: clone (clone.S:112)
The reason for uninitialized value is that setting value for check_purge in MYSQL_BIN_
#ifdef WITH_WSREP
if (WSREP_ON && wsrep_to_isolation)
{
WSREP_
wsrep_
DBUG_
}
#endif
Related warnings seen in jenkins builds:
======= ======= ======= ======= ======= =======
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== Conditional jump or move depends on uninitialised value(s) LOG::write( Log_event* ) (log.cc:5400) db(THD* , char*, st_ha_create_ information* , bool) (sql_db.cc:660) command( THD*) (sql_parse.cc:3865) parse(THD* , char*, unsigned int, Parser_state*) (sql_parse.cc:6221) command( enum_server_ command, THD*, char*, unsigned int) (sql_parse.cc:1245) one_connection( THD*) (sql_connect. cc:1526) one_connection (sql_connect. cc:1434) libpthread- 2.12.so) libc-2. 12.so) LOG::write( Log_event* ) (log.cc:5400) query(THD: :enum_binlog_ query_type, char const*, unsigned long, bool, bool, bool, int) (sql_class.cc:5846) table_no_ locks(THD* , TABLE_LIST*, bool, bool, bool, bool) (sql_table.cc:2368) table(THD* , TABLE_LIST*, char, char) (sql_table.cc:1960) command( THD*) (sql_parse.cc:3680) parse(THD* , char*, unsigned int, Parser_state*) (sql_parse.cc:6221) command( enum_server_ command, THD*, char*, unsigned int) (sql_parse.cc:1245) one_connection( THD*) (sql_connect. cc:1526)
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== at 0x74A506: MYSQL_BIN_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x57D616: mysql_create_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x59DF92: mysql_execute_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x5A029A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6417)
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x5A03F1: wsrep_mysql_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x5A3945: dispatch_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x5A4366: do_command(THD*) (sql_parse.cc:874)
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x64105E: do_handle_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x641240: handle_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x381C407850: start_thread (in /lib64/
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590== by 0x381C0E894C: clone (in /lib64/
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.593 6590==
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== Conditional jump or move depends on uninitialised value(s)
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== at 0x74A506: MYSQL_BIN_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x576A26: THD::binlog_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x60168D: mysql_rm_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x60187C: mysql_rm_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x59B428: mysql_execute_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x5A029A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6417)
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x5A03F1: wsrep_mysql_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x5A3945: dispatch_
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x5A4366: do_command(THD*) (sql_parse.cc:874)
# 2013-10-24T02:20:27 [4058] ==00:00:00:45.723 6590== by 0x64105E: do_handle_
# 2013-10-24T02:20:27 [4058] ==00:00:00:4...