CURRENT_TEST: rpl.rpl_gtid_index mysqltest: In included file "./suite/rpl/include/rpl_gtid_index.inc": included from /home/buildbot/amd64-msan-clang-20/build/mysql-test/suite/rpl/t/rpl_gtid_index.test at line 47: At line 124: query 'let $_slave_check_configured= query_get_value("SHOW SLAVE STATUS", Slave_IO_Running, 1)' failed: (2013): Lost connection to server during query The result from queries just before the failure was: < snip > include/stop_slave.inc connection master; SET @orig_domain_id= @@gtid_domain_id; SET @orig_server_id= @@server_id; SET gtid_domain_id= @orig_domain_id; SET server_id= @orig_server_id; SELECT COUNT(*) FROM gtid_data; COUNT(*) 200 *** The result should be empty, otherwise some result is wrong: SELECT idx, gtid_pos, BINLOG_GTID_POS(file, pos) FROM gtid_data WHERE NOT gtid_eq(CONVERT(gtid_pos USING utf8),BINLOG_GTID_POS(file, pos)) ORDER BY idx; idx gtid_pos BINLOG_GTID_POS(file, pos) connection slave; SET @orig_pos= @@GLOBAL.gtid_slave_pos; SET @orig_t1_limit= (SELECT MAX(a) FROM t1); *** Now connect the slave to each position in turn, and test that *** the right amount of data is replicated at each point. More results from queries before failure can be found in /home/buildbot/amd64-msan-clang-20/build/mysql-test/var/14/log/rpl_gtid_index.log Server [mysqld.2 - pid: 46085, winpid: 46085, exit: 256] failed during test run Server log from this test: ==46103==WARNING: MemorySanitizer: use-of-uninitialized-value Uninitialized value was created by a heap deallocation #0 0x55ff27d34450 in free (/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd+0x920450) (BuildId: d88a2c32f69404e3ab1ae047c3f12232696b7ede) #1 0x55ff28001f05 in ilink::operator delete(void*, unsigned long) /home/buildbot/amd64-msan-clang-20/build/sql/sql_list.h:681:6 #2 0x55ff28001f05 in THD::~THD() /home/buildbot/amd64-msan-clang-20/build/sql/sql_class.cc:1867:1 #3 0x55ff27ec5a59 in handle_slave_sql /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:5735:3 #4 0x55ff29261de4 in pfs_spawn_thread /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198:3 #5 0x7f798bcab1f4 (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 93ac61ec5a8eb1396f9fbd350e3169a558528a40) - found 'core' (0/5) Core generated by '/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd' Output from gdb follows. The first stack trace is from the failing thread. The following stack traces are from all threads (so the failing one is duplicated). -------------------------- #8 0x000055ff27d1642e in __sanitizer::Die() () #9 0x000055ff27d2d713 in __msan_warning_with_origin_noreturn () #10 0x000055ff27eccf91 in store_string_or_null (field=, str=0x55ff29f140e9 "Slave SQL thread ending") at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:2884 #11 store_master_info (thd=thd@entry=0x72c0001e0020, mi=mi@entry=0x72a00002a000, table=table@entry=0x72700001c040, gtid_pos=gtid_pos@entry=0x7f797b72cf18) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:2949 #12 0x000055ff28380b96 in fill_slave_status (thd=, tables=, cond=) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_show.cc:9198