Debian Codegraph @

mysql-test/suite/rpl/t/rpl_parallel_show_binlog_events_purge_logs.test

raw
1 #
2 # This include file is used by more than one test suite
3 # (currently rpl and binlog_encryption).
4 # Please check all dependent tests after modifying it
5 #
6
7 # BUG#13979418: SHOW BINLOG EVENTS MAY CRASH THE SERVER
8 #
9 # The function mysql_show_binlog_events has a local stack variable
10 # 'LOG_INFO linfo;', which is assigned to thd->current_linfo, however
11 # this variable goes out of scope and is destroyed before clean
12 # thd->current_linfo.
13 #
14 # This test case runs SHOW BINLOG EVENTS and FLUSH LOGS to make sure
15 # that with the fix local variable linfo is valid along all
16 # mysql_show_binlog_events function scope.
17 #
18 --source include/have_debug.inc
19 --source include/have_debug_sync.inc
20 --source include/master-slave.inc
21
22 --connection slave
23 SET DEBUG_SYNC= 'after_show_binlog_events SIGNAL on_show_binlog_events WAIT_FOR end';
24 --send SHOW BINLOG EVENTS
25
26 --connection slave1
27 SET DEBUG_SYNC= 'now WAIT_FOR on_show_binlog_events';
28 FLUSH LOGS;
29 SET DEBUG_SYNC= 'now SIGNAL end';
30
31 --connection slave
32 --disable_result_log
33 --reap
34 --enable_result_log
35 SET DEBUG_SYNC= 'RESET';
36
37 --connection master
38 --source include/rpl_end.inc