• Sergei Golubchik's avatar
    ASAN error in rpl.mysql-wsrep#110-2 · 06ee58a7
    Sergei Golubchik authored
    Annotate_rows_log_event again. When a new annotate event comes,
    the server applies it first (which backs up thd->query_string),
    then frees the old annotate event, if any. Normally there isn't.
    
    But with sub-statements (e.g. triggers) new annotate event comes
    before the first one is freed, so the second event backs up
    thd->query_string that was set by the first annotate event. Then
    the first event is freed, together with its query string. And then
    the second event restores thd->query_string to this freed memory.
    
    Fix: free old annotate event before applying the new one.
    06ee58a7
rpl_rli.h 30.4 KB