• aelkin/elkin@koti.dsl.inet.fi's avatar
    Bug #26000 SHOW SLAVE STATUS can crash mysqld during shutdown process · 5dc3fbf1
    aelkin/elkin@koti.dsl.inet.fi authored
    active_mi has been reset (shutdown) at the time of quering with 
    SHOW SLAVE STATUS so that 
    at handling of SHOW an attempt to read its members segfaults.
    
    Fixed with checking the value of active_mi before to call show_master_info()
    Merely send_ok() is invoked when active_mi does not exist.
    A test can not be easiely written.
    
    Notice, there are more analogical cases in the code which require a similar
    treatment (to be reported as a bug separately). 
    5dc3fbf1
sql_parse.cc 230 KB