From 57fd548d1035b07de1ec3e1a99881d5869ce0c44 Mon Sep 17 00:00:00 2001 From: Eugene Kosov Date: Fri, 12 Jan 2018 22:45:35 +0300 Subject: [PATCH] SQL: uninitialized read [#387] rpl.rpl_events sometimes fails in release mode after be81b00c843b4a3335a630afa7200fda6eab8e89 This could be prevented with MSAN --- sql/sql_class.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 84fdaf8b1b6..9f6ff7cde34 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -813,6 +813,8 @@ THD::THD(my_thread_id id, bool is_wsrep_applier, bool skip_global_sys_var_lock) // Must be reset to handle error with THD's created for init of mysqld lex->current_select= 0; start_utime= utime_after_query= 0; + system_time= 0; + system_time_sec_part= 0; utime_after_lock= 0L; progress.arena= 0; progress.report_to_client= 0;