• Jacob Mathew's avatar
    MDEV-7914: spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot · ab9d420d
    Jacob Mathew authored
    The crash occurs when a thread that is closing its connection attempts to
    access Spider transaction information when another thread has freed that memory
    while processing Spider plugin deinit.  This occurs because Spider does not
    adjust the plugin's reference count when it sets a transaction information
    pointer for the plugin.
    
    The fix I implemented changes the way Spider sets the transaction information
    pointer to use thd_set_ha_data() so that Spider's plugin reference counter is
    adjusted as well.
    
    Author:
      Jacob Mathew.
    
    Reviewer:
      Kentoku Shiba.
    
    Merged From:
      Commit eabfadce on branch bb-10.3-MDEV-7914
    ab9d420d
ha_spider.cc 460 KB