MDEV-7394 : Making slave_skip_errors writable at runtime when slave is stopped #4634
MDEV-7394 : Making slave_skip_errors writable at runtime when slave is stopped #4634Mahmoud-kh1 wants to merge 4 commits intoMariaDB:mainfrom
Conversation
87dbe8f to
3fa1017
Compare
|
The following test cases fail because they assume that slave_skip_errors is read only which is no longer true which making their checks fail also |
gkodinov
left a comment
There was a problem hiding this comment.
This is a preliminary review. I'd like to request changes mostly because there are tests that need to be re-recorded (and possibly fixed too).
The rest of the comments are just my own limited take on the change. Feel free to ignore and leave for the final review.
|
Thank you so much for implementing my 11 year old bug report. I'd be very grateful if you stick through the review process on this. There's a lot to keep correct in the server to implement this change. |
Make slave_skip_errors dynamic so it can be changed while the slave is stopped. Attempts to change it while the slave is running are rejected with a clear error.
3fa1017 to
440eec2
Compare
gkodinov
left a comment
There was a problem hiding this comment.
Please just fix the spacing issues. The rest is pretty much as one expects it to be. Aside from some polishing. Once the space changes are gone I will do another round and approve it.
sql/slave.cc
Outdated
| my_error(ER_SLAVE_MUST_STOP, MYF(0)); | ||
| res= true; | ||
| } | ||
| else |
There was a problem hiding this comment.
Ignore please if you want, but this goes a bit against the coding style in the rest of the server.
It's usually like this:
bool err = false;
if (do_something_and_it_fails())
{
err = true;
}
if (!err && do something_else_and_it_fails())
{
err = true;
}
There was a problem hiding this comment.
please also fix the failing tests!
There was a problem hiding this comment.
I will go with your advice for sure and follow the same pattern
There was a problem hiding this comment.
I have fixed tests and also whitespaces and follow the same pattern you suggested
there is one check fail because one test but it passes locally
There was a problem hiding this comment.
This build-bot failure looks related:
main.variables-notembedded w34 [ fail ]
Test ended at 2026-02-19 15:17:53
CURRENT_TEST: main.variables-notembedded
mysqltest: At line 152: query 'SET @@global.slave_skip_errors= "7"' failed: <Unknown> (2013): Lost connection to server during query
The result from queries just before the failure was:
< snip >
ERROR HY000: Variable 'slave_load_tmpdir' is a GLOBAL variable
SELECT @@global.slave_load_tmpdir;
@@global.slave_load_tmpdir
#
SET @@session.slave_load_tmpdir= 'x';
ERROR HY000: Variable 'slave_load_tmpdir' is a read only variable
SET @@global.slave_load_tmpdir= 'x';
ERROR HY000: Variable 'slave_load_tmpdir' is a read only variable
#
SHOW VARIABLES like 'slave_skip_errors';
Variable_name Value
slave_skip_errors 3,100,137,0,643,1752
SELECT @@session.slave_skip_errors;
ERROR HY000: Variable 'slave_skip_errors' is a GLOBAL variable
SELECT @@global.slave_skip_errors;
@@global.slave_skip_errors
3,100,137,0,643,1752
SET @@session.slave_skip_errors= 7;
ERROR HY000: Variable 'slave_skip_errors' is a GLOBAL variable and should be set with SET GLOBAL
SET @@global.slave_skip_errors= "7";
More results from queries before failure can be found in /home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/log/variables-notembedded.log
Server [mysqld.1 - pid: 146925, winpid: 146925, exit: 256] failed during test run
Server log from this test:
----------SERVER LOG START-----------
$ /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/my.cnf --log-output=file --loose-slave-skip-errors=3,100,137,0,643,1752 --old-mode=no_dup_key_warnings_with_ignore,compat_5_1_checksum --core-file --loose-debug-sync-timeout=300
2026-02-19 15:17:13 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32246)
2026-02-19 15:17:13 0 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 (was 151) table_cache: 421 (was 2000)
2026-02-19 15:17:13 0 [Warning] --old-mode='NO_DUP_KEY_WARNINGS_WITH_IGNORE' is deprecated and will be removed in a future release
2026-02-19 15:17:13 0 [Warning] --old-mode='COMPAT_5_1_CHECKSUM' is deprecated and will be removed in a future release
2026-02-19 15:17:13 0 [Note] Starting MariaDB 12.3.1-MariaDB-log source revision 4b945189e001c94def94f1a2259b28d2681729ea server_uid utuh0DWmETayjnJEGNJHJ0uNG1U= as process 146926
2026-02-19 15:17:13 0 [Note] Help others discover MariaDB. Star it on GitHub: https://github.com/MariaDB/server
2026-02-19 15:17:13 0 [Note] Plugin 'partition' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'InnoDB' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'SEQUENCE' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_WAITS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_QUEUES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'FEEDBACK' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_GROUPS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'user_variables' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_STATS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'unix_socket' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'wsrep_provider' is disabled.
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-feedback-debug-startup-interval=20'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-feedback-debug-first-interval=60'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-feedback-debug-interval=60'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown option '--loose-pam-debug'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown option '--loose-aria'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-debug-sync-timeout=300'
2026-02-19 15:17:13 0 [Note] Server socket created on IP: '127.0.0.1', port: '20080'.
2026-02-19 15:17:13 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
2026-02-19 15:17:13 0 [Note] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: ready for connections.
Version: '12.3.1-MariaDB-log' socket: '/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/tmp/34/mysqld.1.sock' port: 20080 Source distribution
==146926==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x5649560121c4 in my_strnncoll_utf8mb3_general1400_as_ci /home/buildbot/amd64-msan-clang-20/build/strings/strcoll.inl:241:21
#1 0x56495418e2ac in charset_info_st::strnncoll(unsigned char const*, unsigned long, unsigned char const*, unsigned long, char*) const /home/buildbot/amd64-msan-clang-20/build/include/m_ctype.h:1163:12
#2 0x56495418e2ac in init_slave_skip_errors(char const*) /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:788:29
#3 0x56495418e989 in update_slave_skip_errors(sys_var*, THD*, enum_var_type) /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:828:15
#4 0x5649541807f5 in sys_var::update(THD*, set_var*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:212:21
#5 0x564954184aa7 in set_var::update(THD*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
#6 0x564954183db3 in sql_set_variables(THD*, List<set_var_base>*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750:20
#7 0x564954440147 in mysql_execute_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918:9
#8 0x56495442dbde in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940:18
#9 0x564954426fa2 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896:7
#10 0x56495442ec79 in do_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432:17
#11 0x56495488655c in do_handle_one_connection(CONNECT*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503:11
#12 0x564954886001 in handle_one_connection /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415:5
#13 0x56495553a524 in pfs_spawn_thread /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198:3
#14 0x7f9f49d771f4 (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
#15 0x7f9f49df6b3f in clone (/lib/x86_64-linux-gnu/libc.so.6+0x108b3f) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
Memory was marked as uninitialized
#0 0x5649540239ed in __msan_allocated_memory (/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd+0x9189ed) (BuildId: 4c676549643504ed33984af8d4ec2b5494cab489)
#1 0x564955ef5072 in my_malloc /home/buildbot/amd64-msan-clang-20/build/mysys/my_malloc.c:117:7
#2 0x564955ef5857 in my_memdup /home/buildbot/amd64-msan-clang-20/build/mysys/my_malloc.c:228:13
#3 0x5649548dbd37 in Sys_var_charptr::update_prepare(set_var*, unsigned long) /home/buildbot/amd64-msan-clang-20/build/sql/sys_vars.inl:594:23
#4 0x5649548dbd37 in Sys_var_charptr::global_update(THD*, set_var*) /home/buildbot/amd64-msan-clang-20/build/sql/sys_vars.inl:618:20
#5 0x5649541807b6 in sys_var::update(THD*, set_var*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:211:12
#6 0x564954184aa7 in set_var::update(THD*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
#7 0x564954183db3 in sql_set_variables(THD*, List<set_var_base>*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750:20
#8 0x564954440147 in mysql_execute_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918:9
#9 0x56495442dbde in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940:18
#10 0x564954426fa2 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896:7
#11 0x56495442ec79 in do_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432:17
#12 0x56495488655c in do_handle_one_connection(CONNECT*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503:11
#13 0x564954886001 in handle_one_connection /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415:5
#14 0x56495553a524 in pfs_spawn_thread /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198:3
#15 0x7f9f49d771f4 (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/buildbot/amd64-msan-clang-20/build/strings/strcoll.inl:241:21 in my_strnncoll_utf8mb3_general1400_as_ci
Exiting
260219 15:17:13 [ERROR] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd got signal 6 ;
Sorry, we probably made a mistake, and this is a bug.
Your assistance in bug reporting will enable us to fix this for the next release.
To report this bug, see https://mariadb.com/kb/en/reporting-bugs about how to report
a bug on https://jira.mariadb.org/.
Please include the information from the server start above, to the end of the
information below.
Server version: 12.3.1-MariaDB-log source revision: 4b945189e001c94def94f1a2259b28d2681729ea
The information page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/
contains instructions to obtain a better version of the backtrace below.
Following these instructions will help MariaDB developers provide a fix quicker.
Attempting backtrace. Include this in the bug report.
(note: Retrieving this information may fail)
Thread pointer: 0x72b00004d018
stack_bottom = 0x7f9f41746000 thread_stack 0x49000
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(___interceptor_backtrace+0xd2)[0x56495403f4d2]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(my_print_stacktrace+0x6a)[0x564955f009fa]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(handle_fatal_signal+0x509)[0x564954d33af9]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x967a39)[0x564954072a39]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c050)[0x7f9f49d2a050]
/lib/x86_64-linux-gnu/libc.so.6(+0x8aeec)[0x7f9f49d78eec]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x12)[0x7f9f49d29fb2]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f9f49d14472]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x8f2d8c)[0x564953ffdd8c]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x8f0c2e)[0x564953ffbc2e]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x907f13)[0x564954012f13]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x29071c5)[0x5649560121c5]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(_Z22init_slave_skip_errorsPKc+0x17d)[0x56495418e2ad]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(_Z24update_slave_skip_errorsP7sys_varP3THD13enum_var_type+0xfa)[0x56495418e98a]
strings/strcoll.inl:0(my_strnncoll_utf8mb3_general1400_as_ci)[0x5649541807f6]
sql/slave.cc:788(init_slave_skip_errors(char const*))[0x564954184aa8]
sql/set_var.cc:869(set_var::update(THD*))[0x564954183db4]
sql/set_var.cc:750(sql_set_variables(THD*, List<set_var_base>*, bool))[0x564954440148]
sql/sql_parse.cc:0(mysql_execute_command(THD*, bool))[0x56495442dbdf]
sql/sql_parse.cc:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x564954426fa3]
sql/sql_parse.cc:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x56495442ec7a]
sql/sql_parse.cc:1434(do_command(THD*, bool))[0x56495488655d]
sql/sql_connect.cc:1503(do_handle_one_connection(CONNECT*, bool))[0x564954886002]
sql/sql_connect.cc:1419(handle_one_connection)[0x56495553a525]
/lib/x86_64-linux-gnu/libc.so.6(+0x891f5)[0x7f9f49d771f5]
/lib/x86_64-linux-gnu/libc.so.6(__clone+0x40)[0x7f9f49df6b40]
Connection ID (thread ID): 4
Status: NOT_KILLED
Query (0x70b00000b030): SET @@global.slave_skip_errors= "7"
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,duplicateweedout=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=on,cset_narrowing=on,sargable_casefold=on,reorder_outer_joins=off
Writing a core file...
Working directory at /dev/shm/var_auto_eaRL/34/mysqld.1/data
Resource Limits (excludes unlimited resources):
Limit Soft Limit Hard Limit Units
Max stack size 8388608 unlimited bytes
Max open files 1024 1024 files
Max locked memory 51200000 51200000 bytes
Max pending signals 514471 514471 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Core pattern: core
Kernel version: Linux version 6.1.0-40-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20)
----------SERVER LOG END-------------
- 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).
--------------------------
[New LWP 147075]
[New LWP 146926]
[New LWP 147042]
[New LWP 147036]
[New LWP 147047]
[New LWP 147069]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd --defaults-group-suffix=.'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7f9f417456c0 (LWP 147075))]
#0 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x0000564954d34359 in handle_fatal_signal (sig=6) at /home/buildbot/amd64-msan-clang-20/build/sql/signal_handler.cc:298
#2 0x0000564954072a39 in SignalHandler(int) ()
#3 <signal handler called>
#4 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x00007f9f49d29fb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6 0x00007f9f49d14472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7 0x0000564953ffdd8c in __sanitizer::Abort() ()
#8 0x0000564953ffbc2e in __sanitizer::Die() ()
#9 0x0000564954012f13 in __msan_warning_with_origin_noreturn ()
#10 0x00005649560121c5 in my_strnncoll_utf8mb3_general1400_as_ci (cs=<optimized out>, a=0x7020000210d8 "7", a_length=<optimized out>, b=<optimized out>, b_length=<optimized out>, b_is_prefix=0x0) at strings/strcoll.inl:241
#11 0x000056495418e2ad in charset_info_st::strnncoll (this=0x23dee, alen=4, blen=4, b_is_prefix=0x0, a=<optimized out>, b=<optimized out>) at include/m_ctype.h:1163
#12 init_slave_skip_errors (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:788
#13 0x000056495418e98a in update_slave_skip_errors (self=<optimized out>, thd=<optimized out>, type=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:828
#14 0x00005649541807f6 in sys_var::update (this=this@entry=0x56495b62fa80 <Sys_slave_skip_errors>, thd=0x72b00004d018, var=var@entry=0x70700000a910) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:212
#15 0x0000564954184aa8 in set_var::update (this=0x70700000a910, thd=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
#16 0x0000564954183db4 in sql_set_variables (thd=thd@entry=0x72b00004d018, var_list=var_list@entry=0x72b000052570, free=true) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750
#17 0x0000564954440148 in mysql_execute_command (thd=thd@entry=0x72b00004d018, is_called_from_prepared_stmt=false) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918
#18 0x000056495442dbdf in mysql_parse (thd=0x72b00004d018, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f9f417431e0) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940
#19 0x0000564954426fa3 in dispatch_command (command=COM_QUERY, thd=thd@entry=0x72b00004d018, packet=<optimized out>, packet_length=<optimized out>, blocking=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896
#20 0x000056495442ec7a in do_command (thd=thd@entry=0x72b00004d018, blocking=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432
#21 0x000056495488655d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x70600000d758, put_in_cache=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503
#22 0x0000564954886002 in handle_one_connection (arg=arg@entry=0x70600000d758) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415
#23 0x000056495553a525 in pfs_spawn_thread (arg=0x716000007518) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
#24 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#25 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 6 (Thread 0x7f9f417906c0 (LWP 147069)):
#0 0x00007f9f49d2ac82 in sigtimedwait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x000056495403e420 in __interceptor_sigwaitinfo ()
No symbol table info available.
#2 0x000056495408734c in my_sigwait (set=0x7f9f4178ec50, sig=<optimized out>, code=<optimized out>) at include/my_pthread.h:180
siginfo = {si_signo = 7, si_errno = 4, si_code = 1126867904, __pad0 = 32671, _sifields = {_pad = {0, 0, 8320, 29360, 1195978880, 32671, 1195978880, 32671, -1564029892, 7042651, 1098444004, 12191, 1195981272, 32671, 1431651034, 22089, 1195982608, 32671, 1195982220, 32671, 0, 0, 33504, 29376, 1195982604, 12191, 0, 32671}, _kill = {si_pid = 0, si_uid = 0}, _timer = {si_tid = 0, si_overrun = 0, si_sigval = {sival_int = 8320, sival_ptr = 0x72b000002080}}, _rt = {si_pid = 0, si_uid = 0, si_sigval = {sival_int = 8320, sival_ptr = 0x72b000002080}}, _sigchld = {si_pid = 0, si_uid = 0, si_status = 8320, si_utime = 140322072506496, si_stime = 140322072506496}, _sigfault = {si_addr = 0x0, si_addr_lsb = 8320, _bounds = {_addr_bnd = {_lower = 0x7f9f47493080, _upper = 0x7f9f47493080}, _pkey = 1195978880}}, _sigpoll = {si_band = 0, si_fd = 8320}, _sigsys = {_call_addr = 0x0, _syscall = 8320, _arch = 29360}}}
#3 signal_hand () at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:3304
origin = <optimized out>
error = <optimized out>
set = {__val = {540677, 0, 0, 0, 0, 18190150998286485504, 0, 0, 6912144340537, 140321974971804, 0, 140322115374798, 124107374985520, 124107374985444, 8589934820, 1}}
sig = <optimized out>
#4 0x000056495553a525 in pfs_spawn_thread (arg=0x716000003618) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000003618
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564954086da0 <signal_hand(void*)>
user_arg = 0x0
#5 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 5 (Thread 0x7f9f417db6c0 (LWP 147047)):
#0 0x00007f9f49d73f16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f9f49d765d8 in pthread_cond_wait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x0000564953ef8b70 in psi_cond_wait (that=0x56495b607560 <COND_manager>, mutex=0x56495b607530 <LOCK_manager>, file=0x564956228224 "/home/buildbot/amd64-msan-clang-20/build/sql/sql_manager.cc", line=110) at /home/buildbot/amd64-msan-clang-20/build/mysys/my_thr_init.c:580
state = {m_flags = 7, m_operation = (PSI_COND_TIMEDWAIT | unknown: 0x5648), m_cond = 0x728000000d40, m_mutex = 0x734000006880, m_thread = 0x7f9f47491a00, m_timer_start = 30247958486743050, m_timer = 0x6b765ba4c858fc, m_wait = 0x7f9f47492358}
result = <optimized out>
locker = <optimized out>
#3 0x000056495441a30a in inline_mysql_cond_wait (src_line=110, that=<optimized out>, mutex=<optimized out>, src_file=<optimized out>) at include/mysql/psi/mysql_thread.h:1070
No locals.
#4 handle_manager (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_manager.cc:110
cb = <optimized out>
abstime = {tv_sec = 688, tv_nsec = 140321975278992}
error = <optimized out>
reset_flush_time = true
#5 0x000056495553a525 in pfs_spawn_thread (arg=0x716000001218) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000001218
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564954419b00 <handle_manager(void*)>
user_arg = 0x0
#6 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 4 (Thread 0x7f9f4992a800 (LWP 147036)):
#0 0x00007f9f49d73f16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f9f49d768bc in pthread_cond_timedwait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x0000564953ef8ccd in psi_cond_timedwait (that=0x56495bef1838 <COND_timer>, mutex=0x56495bef1808 <LOCK_timer>, abstime=0x7f9f49928e98, file=0x56495644f19c "/home/buildbot/amd64-msan-clang-20/build/mysys/thr_timer.c", line=line@entry=330) at /home/buildbot/amd64-msan-clang-20/build/mysys/my_thr_init.c:593
state = {m_flags = 7, m_operation = PSI_COND_WAIT, m_cond = 0x7280000003c0, m_mutex = 0x734000002180, m_thread = 0x7f9f4748ed00, m_timer_start = 30247958188374525, m_timer = 0x500000000000, m_wait = 0x7f9f4748f658}
result = <optimized out>
locker = <optimized out>
#3 0x0000564955f0cd9e in inline_mysql_cond_timedwait (abstime=0x7f9f49928e98, src_line=330, that=<optimized out>, mutex=<optimized out>, src_file=<optimized out>) at include/mysql/psi/mysql_thread.h:1086
No locals.
#4 timer_handler (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/mysys/thr_timer.c:330
now = <optimized out>
top_time = 0x56495bef1870 <max_timer_data>
error = <optimized out>
abstime = <optimized out>
#5 0x000056495553a525 in pfs_spawn_thread (arg=0x716000000318) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000000318
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564955f0c710 <timer_handler>
user_arg = 0x0
#6 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 3 (Thread 0x7f9f412d06c0 (LWP 147042)):
#0 0x00007f9f49d73f16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f9f49d768bc in pthread_cond_timedwait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x0000564953ef8ccd in psi_cond_timedwait (that=0x56495be4cac0 <COND_checkpoint>, mutex=0x56495be4ca88 <LOCK_checkpoint>, abstime=abstime@entry=0x7f9f412cecb0, file=0x5649563c5bb1 "/home/buildbot/amd64-msan-clang-20/build/storage/maria/ma_servicethread.c", line=line@entry=116) at /home/buildbot/amd64-msan-clang-20/build/mysys/my_thr_init.c:593
state = {m_flags = 7, m_operation = PSI_COND_WAIT, m_cond = 0x728000000ac0, m_mutex = 0x734000005f00, m_thread = 0x7f9f47490380, m_timer_start = 30248030613181425, m_timer = 0x500000000000, m_wait = 0x7f9f47490cd8}
result = <optimized out>
locker = <optimized out>
#3 0x00005649553bdd03 in inline_mysql_cond_timedwait (that=0x56495be4cae8 <COND_checkpoint+40>, mutex=0x189, abstime=0x7f9f412cecb0, src_line=116, src_file=<optimized out>) at include/mysql/psi/mysql_thread.h:1086
No locals.
#4 my_service_thread_sleep (control=0x564956bd96b0 <checkpoint_control>, sleep_time=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/storage/maria/ma_servicethread.c:115
abstime = {tv_sec = 1771514292, tv_nsec = <synthetic pointer>}
res = 0 '\000'
#5 0x00005649553a392f in ma_checkpoint_background (arg=arg@entry=0x1e) at /home/buildbot/amd64-msan-clang-20/build/storage/maria/ma_checkpoint.c:765
filter_param = {up_to_lsn = 4295396409, max_pages = 9240}
log_horizon_at_last_checkpoint = 4295396453
pagecache_flushes_at_last_checkpoint = 0
sleeps = 30
pages_bunch_size = 0
kfile = 0x0
dfile = 0x0
sleep_time = 30
interval = <optimized out>
#6 0x000056495553a525 in pfs_spawn_thread (arg=0x716000002418) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000002418
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x5649553a3760 <ma_checkpoint_background>
user_arg = 0x1e
#7 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#8 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 2 (Thread 0x7f9f49ce9800 (LWP 146926)):
#0 0x00007f9f49dea25f in poll () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x000056495403d80f in __interceptor_poll ()
No symbol table info available.
#2 0x000056495409bc27 in handle_connections_sockets () at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:6669
cAddr = {ss_family = 1, __ss_padding = '\000' <repeats 102 times>, "P\241z\002\375\177\000\000\200\326HG\237\177\000", __ss_align = 0}
fds = {array = {buffer = 0x70a000000e78 "\v", elements = 3, max_element = 16, alloc_increment = 16, size_of_element = 8, m_psi_key = 0, malloc_flags = 0}}
termination_fds = {32, 33}
event_fd = {fd = 32, events = 1, revents = 0}
sock = <optimized out>
error_count = <optimized out>
retval = <optimized out>
#3 0x000056495409873b in run_main_loop () at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:5951
No locals.
#4 0x000056495408a20a in mysqld_main (argc=143, argv=0x71900000a570) at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:6374
ho_error = <optimized out>
new_thread_stack_size = <optimized out>
user = <optimized out>
please_close_stdin = <optimized out>
#5 0x00007f9f49d1524a in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f9f49d15305 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x0000564953fe65e1 in _start ()
No symbol table info available.
Thread 1 (Thread 0x7f9f417456c0 (LWP 147075)):
#0 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x0000564954d34359 in handle_fatal_signal (sig=6) at /home/buildbot/amd64-msan-clang-20/build/sql/signal_handler.cc:298
curr_time = 1771514233
tm = {tm_sec = 13, tm_min = 17, tm_hour = 15, tm_mday = 19, tm_mon = 1, tm_year = 126, tm_wday = 4, tm_yday = 49, tm_isdst = 0, tm_gmtoff = 0, tm_zone = 0x702000000050 "UTC"}
thd = <optimized out>
#2 0x0000564954072a39 in SignalHandler(int) ()
No symbol table info available.
#3 <signal handler called>
No symbol table info available.
#4 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5 0x00007f9f49d29fb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f9f49d14472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x0000564953ffdd8c in __sanitizer::Abort() ()
No symbol table info available.
#8 0x0000564953ffbc2e in __sanitizer::Die() ()
No symbol table info available.
#9 0x0000564954012f13 in __msan_warning_with_origin_noreturn ()
No symbol table info available.
#10 0x00005649560121c5 in my_strnncoll_utf8mb3_general1400_as_ci (cs=<optimized out>, a=0x7020000210d8 "7", a_length=<optimized out>, b=<optimized out>, b_length=<optimized out>, b_is_prefix=0x0) at strings/strcoll.inl:241
a_weight = 55
a_wlen = 1
b_weight = <optimized out>
b_wlen = <optimized out>
res = <optimized out>
a_end = 0x7020000210dc "\002"
b_end = 0x5649563c1762 "pagecache"
#11 0x000056495418e2ad in charset_info_st::strnncoll (this=0x23dee, alen=4, blen=4, b_is_prefix=0x0, a=<optimized out>, b=<optimized out>) at include/m_ctype.h:1163
No locals.
#12 init_slave_skip_errors (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:788
p = <optimized out>
#13 0x000056495418e98a in update_slave_skip_errors (self=<optimized out>, thd=<optimized out>, type=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:828
err = false
#14 0x00005649541807f6 in sys_var::update (this=this@entry=0x56495b62fa80 <Sys_slave_skip_errors>, thd=0x72b00004d018, var=var@entry=0x70700000a910) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:212
lock1 = {lock = 0x56495b6028a8 <PLock_global_system_variables>}
lock2 = {lock = 0x0}
type = <optimized out>
#15 0x0000564954184aa8 in set_var::update (this=0x70700000a910, thd=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
No locals.
#16 0x0000564954183db4 in sql_set_variables (thd=thd@entry=0x72b00004d018, var_list=var_list@entry=0x72b000052570, free=true) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750
error = 0
it = {<base_list_iterator> = {list = 0x72b000052570, el = <optimized out>, prev = 0x0, current = 0x0}, <No data fields>}
var = <optimized out>
was_error = <optimized out>
#17 0x0000564954440148 in mysql_execute_command (thd=thd@entry=0x72b00004d018, is_called_from_prepared_stmt=false) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918
lex_var_list = 0x72b000052570
all_tables = 0x0
ots = {ctx = 0x72b0000511f0, traceable = false}
res = 0
lex = 0x72b000051488
select_lex = 0x72b000051de8
first_table = 0x0
unit = 0x72b000051568
orig_binlog_format = BINLOG_FORMAT_MIXED
orig_current_stmt_binlog_format = BINLOG_FORMAT_STMT
error = <optimized out>
wsrep_error_label = <optimized out>
#18 0x000056495442dbdf in mysql_parse (thd=0x72b00004d018, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f9f417431e0) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940
found_semicolon = <optimized out>
error = <optimized out>
lex = 0x72b000051488
err = <optimized out>
#19 0x0000564954426fa3 in dispatch_command (command=COM_QUERY, thd=thd@entry=0x72b00004d018, packet=<optimized out>, packet_length=<optimized out>, blocking=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896
parser_state = {m_lip = {lookahead_token = -1, lookahead_yylval = 0x0, m_thd = 0x72b00004d018, m_ptr = 0x70b00000b054 "\004", m_tok_start = 0x70b00000b054 "\004", m_tok_end = 0x70b00000b054 "\004", m_end_of_query = 0x70b00000b053 "", m_tok_start_prev = 0x70b00000b053 "", m_buf = 0x70b00000b030 "SET @@global.slave_skip_errors= \"7\"", m_buf_length = 35, m_echo = true, m_echo_saved = false, m_cpp_buf = 0x70600000d7d0 "SET @@global.slave_skip_errors= \"7\"", m_cpp_ptr = 0x70600000d7f3 "", m_cpp_tok_start = 0x70600000d7f3 "", m_cpp_tok_start_prev = 0x70600000d7f3 "", m_cpp_tok_end = 0x70600000d7f3 "", m_body_utf8 = 0x0, m_body_utf8_ptr = 0x564955550c19 <pfs_end_socket_wait_v1(PSI_socket_locker*, size_t)+809> "M\211\362L\215\263 \b", m_cpp_utf8_processed_ptr = 0x0, next_state = MY_LEX_END, found_semicolon = 0x0, ignore_space = false, stmt_prepare_mode = false, multi_statements = true, hint_comment = false, yylineno = 1, m_digest = 0x0, in_comment = NO_COMMENT, in_comment_saved = (unknown: 0x7290), m_cpp_text_start = 0x70600000d7f1 "7\"", m_cpp_text_end = 0x70600000d7f2 "\"", m_underscore_cs = 0x0}, m_yacc = {yacc_yyss = 0x0, yacc_yyvs = 0x0, m_set_signal_info = {m_item = {0x0 <repeats 13 times>}}, m_lock_type = TL_READ_DEFAULT, m_mdl_type = MDL_SHARED_READ}, m_digest_psi = 0x72b000050f78}
packet_end = <optimized out>
net = <optimized out>
error = false
do_end_of_statement = true
log_slow_done = false
drop_more_results = false
#20 0x000056495442ec7a in do_command (thd=thd@entry=0x72b00004d018, blocking=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432
packet = 0x72900004b018 "\003SET @@global.slave_skip_errors= \"7\""
net = <optimized out>
command = <optimized out>
packet_length = <optimized out>
return_value = <optimized out>
#21 0x000056495488655d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x70600000d758, put_in_cache=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503
create_user = true
thr_create_utime = <optimized out>
thd = 0x72b00004d018
#22 0x0000564954886002 in handle_one_connection (arg=arg@entry=0x70600000d758) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415
connect = 0x70600000d758
#23 0x000056495553a525 in pfs_spawn_thread (arg=0x716000007518) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000007518
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564954885f00 <handle_one_connection(void*)>
user_arg = 0x70600000d758
#24 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#25 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Compressed file /home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/log/main.variables-notembedded/mysqld.1/data/core
- saving '/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/log/main.variables-notembedded/' to '/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/log/main.variables-no
There was a problem hiding this comment.
yeah I see now , the problem is addressing uninitialized memory in "init" func when setting the slave_skip_error to 7 and compare it with "all" but the compression is hardcoded to be for 4 bytes and 7 is only two bytes (the value and the 0) so when addressing the third byte the crash happen.
I have fixed it to compare with "all" only when the arg length is 3.
Now checks passed , thanks.
Removed unnecessary blank lines before the conditional check.
b28dbed to
4b94518
Compare
gkodinov
left a comment
There was a problem hiding this comment.
Please also address the buildbot failure. It seems related.
| set global slave_skip_errors=1; | ||
| --error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
| set session slave_skip_errors=1; | ||
| #--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
There was a problem hiding this comment.
don't do that please. Either remove or fix.
sql/slave.cc
Outdated
| my_error(ER_SLAVE_MUST_STOP, MYF(0)); | ||
| res= true; | ||
| } | ||
| else |
There was a problem hiding this comment.
This build-bot failure looks related:
main.variables-notembedded w34 [ fail ]
Test ended at 2026-02-19 15:17:53
CURRENT_TEST: main.variables-notembedded
mysqltest: At line 152: query 'SET @@global.slave_skip_errors= "7"' failed: <Unknown> (2013): Lost connection to server during query
The result from queries just before the failure was:
< snip >
ERROR HY000: Variable 'slave_load_tmpdir' is a GLOBAL variable
SELECT @@global.slave_load_tmpdir;
@@global.slave_load_tmpdir
#
SET @@session.slave_load_tmpdir= 'x';
ERROR HY000: Variable 'slave_load_tmpdir' is a read only variable
SET @@global.slave_load_tmpdir= 'x';
ERROR HY000: Variable 'slave_load_tmpdir' is a read only variable
#
SHOW VARIABLES like 'slave_skip_errors';
Variable_name Value
slave_skip_errors 3,100,137,0,643,1752
SELECT @@session.slave_skip_errors;
ERROR HY000: Variable 'slave_skip_errors' is a GLOBAL variable
SELECT @@global.slave_skip_errors;
@@global.slave_skip_errors
3,100,137,0,643,1752
SET @@session.slave_skip_errors= 7;
ERROR HY000: Variable 'slave_skip_errors' is a GLOBAL variable and should be set with SET GLOBAL
SET @@global.slave_skip_errors= "7";
More results from queries before failure can be found in /home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/log/variables-notembedded.log
Server [mysqld.1 - pid: 146925, winpid: 146925, exit: 256] failed during test run
Server log from this test:
----------SERVER LOG START-----------
$ /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/my.cnf --log-output=file --loose-slave-skip-errors=3,100,137,0,643,1752 --old-mode=no_dup_key_warnings_with_ignore,compat_5_1_checksum --core-file --loose-debug-sync-timeout=300
2026-02-19 15:17:13 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32246)
2026-02-19 15:17:13 0 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 (was 151) table_cache: 421 (was 2000)
2026-02-19 15:17:13 0 [Warning] --old-mode='NO_DUP_KEY_WARNINGS_WITH_IGNORE' is deprecated and will be removed in a future release
2026-02-19 15:17:13 0 [Warning] --old-mode='COMPAT_5_1_CHECKSUM' is deprecated and will be removed in a future release
2026-02-19 15:17:13 0 [Note] Starting MariaDB 12.3.1-MariaDB-log source revision 4b945189e001c94def94f1a2259b28d2681729ea server_uid utuh0DWmETayjnJEGNJHJ0uNG1U= as process 146926
2026-02-19 15:17:13 0 [Note] Help others discover MariaDB. Star it on GitHub: https://github.com/MariaDB/server
2026-02-19 15:17:13 0 [Note] Plugin 'partition' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'InnoDB' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'SEQUENCE' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_WAITS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_QUEUES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'FEEDBACK' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_GROUPS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'user_variables' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'THREAD_POOL_STATS' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'unix_socket' is disabled.
2026-02-19 15:17:13 0 [Note] Plugin 'wsrep_provider' is disabled.
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-feedback-debug-startup-interval=20'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-feedback-debug-first-interval=60'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-feedback-debug-interval=60'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown option '--loose-pam-debug'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown option '--loose-aria'
2026-02-19 15:17:13 0 [Warning] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: unknown variable 'loose-debug-sync-timeout=300'
2026-02-19 15:17:13 0 [Note] Server socket created on IP: '127.0.0.1', port: '20080'.
2026-02-19 15:17:13 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
2026-02-19 15:17:13 0 [Note] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd: ready for connections.
Version: '12.3.1-MariaDB-log' socket: '/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/tmp/34/mysqld.1.sock' port: 20080 Source distribution
==146926==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x5649560121c4 in my_strnncoll_utf8mb3_general1400_as_ci /home/buildbot/amd64-msan-clang-20/build/strings/strcoll.inl:241:21
#1 0x56495418e2ac in charset_info_st::strnncoll(unsigned char const*, unsigned long, unsigned char const*, unsigned long, char*) const /home/buildbot/amd64-msan-clang-20/build/include/m_ctype.h:1163:12
#2 0x56495418e2ac in init_slave_skip_errors(char const*) /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:788:29
#3 0x56495418e989 in update_slave_skip_errors(sys_var*, THD*, enum_var_type) /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:828:15
#4 0x5649541807f5 in sys_var::update(THD*, set_var*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:212:21
#5 0x564954184aa7 in set_var::update(THD*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
#6 0x564954183db3 in sql_set_variables(THD*, List<set_var_base>*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750:20
#7 0x564954440147 in mysql_execute_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918:9
#8 0x56495442dbde in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940:18
#9 0x564954426fa2 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896:7
#10 0x56495442ec79 in do_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432:17
#11 0x56495488655c in do_handle_one_connection(CONNECT*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503:11
#12 0x564954886001 in handle_one_connection /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415:5
#13 0x56495553a524 in pfs_spawn_thread /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198:3
#14 0x7f9f49d771f4 (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
#15 0x7f9f49df6b3f in clone (/lib/x86_64-linux-gnu/libc.so.6+0x108b3f) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
Memory was marked as uninitialized
#0 0x5649540239ed in __msan_allocated_memory (/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd+0x9189ed) (BuildId: 4c676549643504ed33984af8d4ec2b5494cab489)
#1 0x564955ef5072 in my_malloc /home/buildbot/amd64-msan-clang-20/build/mysys/my_malloc.c:117:7
#2 0x564955ef5857 in my_memdup /home/buildbot/amd64-msan-clang-20/build/mysys/my_malloc.c:228:13
#3 0x5649548dbd37 in Sys_var_charptr::update_prepare(set_var*, unsigned long) /home/buildbot/amd64-msan-clang-20/build/sql/sys_vars.inl:594:23
#4 0x5649548dbd37 in Sys_var_charptr::global_update(THD*, set_var*) /home/buildbot/amd64-msan-clang-20/build/sql/sys_vars.inl:618:20
#5 0x5649541807b6 in sys_var::update(THD*, set_var*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:211:12
#6 0x564954184aa7 in set_var::update(THD*) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
#7 0x564954183db3 in sql_set_variables(THD*, List<set_var_base>*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750:20
#8 0x564954440147 in mysql_execute_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918:9
#9 0x56495442dbde in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940:18
#10 0x564954426fa2 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896:7
#11 0x56495442ec79 in do_command(THD*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432:17
#12 0x56495488655c in do_handle_one_connection(CONNECT*, bool) /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503:11
#13 0x564954886001 in handle_one_connection /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415:5
#14 0x56495553a524 in pfs_spawn_thread /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198:3
#15 0x7f9f49d771f4 (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/buildbot/amd64-msan-clang-20/build/strings/strcoll.inl:241:21 in my_strnncoll_utf8mb3_general1400_as_ci
Exiting
260219 15:17:13 [ERROR] /home/buildbot/amd64-msan-clang-20/build/sql/mariadbd got signal 6 ;
Sorry, we probably made a mistake, and this is a bug.
Your assistance in bug reporting will enable us to fix this for the next release.
To report this bug, see https://mariadb.com/kb/en/reporting-bugs about how to report
a bug on https://jira.mariadb.org/.
Please include the information from the server start above, to the end of the
information below.
Server version: 12.3.1-MariaDB-log source revision: 4b945189e001c94def94f1a2259b28d2681729ea
The information page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/
contains instructions to obtain a better version of the backtrace below.
Following these instructions will help MariaDB developers provide a fix quicker.
Attempting backtrace. Include this in the bug report.
(note: Retrieving this information may fail)
Thread pointer: 0x72b00004d018
stack_bottom = 0x7f9f41746000 thread_stack 0x49000
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(___interceptor_backtrace+0xd2)[0x56495403f4d2]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(my_print_stacktrace+0x6a)[0x564955f009fa]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(handle_fatal_signal+0x509)[0x564954d33af9]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x967a39)[0x564954072a39]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c050)[0x7f9f49d2a050]
/lib/x86_64-linux-gnu/libc.so.6(+0x8aeec)[0x7f9f49d78eec]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x12)[0x7f9f49d29fb2]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f9f49d14472]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x8f2d8c)[0x564953ffdd8c]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x8f0c2e)[0x564953ffbc2e]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x907f13)[0x564954012f13]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(+0x29071c5)[0x5649560121c5]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(_Z22init_slave_skip_errorsPKc+0x17d)[0x56495418e2ad]
/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd(_Z24update_slave_skip_errorsP7sys_varP3THD13enum_var_type+0xfa)[0x56495418e98a]
strings/strcoll.inl:0(my_strnncoll_utf8mb3_general1400_as_ci)[0x5649541807f6]
sql/slave.cc:788(init_slave_skip_errors(char const*))[0x564954184aa8]
sql/set_var.cc:869(set_var::update(THD*))[0x564954183db4]
sql/set_var.cc:750(sql_set_variables(THD*, List<set_var_base>*, bool))[0x564954440148]
sql/sql_parse.cc:0(mysql_execute_command(THD*, bool))[0x56495442dbdf]
sql/sql_parse.cc:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x564954426fa3]
sql/sql_parse.cc:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x56495442ec7a]
sql/sql_parse.cc:1434(do_command(THD*, bool))[0x56495488655d]
sql/sql_connect.cc:1503(do_handle_one_connection(CONNECT*, bool))[0x564954886002]
sql/sql_connect.cc:1419(handle_one_connection)[0x56495553a525]
/lib/x86_64-linux-gnu/libc.so.6(+0x891f5)[0x7f9f49d771f5]
/lib/x86_64-linux-gnu/libc.so.6(__clone+0x40)[0x7f9f49df6b40]
Connection ID (thread ID): 4
Status: NOT_KILLED
Query (0x70b00000b030): SET @@global.slave_skip_errors= "7"
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,duplicateweedout=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=on,cset_narrowing=on,sargable_casefold=on,reorder_outer_joins=off
Writing a core file...
Working directory at /dev/shm/var_auto_eaRL/34/mysqld.1/data
Resource Limits (excludes unlimited resources):
Limit Soft Limit Hard Limit Units
Max stack size 8388608 unlimited bytes
Max open files 1024 1024 files
Max locked memory 51200000 51200000 bytes
Max pending signals 514471 514471 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Core pattern: core
Kernel version: Linux version 6.1.0-40-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20)
----------SERVER LOG END-------------
- 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).
--------------------------
[New LWP 147075]
[New LWP 146926]
[New LWP 147042]
[New LWP 147036]
[New LWP 147047]
[New LWP 147069]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/buildbot/amd64-msan-clang-20/build/sql/mariadbd --defaults-group-suffix=.'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7f9f417456c0 (LWP 147075))]
#0 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x0000564954d34359 in handle_fatal_signal (sig=6) at /home/buildbot/amd64-msan-clang-20/build/sql/signal_handler.cc:298
#2 0x0000564954072a39 in SignalHandler(int) ()
#3 <signal handler called>
#4 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x00007f9f49d29fb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6 0x00007f9f49d14472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7 0x0000564953ffdd8c in __sanitizer::Abort() ()
#8 0x0000564953ffbc2e in __sanitizer::Die() ()
#9 0x0000564954012f13 in __msan_warning_with_origin_noreturn ()
#10 0x00005649560121c5 in my_strnncoll_utf8mb3_general1400_as_ci (cs=<optimized out>, a=0x7020000210d8 "7", a_length=<optimized out>, b=<optimized out>, b_length=<optimized out>, b_is_prefix=0x0) at strings/strcoll.inl:241
#11 0x000056495418e2ad in charset_info_st::strnncoll (this=0x23dee, alen=4, blen=4, b_is_prefix=0x0, a=<optimized out>, b=<optimized out>) at include/m_ctype.h:1163
#12 init_slave_skip_errors (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:788
#13 0x000056495418e98a in update_slave_skip_errors (self=<optimized out>, thd=<optimized out>, type=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:828
#14 0x00005649541807f6 in sys_var::update (this=this@entry=0x56495b62fa80 <Sys_slave_skip_errors>, thd=0x72b00004d018, var=var@entry=0x70700000a910) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:212
#15 0x0000564954184aa8 in set_var::update (this=0x70700000a910, thd=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
#16 0x0000564954183db4 in sql_set_variables (thd=thd@entry=0x72b00004d018, var_list=var_list@entry=0x72b000052570, free=true) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750
#17 0x0000564954440148 in mysql_execute_command (thd=thd@entry=0x72b00004d018, is_called_from_prepared_stmt=false) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918
#18 0x000056495442dbdf in mysql_parse (thd=0x72b00004d018, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f9f417431e0) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940
#19 0x0000564954426fa3 in dispatch_command (command=COM_QUERY, thd=thd@entry=0x72b00004d018, packet=<optimized out>, packet_length=<optimized out>, blocking=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896
#20 0x000056495442ec7a in do_command (thd=thd@entry=0x72b00004d018, blocking=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432
#21 0x000056495488655d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x70600000d758, put_in_cache=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503
#22 0x0000564954886002 in handle_one_connection (arg=arg@entry=0x70600000d758) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415
#23 0x000056495553a525 in pfs_spawn_thread (arg=0x716000007518) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
#24 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#25 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 6 (Thread 0x7f9f417906c0 (LWP 147069)):
#0 0x00007f9f49d2ac82 in sigtimedwait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x000056495403e420 in __interceptor_sigwaitinfo ()
No symbol table info available.
#2 0x000056495408734c in my_sigwait (set=0x7f9f4178ec50, sig=<optimized out>, code=<optimized out>) at include/my_pthread.h:180
siginfo = {si_signo = 7, si_errno = 4, si_code = 1126867904, __pad0 = 32671, _sifields = {_pad = {0, 0, 8320, 29360, 1195978880, 32671, 1195978880, 32671, -1564029892, 7042651, 1098444004, 12191, 1195981272, 32671, 1431651034, 22089, 1195982608, 32671, 1195982220, 32671, 0, 0, 33504, 29376, 1195982604, 12191, 0, 32671}, _kill = {si_pid = 0, si_uid = 0}, _timer = {si_tid = 0, si_overrun = 0, si_sigval = {sival_int = 8320, sival_ptr = 0x72b000002080}}, _rt = {si_pid = 0, si_uid = 0, si_sigval = {sival_int = 8320, sival_ptr = 0x72b000002080}}, _sigchld = {si_pid = 0, si_uid = 0, si_status = 8320, si_utime = 140322072506496, si_stime = 140322072506496}, _sigfault = {si_addr = 0x0, si_addr_lsb = 8320, _bounds = {_addr_bnd = {_lower = 0x7f9f47493080, _upper = 0x7f9f47493080}, _pkey = 1195978880}}, _sigpoll = {si_band = 0, si_fd = 8320}, _sigsys = {_call_addr = 0x0, _syscall = 8320, _arch = 29360}}}
#3 signal_hand () at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:3304
origin = <optimized out>
error = <optimized out>
set = {__val = {540677, 0, 0, 0, 0, 18190150998286485504, 0, 0, 6912144340537, 140321974971804, 0, 140322115374798, 124107374985520, 124107374985444, 8589934820, 1}}
sig = <optimized out>
#4 0x000056495553a525 in pfs_spawn_thread (arg=0x716000003618) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000003618
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564954086da0 <signal_hand(void*)>
user_arg = 0x0
#5 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 5 (Thread 0x7f9f417db6c0 (LWP 147047)):
#0 0x00007f9f49d73f16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f9f49d765d8 in pthread_cond_wait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x0000564953ef8b70 in psi_cond_wait (that=0x56495b607560 <COND_manager>, mutex=0x56495b607530 <LOCK_manager>, file=0x564956228224 "/home/buildbot/amd64-msan-clang-20/build/sql/sql_manager.cc", line=110) at /home/buildbot/amd64-msan-clang-20/build/mysys/my_thr_init.c:580
state = {m_flags = 7, m_operation = (PSI_COND_TIMEDWAIT | unknown: 0x5648), m_cond = 0x728000000d40, m_mutex = 0x734000006880, m_thread = 0x7f9f47491a00, m_timer_start = 30247958486743050, m_timer = 0x6b765ba4c858fc, m_wait = 0x7f9f47492358}
result = <optimized out>
locker = <optimized out>
#3 0x000056495441a30a in inline_mysql_cond_wait (src_line=110, that=<optimized out>, mutex=<optimized out>, src_file=<optimized out>) at include/mysql/psi/mysql_thread.h:1070
No locals.
#4 handle_manager (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_manager.cc:110
cb = <optimized out>
abstime = {tv_sec = 688, tv_nsec = 140321975278992}
error = <optimized out>
reset_flush_time = true
#5 0x000056495553a525 in pfs_spawn_thread (arg=0x716000001218) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000001218
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564954419b00 <handle_manager(void*)>
user_arg = 0x0
#6 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 4 (Thread 0x7f9f4992a800 (LWP 147036)):
#0 0x00007f9f49d73f16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f9f49d768bc in pthread_cond_timedwait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x0000564953ef8ccd in psi_cond_timedwait (that=0x56495bef1838 <COND_timer>, mutex=0x56495bef1808 <LOCK_timer>, abstime=0x7f9f49928e98, file=0x56495644f19c "/home/buildbot/amd64-msan-clang-20/build/mysys/thr_timer.c", line=line@entry=330) at /home/buildbot/amd64-msan-clang-20/build/mysys/my_thr_init.c:593
state = {m_flags = 7, m_operation = PSI_COND_WAIT, m_cond = 0x7280000003c0, m_mutex = 0x734000002180, m_thread = 0x7f9f4748ed00, m_timer_start = 30247958188374525, m_timer = 0x500000000000, m_wait = 0x7f9f4748f658}
result = <optimized out>
locker = <optimized out>
#3 0x0000564955f0cd9e in inline_mysql_cond_timedwait (abstime=0x7f9f49928e98, src_line=330, that=<optimized out>, mutex=<optimized out>, src_file=<optimized out>) at include/mysql/psi/mysql_thread.h:1086
No locals.
#4 timer_handler (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/mysys/thr_timer.c:330
now = <optimized out>
top_time = 0x56495bef1870 <max_timer_data>
error = <optimized out>
abstime = <optimized out>
#5 0x000056495553a525 in pfs_spawn_thread (arg=0x716000000318) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000000318
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564955f0c710 <timer_handler>
user_arg = 0x0
#6 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 3 (Thread 0x7f9f412d06c0 (LWP 147042)):
#0 0x00007f9f49d73f16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f9f49d768bc in pthread_cond_timedwait () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x0000564953ef8ccd in psi_cond_timedwait (that=0x56495be4cac0 <COND_checkpoint>, mutex=0x56495be4ca88 <LOCK_checkpoint>, abstime=abstime@entry=0x7f9f412cecb0, file=0x5649563c5bb1 "/home/buildbot/amd64-msan-clang-20/build/storage/maria/ma_servicethread.c", line=line@entry=116) at /home/buildbot/amd64-msan-clang-20/build/mysys/my_thr_init.c:593
state = {m_flags = 7, m_operation = PSI_COND_WAIT, m_cond = 0x728000000ac0, m_mutex = 0x734000005f00, m_thread = 0x7f9f47490380, m_timer_start = 30248030613181425, m_timer = 0x500000000000, m_wait = 0x7f9f47490cd8}
result = <optimized out>
locker = <optimized out>
#3 0x00005649553bdd03 in inline_mysql_cond_timedwait (that=0x56495be4cae8 <COND_checkpoint+40>, mutex=0x189, abstime=0x7f9f412cecb0, src_line=116, src_file=<optimized out>) at include/mysql/psi/mysql_thread.h:1086
No locals.
#4 my_service_thread_sleep (control=0x564956bd96b0 <checkpoint_control>, sleep_time=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/storage/maria/ma_servicethread.c:115
abstime = {tv_sec = 1771514292, tv_nsec = <synthetic pointer>}
res = 0 '\000'
#5 0x00005649553a392f in ma_checkpoint_background (arg=arg@entry=0x1e) at /home/buildbot/amd64-msan-clang-20/build/storage/maria/ma_checkpoint.c:765
filter_param = {up_to_lsn = 4295396409, max_pages = 9240}
log_horizon_at_last_checkpoint = 4295396453
pagecache_flushes_at_last_checkpoint = 0
sleeps = 30
pages_bunch_size = 0
kfile = 0x0
dfile = 0x0
sleep_time = 30
interval = <optimized out>
#6 0x000056495553a525 in pfs_spawn_thread (arg=0x716000002418) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000002418
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x5649553a3760 <ma_checkpoint_background>
user_arg = 0x1e
#7 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#8 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 2 (Thread 0x7f9f49ce9800 (LWP 146926)):
#0 0x00007f9f49dea25f in poll () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x000056495403d80f in __interceptor_poll ()
No symbol table info available.
#2 0x000056495409bc27 in handle_connections_sockets () at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:6669
cAddr = {ss_family = 1, __ss_padding = '\000' <repeats 102 times>, "P\241z\002\375\177\000\000\200\326HG\237\177\000", __ss_align = 0}
fds = {array = {buffer = 0x70a000000e78 "\v", elements = 3, max_element = 16, alloc_increment = 16, size_of_element = 8, m_psi_key = 0, malloc_flags = 0}}
termination_fds = {32, 33}
event_fd = {fd = 32, events = 1, revents = 0}
sock = <optimized out>
error_count = <optimized out>
retval = <optimized out>
#3 0x000056495409873b in run_main_loop () at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:5951
No locals.
#4 0x000056495408a20a in mysqld_main (argc=143, argv=0x71900000a570) at /home/buildbot/amd64-msan-clang-20/build/sql/mysqld.cc:6374
ho_error = <optimized out>
new_thread_stack_size = <optimized out>
user = <optimized out>
please_close_stdin = <optimized out>
#5 0x00007f9f49d1524a in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f9f49d15305 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x0000564953fe65e1 in _start ()
No symbol table info available.
Thread 1 (Thread 0x7f9f417456c0 (LWP 147075)):
#0 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x0000564954d34359 in handle_fatal_signal (sig=6) at /home/buildbot/amd64-msan-clang-20/build/sql/signal_handler.cc:298
curr_time = 1771514233
tm = {tm_sec = 13, tm_min = 17, tm_hour = 15, tm_mday = 19, tm_mon = 1, tm_year = 126, tm_wday = 4, tm_yday = 49, tm_isdst = 0, tm_gmtoff = 0, tm_zone = 0x702000000050 "UTC"}
thd = <optimized out>
#2 0x0000564954072a39 in SignalHandler(int) ()
No symbol table info available.
#3 <signal handler called>
No symbol table info available.
#4 0x00007f9f49d78eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5 0x00007f9f49d29fb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6 0x00007f9f49d14472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x0000564953ffdd8c in __sanitizer::Abort() ()
No symbol table info available.
#8 0x0000564953ffbc2e in __sanitizer::Die() ()
No symbol table info available.
#9 0x0000564954012f13 in __msan_warning_with_origin_noreturn ()
No symbol table info available.
#10 0x00005649560121c5 in my_strnncoll_utf8mb3_general1400_as_ci (cs=<optimized out>, a=0x7020000210d8 "7", a_length=<optimized out>, b=<optimized out>, b_length=<optimized out>, b_is_prefix=0x0) at strings/strcoll.inl:241
a_weight = 55
a_wlen = 1
b_weight = <optimized out>
b_wlen = <optimized out>
res = <optimized out>
a_end = 0x7020000210dc "\002"
b_end = 0x5649563c1762 "pagecache"
#11 0x000056495418e2ad in charset_info_st::strnncoll (this=0x23dee, alen=4, blen=4, b_is_prefix=0x0, a=<optimized out>, b=<optimized out>) at include/m_ctype.h:1163
No locals.
#12 init_slave_skip_errors (arg=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:788
p = <optimized out>
#13 0x000056495418e98a in update_slave_skip_errors (self=<optimized out>, thd=<optimized out>, type=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/slave.cc:828
err = false
#14 0x00005649541807f6 in sys_var::update (this=this@entry=0x56495b62fa80 <Sys_slave_skip_errors>, thd=0x72b00004d018, var=var@entry=0x70700000a910) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:212
lock1 = {lock = 0x56495b6028a8 <PLock_global_system_variables>}
lock2 = {lock = 0x0}
type = <optimized out>
#15 0x0000564954184aa8 in set_var::update (this=0x70700000a910, thd=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:869
No locals.
#16 0x0000564954183db4 in sql_set_variables (thd=thd@entry=0x72b00004d018, var_list=var_list@entry=0x72b000052570, free=true) at /home/buildbot/amd64-msan-clang-20/build/sql/set_var.cc:750
error = 0
it = {<base_list_iterator> = {list = 0x72b000052570, el = <optimized out>, prev = 0x0, current = 0x0}, <No data fields>}
var = <optimized out>
was_error = <optimized out>
#17 0x0000564954440148 in mysql_execute_command (thd=thd@entry=0x72b00004d018, is_called_from_prepared_stmt=false) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:4918
lex_var_list = 0x72b000052570
all_tables = 0x0
ots = {ctx = 0x72b0000511f0, traceable = false}
res = 0
lex = 0x72b000051488
select_lex = 0x72b000051de8
first_table = 0x0
unit = 0x72b000051568
orig_binlog_format = BINLOG_FORMAT_MIXED
orig_current_stmt_binlog_format = BINLOG_FORMAT_STMT
error = <optimized out>
wsrep_error_label = <optimized out>
#18 0x000056495442dbdf in mysql_parse (thd=0x72b00004d018, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f9f417431e0) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:7940
found_semicolon = <optimized out>
error = <optimized out>
lex = 0x72b000051488
err = <optimized out>
#19 0x0000564954426fa3 in dispatch_command (command=COM_QUERY, thd=thd@entry=0x72b00004d018, packet=<optimized out>, packet_length=<optimized out>, blocking=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1896
parser_state = {m_lip = {lookahead_token = -1, lookahead_yylval = 0x0, m_thd = 0x72b00004d018, m_ptr = 0x70b00000b054 "\004", m_tok_start = 0x70b00000b054 "\004", m_tok_end = 0x70b00000b054 "\004", m_end_of_query = 0x70b00000b053 "", m_tok_start_prev = 0x70b00000b053 "", m_buf = 0x70b00000b030 "SET @@global.slave_skip_errors= \"7\"", m_buf_length = 35, m_echo = true, m_echo_saved = false, m_cpp_buf = 0x70600000d7d0 "SET @@global.slave_skip_errors= \"7\"", m_cpp_ptr = 0x70600000d7f3 "", m_cpp_tok_start = 0x70600000d7f3 "", m_cpp_tok_start_prev = 0x70600000d7f3 "", m_cpp_tok_end = 0x70600000d7f3 "", m_body_utf8 = 0x0, m_body_utf8_ptr = 0x564955550c19 <pfs_end_socket_wait_v1(PSI_socket_locker*, size_t)+809> "M\211\362L\215\263 \b", m_cpp_utf8_processed_ptr = 0x0, next_state = MY_LEX_END, found_semicolon = 0x0, ignore_space = false, stmt_prepare_mode = false, multi_statements = true, hint_comment = false, yylineno = 1, m_digest = 0x0, in_comment = NO_COMMENT, in_comment_saved = (unknown: 0x7290), m_cpp_text_start = 0x70600000d7f1 "7\"", m_cpp_text_end = 0x70600000d7f2 "\"", m_underscore_cs = 0x0}, m_yacc = {yacc_yyss = 0x0, yacc_yyvs = 0x0, m_set_signal_info = {m_item = {0x0 <repeats 13 times>}}, m_lock_type = TL_READ_DEFAULT, m_mdl_type = MDL_SHARED_READ}, m_digest_psi = 0x72b000050f78}
packet_end = <optimized out>
net = <optimized out>
error = false
do_end_of_statement = true
log_slow_done = false
drop_more_results = false
#20 0x000056495442ec7a in do_command (thd=thd@entry=0x72b00004d018, blocking=<optimized out>) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_parse.cc:1432
packet = 0x72900004b018 "\003SET @@global.slave_skip_errors= \"7\""
net = <optimized out>
command = <optimized out>
packet_length = <optimized out>
return_value = <optimized out>
#21 0x000056495488655d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x70600000d758, put_in_cache=true) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1503
create_user = true
thr_create_utime = <optimized out>
thd = 0x72b00004d018
#22 0x0000564954886002 in handle_one_connection (arg=arg@entry=0x70600000d758) at /home/buildbot/amd64-msan-clang-20/build/sql/sql_connect.cc:1415
connect = 0x70600000d758
#23 0x000056495553a525 in pfs_spawn_thread (arg=0x716000007518) at /home/buildbot/amd64-msan-clang-20/build/storage/perfschema/pfs.cc:2198
typed_arg = 0x716000007518
klass = <optimized out>
pfs = <optimized out>
user_start_routine = 0x564954885f00 <handle_one_connection(void*)>
user_arg = 0x70600000d758
#24 0x00007f9f49d771f5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#25 0x00007f9f49df6b40 in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Compressed file /home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/log/main.variables-notembedded/mysqld.1/data/core
- saving '/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/34/log/main.variables-notembedded/' to '/home/buildbot/amd64-msan-clang-20/build/mysql-test/var/log/main.variables-no
3a0d38f to
d21fd5b
Compare
d21fd5b to
5af34c9
Compare
Now we can update slave_skip_errors at runtime when slaves stopped
to be changed at runtime when the replication slave is stopped.
server restart to be changed.
running preventing inconsistent replication state.
Key Changes
slave is stopped.
when the variable is changed.
dynamically when the slave is stopped and verified that updates are rejected while the slave is running.
behavior now is like that :

Feature :
MDEV-7394