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] MySQL Verification Team
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.