Conditional jump or move depends on uninitialised value(s) at exec_relay_log_event
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Fix Released
|
High
|
Robert Golebiowski | |||
5.7 |
Fix Released
|
High
|
Robert Golebiowski |
Bug Description
Several rpl testcases started failing under Valgrind with:
==20950== Thread 23:
==20950== Conditional jump or move depends on uninitialised value(s)
==20950== at 0xA0C5D6: exec_relay_
==20950== by 0xA12D39: handle_slave_sql (rpl_slave.cc:6438)
==20950== by 0xE55A32: pfs_spawn_thread (pfs.cc:1860)
==20950== by 0x5F4D6C9: start_thread (pthread_
==20950== by 0x6B140AE: clone (clone.S:105)
==20950== Uninitialised value was created by a stack allocation
==20950== at 0x9A477F: Log_event:
==20950==
The testcases are rpl.rpl_
git blame suggests - and it seems to be very likely - that this is a regression introduced by the fix for bug 1654091
On SHOW SLAVE STATUS testcases it looks like
rpl.rpl_ mts_slave_ hang_with_ partial_ trx 'row' w1 [ fail ] Found warnings/errors in server log file! status( THD*, Master_info*) (rpl_slave.cc:3302) command( THD*) (sql_parse.cc:3296) command( enum_server_ command, THD*, char*, unsigned int) (sql_parse.cc:1485) one_connection( THD*) (sql_connect. cc:1550) one_connection (sql_connect. cc:1454) create. c:333) h:224) status( THD*, Master_info*) (rpl_slave.cc:3303) command( THD*) (sql_parse.cc:3296) command( enum_server_ command, THD*, char*, unsigned int) (sql_parse.cc:1485) one_connection( THD*) (sql_connect. cc:1550) one_connection (sql_connect. cc:1454) create. c:333) text::store_ longlong( long long, bool) (protocol.cc:1051) :store( long long) (protocol.h:83) status( THD*, Master_info*) (rpl_slave.cc:3303) command( THD*) (sql_parse.cc:3296) command( enum_server_ command, THD*, char*, unsigned int) (sql_parse.cc:1485) one_connection( THD*) (sql_connect. cc:1550) one_connection (sql_connect. cc:1454) create. c:333) text::store_ longlong( long long, bool) (protocol.cc:1051)
Test ended at 2017-03-16 23:01:20
line
==15303== Thread 26:
==15303== Conditional jump or move depends on uninitialised value(s)
==15303== at 0xAE18B8: show_slave_
==15303== by 0x81B605: mysql_execute_
==15303== by 0x825DD8: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7056)
==15303== by 0x816F61: dispatch_
==15303== by 0x815CF1: do_command(THD*) (sql_parse.cc:1062)
==15303== by 0x7D8BED: do_handle_
==15303== by 0x7D88CD: handle_
==15303== by 0xF1CAAB: pfs_spawn_thread (pfs.cc:1860)
==15303== by 0x61596B9: start_thread (pthread_
==15303== by 0x6D1D82C: clone (clone.S:109)
==15303== Conditional jump or move depends on uninitialised value(s)
==15303== at 0x82BDCA: long const& std::max<long>(long const&, long const&) (stl_algobase.
==15303== by 0xAE18E2: show_slave_
==15303== by 0x81B605: mysql_execute_
==15303== by 0x825DD8: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7056)
==15303== by 0x816F61: dispatch_
==15303== by 0x815CF1: do_command(THD*) (sql_parse.cc:1062)
==15303== by 0x7D8BED: do_handle_
==15303== by 0x7D88CD: handle_
==15303== by 0xF1CAAB: pfs_spawn_thread (pfs.cc:1860)
==15303== by 0x61596B9: start_thread (pthread_
==15303== by 0x6D1D82C: clone (clone.S:109)
==15303== Conditional jump or move depends on uninitialised value(s)
==15303== at 0xF76E4E: int10_to_str (int2str.c:142)
==15303== by 0x74E132: Protocol_
==15303== by 0x765677: Protocol:
==15303== by 0xAE18FE: show_slave_
==15303== by 0x81B605: mysql_execute_
==15303== by 0x825DD8: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7056)
==15303== by 0x816F61: dispatch_
==15303== by 0x815CF1: do_command(THD*) (sql_parse.cc:1062)
==15303== by 0x7D8BED: do_handle_
==15303== by 0x7D88CD: handle_
==15303== by 0xF1CAAB: pfs_spawn_thread (pfs.cc:1860)
==15303== by 0x61596B9: start_thread (pthread_
==15303== by 0x6D1D82C: clone (clone.S:109)
==15303== Conditional jump or move depends on uninitialised value(s)
==15303== at 0xF76F0E: int10_to_str (int2str.c:156)
==15303== by 0x74E132: Protocol_
==...