CURRENT_TEST: binlog_encryption.rpl_sync
mysqltest: In included file "./suite/rpl/t/rpl_sync.test": 
included from /home/buildbot/buildbot/build/mariadb-10.6.22/mysql-test/suite/binlog_encryption/rpl_sync.test at line 2:
At line 57: failed in 'select master_pos_wait('master-bin.000001', 1977, 300, '')': 2013: Lost connection to server during query

The result from queries just before the failure was:
=====Configuring the enviroment=======;
include/master-slave.inc
[connection master]
call mtr.add_suppression('Attempting backtrace');
call mtr.add_suppression("Recovery from master pos .* and file master-bin.000001");
ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB;
flush tables;
CREATE TABLE t1(a INT, PRIMARY KEY(a)) engine=innodb;
insert into t1(a) values(1);
insert into t1(a) values(2);
insert into t1(a) values(3);
=====Inserting data on the master but without the SQL Thread being running=======;
CURRENT_TEST: binlog_encryption.rpl_sync
mysqltest: In included file "./suite/rpl/t/rpl_sync.test": 
included from /home/buildbot/buildbot/build/mariadb-10.6.22/mysql-test/suite/binlog_encryption/rpl_sync.test at line 2:
At line 57: failed in 'select master_pos_wait('master-bin.000001', 1977, 300, '')': 2013: Lost connection to server during query

The result from queries just before the failure was:
=====Configuring the enviroment=======;
include/master-slave.inc
[connection master]
call mtr.add_suppression('Attempting backtrace');
call mtr.add_suppression("Recovery from master pos .* and file master-bin.000001");
ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB;
flush tables;
CREATE TABLE t1(a INT, PRIMARY KEY(a)) engine=innodb;
insert into t1(a) values(1);
insert into t1(a) values(2);
insert into t1(a) values(3);
=====Inserting data on the master but without the SQL Thread being running=======;
