• Jacob Mathew's avatar
    MDEV-7914: spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot · f76a17e3
    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 ab9d420d on branch 10.2
    f76a17e3
spd_malloc.h 2.29 KB