Bug #74853 THD killed_state isn't thread safe on non-intel
| Submitted: | 14 Nov 2014 6:07 | Modified: | 1 Jul 2015 5:03 |
|---|---|---|---|
| Reporter: | Stewart Smith | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
| Version: | 5.7.7 | OS: | Any |
| Assigned to: | CPU Architecture: | ARM | |
| Tags: | PowerPC | ||
[14 Nov 2014 6:07]
Stewart Smith
[14 Nov 2014 6:08]
Stewart Smith
THD::killed should not be volatile, should instead use correct accessors (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: volatile-thd-killed.patch (text/x-patch), 76.41 KiB.
[10 Apr 2015 8:08]
Stewart Smith
Still in 5.7.7
[1 Jul 2015 5:03]
MySQL Verification Team
Hello Stewart, Thank you for the report and contribution. Thanks, Umesh
[22 Apr 2020 4:08]
Kang Xia
volatile_thd_killed.patch is not a complete resolution. abort_loop used in mysql_src_5.7.29/sql/sql_class.h:send_kill_message() is defined as volatile too: //mysql_src/5.7.29/sql/mysqld.h extern MYSQL_PLUGIN_IMPORT bool volatile abort_loop;
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.