Bug #91801 | Read of free memory in mysqld_list_processes | ||
---|---|---|---|
Submitted: | 26 Jul 2018 13:20 | Modified: | 27 Jul 2018 12:16 |
Reporter: | Sveta Smirnova (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S3 (Non-critical) |
Version: | 5.6.40 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | ASAN build |
[26 Jul 2018 13:20]
Sveta Smirnova
[26 Jul 2018 13:20]
Sveta Smirnova
test case for MTR
Attachment: rpl_PS-4475.test (application/octet-stream, text), 920 bytes.
[26 Jul 2018 13:21]
Sveta Smirnova
Option file for master
Attachment: rpl_PS-4475-master.opt (application/octet-stream, text), 110 bytes.
[26 Jul 2018 13:21]
Sveta Smirnova
Option file for slave
Attachment: rpl_PS-4475-slave.opt (application/octet-stream, text), 133 bytes.
[26 Jul 2018 13:21]
Sveta Smirnova
script which calls SysBench from MTR asynchronously
Attachment: sysbench_async.sh (application/x-shellscript, text), 1024 bytes.
[26 Jul 2018 13:22]
Sveta Smirnova
Lua script
Attachment: oltp_rw.lua (text/x-lua), 689 bytes.
[26 Jul 2018 13:31]
Sveta Smirnova
Suggested fix: backport fix from version 5.7. diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc index f2e4dc2..c01c1cf 100644 --- a/sql/rpl_rli.cc +++ b/sql/rpl_rli.cc @@ -1532,9 +1532,9 @@ void Relay_log_info::cleanup_context(THD *thd, bool error) } if (rows_query_ev) { + info_thd->reset_query(); delete rows_query_ev; rows_query_ev= NULL; - info_thd->set_query(NULL, 0); } m_table_map.clear_tables(); slave_close_thread_tables(thd);
[27 Jul 2018 12:04]
MySQL Verification Team
Hello Sveta, Thank you for the report. Verified as described. regards, Umesh
[27 Jul 2018 12:05]
MySQL Verification Team
5.6.40 Build details + Test results
Attachment: 91630_5.6.40.results (application/octet-stream, text), 21.38 KiB.
[27 Jul 2018 12:06]
MySQL Verification Team
Hi Sveta, Please ensure to re-send the patch via "Contribution" tab. Otherwise we would not be able to accept it. regards, Umesh
[27 Jul 2018 12:16]
Sveta Smirnova
Umesh, this is not real contribution. This is just pointer on what changed in version 5.7. This is not my code, this is Oracle's code =) It looks like this issue was discovered by internal QA and fixed in 5.7, but not in 5.6.
[27 Jul 2018 12:21]
MySQL Verification Team
Okay :) regards, umesh