| 1 |
#Want to skip this test from daily Valgrind execution |
| 2 |
--source include/no_valgrind_without_big.inc |
| 3 |
# BUG#13979418: SHOW BINLOG EVENTS MAY CRASH THE SERVER |
| 4 |
# |
| 5 |
# The function mysql_show_binlog_events has a local stack variable |
| 6 |
# 'LOG_INFO linfo;', which is assigned to thd->current_linfo, however |
| 7 |
# this variable goes out of scope and is destroyed before clean |
| 8 |
# thd->current_linfo. |
| 9 |
# |
| 10 |
# This test case runs SHOW BINLOG EVENTS and FLUSH LOGS to make sure |
| 11 |
# that with the fix local variable linfo is valid along all |
| 12 |
# mysql_show_binlog_events function scope. |
| 13 |
# |
| 14 |
--source include/have_debug_sync.inc |
| 15 |
--source include/master-slave.inc |
| 16 |
|
| 17 |
--echo [connection slave] |
| 18 |
--connection slave |
| 19 |
SET DEBUG_SYNC= 'after_show_binlog_events SIGNAL on_show_binlog_events WAIT_FOR end'; |
| 20 |
--send SHOW BINLOG EVENTS |
| 21 |
|
| 22 |
--connection slave1 |
| 23 |
--echo [connection slave1] |
| 24 |
SET DEBUG_SYNC= 'now WAIT_FOR on_show_binlog_events'; |
| 25 |
FLUSH LOGS; |
| 26 |
SET DEBUG_SYNC= 'now SIGNAL end'; |
| 27 |
SET DEBUG_SYNC= 'RESET'; |
| 28 |
|
| 29 |
--echo [connection slave] |
| 30 |
--connection slave |
| 31 |
--disable_result_log |
| 32 |
--reap |
| 33 |
--enable_result_log |
| 34 |
SET DEBUG_SYNC= 'RESET'; |
| 35 |
|
| 36 |
--connection master |
| 37 |
--source include/rpl_end.inc |