Bug #99131 Segfault on shutdown if started with --create-admin-listener-thread=1 option

Submitted: 31 Mar 2020 13:33 Modified: 3 Apr 2020 12:37
Reporter: Kamil Holubicki (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Options Severity:S2 (Serious)
Version:8.0.19 OS:Any
Assigned to: CPU Architecture:Any

[31 Mar 2020 13:33] Kamil Holubicki
Description:
Server crashes with segmentation fault on shutdown if started with -- create-admin-listener-thread=1 option and without --admin-address option

How to repeat:
Start server with -- create-admin-listener-thread=1 option and without --admin-address option
using mysql command line client execute SHUTDOWN

Suggested fix:
Improve logic/protection in Mysqld_socket_listener::close_listener() to detect if setup of  admin_socket_thread_id.thread took place in  Mysqld_socket_listener::setup_listener()
[1 Apr 2020 5:45] MySQL Verification Team
Hello Kamil,

Thank you for the report.
Verified as described with 8.0.19 build.

regards,
Umesh
[1 Apr 2020 12:44] Shane Bester
I already filed it
Bug 30785609 - CRASH ON SHUTDOWN WITH CREATE_ADMIN_LISTENER_THREAD=1 

--
Fixed in 8.0.20.

Starting the server with create_admin_listener_thread enabled and
without admin_address enabled caused an abnormal exit during the server
shutdown process. 
--
[3 Apr 2020 12:37] Erlend Dahl
As Shane noticed, already fixed in the upcoming 8.0.20 release.

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.