• Andrei's avatar
    MDEV-29322 ASAN heap-use-after-free in Query_log_event::do_apply_event · 55632020
    Andrei authored
    The ASAN report was made in the parallel slave execution of a query
    event and implicitly involved (so also parallelly run) Format-Description
    event.
    The Query actually had unexpected impossible dependency on a preceding
    "old" FD whose instance got destructed, to cause the ASAN error.
    
    The case is fixed with storing the FD's value into Query-log-event
    at its instantiating on slave. The stored value is from the very
    FD of the Query's original binlog so remains to be correct
    at the query event applying.
    
    The branch C. of a new rpl_parallel_29322.test also demonstrates
    (may need few --repeat though) the bug in its simple form of the same
    server version binlog.
    55632020
rpl_parallel_29322.inc 2.89 KB