• Ashish Agarwal's avatar
    Bug#14363985: MYSQLD CRASHED WHEN DISABL AND · 8c239b09
    Ashish Agarwal authored
                  ENABLE AUDI PLUGIN WHEN DDL
                  OPERATION HAPPENING
    
    PROBLEM: While unloading the plugin, state is
             not checked before it is to be reaped.
             This can lead to simultaneous free of
             plugin memory by more than one thread.
             Multiple deallocation leads to server
             crash. In the present bug two threads
             deallocate the alog_log plugin.
    
    SOLUTION: A check is added to ensure that only
              one thread is unloading the plugin.
    
    NOTE: No mtr test is added as it requires
          multiple threads to access critical
          section. debug_sync cannot be used in
          the current senario because we dont
          have access to thread pointer in
          some of the plugin functions. IMHO no
          test case in the current time frame.
    8c239b09
sql_plugin.cc 109 KB