Bug #104544 Under certain circumstances, show slave hosts will kill mysql client

Submitted: 5 Aug 2021 7:18 Modified: 5 Aug 2021 16:30
Reporter: GONGTUI FU Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:8.0.25 OS:Any
Assigned to: CPU Architecture:Any

[5 Aug 2021 7:18] GONGTUI FU
Description:
The third-party plugin that has no Slave_UUID is used as the slave to connect master. mysql client connects master and executes "show slave hosts" statement,
mysql client will logout!

How to repeat:
1. The third-party plugin that has no Slave_UUID is used as the slave to connect master. 

2. mysql connects master.

3. execute "show slave hosts" statement.

Suggested fix:
rpl_master.cc:show_slave_hosts(THD *thd)

-    if (get_slave_uuid(si->thd, &slave_uuid))
-      protocol->store(slave_uuid.c_ptr_safe(), &my_charset_bin);
+    get_slave_uuid(si->thd, &slave_uuid);
+    protocol->store(slave_uuid.c_ptr_safe(), &my_charset_bin);
[5 Aug 2021 10:16] MySQL Verification Team
Hello GONGTUI FU,

Thank you for the report and feedback.
Imho this is duplicate of Bug #99857, please see Bug #99857

regards,
Umesh
[5 Aug 2021 16:30] GONGTUI FU
when will the bug be fixed? I test it at the lastest 8.0.25 version.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 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.