• Gleb Shchepa's avatar
    Bug #38816: kill + flush tables with read lock + stored · 6aea4ceb
    Gleb Shchepa authored
                procedures causes crashes!
    
    The problem of that bugreport was mostly fixed by the
    patch for bug 38691.
    However, attached test case focused on another crash or
    valgrind warning problem: SHOW PROCESSLIST query accesses
    freed memory of SP instruction that run in a parallel
    connection.
    
    Changes of thd->query/thd->query_length in dangerous
    places have been guarded with the per-thread
    LOCK_thd_data mutex (the THD::LOCK_delete mutex has been
    renamed to THD::LOCK_thd_data).
    6aea4ceb
sql_class.cc 66 KB