include/reset_master.inc
*** This test depends on configured size of binlogs.
CREATE TABLE t1 (a INT PRIMARY KEY, b longtext) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1, '');
INSERT INTO t1 VALUES (2, REPEAT('2', 200000));

# Flush all dirty pages from buffer pool
SET @no_checkpoint_save_pct= @@GLOBAL.innodb_max_dirty_pages_pct;
SET @no_checkpoint_save_pct_lwm= @@GLOBAL.innodb_max_dirty_pages_pct_lwm;
SET GLOBAL innodb_max_dirty_pages_pct_lwm=0.0;
SET GLOBAL innodb_max_dirty_pages_pct=0.0;
SET GLOBAL innodb_max_dirty_pages_pct= @no_checkpoint_save_pct;
SET GLOBAL innodb_max_dirty_pages_pct_lwm= @no_checkpoint_save_pct_lwm;

INSERT INTO t1 VALUES (3, REPEAT('3', 200000));
SET SESSION debug_dbug="+d,crash_dispatch_command_before";
SELECT 1;
Got one of the listed errors
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
binlog-000000.ibb	#	Gtid	#	#	GTID #-#-#
binlog-000000.ibb	#	Query	#	#	use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b longtext) ENGINE=InnoDB
binlog-000000.ibb	#	Gtid	#	#	BEGIN GTID #-#-#
binlog-000000.ibb	#	Annotate_rows	#	#	INSERT INTO t1 VALUES (1, '')
binlog-000000.ibb	#	Table_map	#	#	table_id: # (test.t1)
binlog-000000.ibb	#	Write_rows_v1	#	#	table_id: # flags: STMT_END_F
binlog-000000.ibb	#	Xid	#	#	COMMIT /* XID */
binlog-000000.ibb	#	Gtid	#	#	BEGIN GTID #-#-#
binlog-000000.ibb	#	Annotate_rows	#	#	INSERT INTO t1 VALUES (2, REPEAT('2', 200000))
binlog-000000.ibb	#	Table_map	#	#	table_id: # (test.t1)
binlog-000000.ibb	#	Write_rows_v1	#	#	table_id: # flags: STMT_END_F
binlog-000000.ibb	#	Xid	#	#	COMMIT /* XID */
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
binlog-000001.ibb	#	Gtid	#	#	BEGIN GTID #-#-#
binlog-000001.ibb	#	Annotate_rows	#	#	INSERT INTO t1 VALUES (3, REPEAT('3', 200000))
binlog-000001.ibb	#	Table_map	#	#	table_id: # (test.t1)
binlog-000001.ibb	#	Write_rows_v1	#	#	table_id: # flags: STMT_END_F
binlog-000001.ibb	#	Xid	#	#	COMMIT /* XID */
binlog-000001.ibb	#	Format_desc	#	#	SERVER_VERSION, BINLOG_VERSION
*** Test starting the server with only a single, completely empty, binlog file.
# restart
DROP TABLE t1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
binlog-000002.ibb	#	Format_desc	#	#	SERVER_VERSION, BINLOG_VERSION
binlog-000002.ibb	#	Gtid	#	#	GTID #-#-#
binlog-000002.ibb	#	Query	#	#	use `test`; DROP TABLE `t1` /* generated by server */
