Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6
-
None
Description
START SLAVE SQL_THREAD;
|
SET @@debug_dbug="d,simulate_find_log_pos_error";
|
CHANGE MASTER TO IGNORE_DOMAIN_IDS=(1), MASTER_USE_GTID=SLAVE_POS;
|
FLUSH LOGS;
|
CHANGE MASTER TO master_use_gtid=current_pos;
|
Leads to:
10.6.0 8dd35a2507f8d63ca8df9335d2c6072d5c0e3b86 (Debug) |
mysqld: /test/10.6_dbg/mysys/mf_iocache.c:428: reinit_io_cache: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed.
|
10.6.0 8dd35a2507f8d63ca8df9335d2c6072d5c0e3b86 (Debug) |
Core was generated by `/test/MD160321-mariadb-10.6.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x1512b5967700 (LWP 916521))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x0000561cb5a29d0b in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
|
#2 0x0000561cb51c1313 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:331
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x00001512cc7cc859 in __GI_abort () at abort.c:79
|
#6 0x00001512cc7cc729 in __assert_fail_base (fmt=0x1512cc962588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x561cb5e7c708 "info->type == READ_CACHE || info->type == WRITE_CACHE", file=0x561cb5e7c3d8 "/test/10.6_dbg/mysys/mf_iocache.c", line=428, function=<optimized out>) at assert.c:92
|
#7 0x00001512cc7ddf36 in __GI___assert_fail (assertion=assertion@entry=0x561cb5e7c708 "info->type == READ_CACHE || info->type == WRITE_CACHE", file=file@entry=0x561cb5e7c3d8 "/test/10.6_dbg/mysys/mf_iocache.c", line=line@entry=428, function=function@entry=0x561cb5e7c880 <__PRETTY_FUNCTION__.18006> "reinit_io_cache") at assert.c:101
|
#8 0x0000561cb5a0b84a in reinit_io_cache (info=info@entry=0x561cb87d31a0, type=type@entry=READ_CACHE, seek_offset=seek_offset@entry=0, use_async_io=use_async_io@entry=0 '\000', clear_cache=clear_cache@entry=0 '\000') at /test/10.6_dbg/mysys/mf_iocache.c:428
|
#9 0x0000561cb531a8f1 in MYSQL_BIN_LOG::find_log_pos (this=this@entry=0x561cb87d2990, linfo=linfo@entry=0x1512b5965040, log_name=log_name@entry=0x0, need_lock=need_lock@entry=false) at /test/10.6_dbg/sql/log.cc:4131
|
#10 0x0000561cb532d884 in MYSQL_BIN_LOG::reset_logs (this=this@entry=0x561cb87d2990, thd=thd@entry=0x151270000db8, create_new_log=<optimized out>, init_state=init_state@entry=0x0, init_state_len=init_state_len@entry=0, next_log_number=next_log_number@entry=0) at /test/10.6_dbg/sql/log.cc:4371
|
#11 0x0000561cb504ae98 in purge_relay_logs (rli=rli@entry=0x561cb87d24b8, thd=thd@entry=0x151270000db8, just_reset=just_reset@entry=false, errmsg=errmsg@entry=0x1512b59655c0) at /test/10.6_dbg/sql/rpl_rli.cc:1219
|
#12 0x0000561cb4f2d864 in change_master (thd=thd@entry=0x151270000db8, mi=mi@entry=0x561cb87d07f0, master_info_added=master_info_added@entry=0x1512b5966000) at /test/10.6_dbg/sql/sql_repl.cc:3852
|
#13 0x0000561cb4f047bb in mysql_execute_command (thd=thd@entry=0x151270000db8) at /test/10.6_dbg/sql/sql_parse.cc:4110
|
#14 0x0000561cb4ef0876 in mysql_parse (thd=thd@entry=0x151270000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1512b5966410) at /test/10.6_dbg/sql/sql_parse.cc:7998
|
#15 0x0000561cb4eff1e7 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x151270000db8, packet=packet@entry=0x15127000b359 "CHANGE MASTER TO master_use_gtid=current_pos", packet_length=packet_length@entry=44, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1318
|
#16 0x0000561cb4f025c1 in do_command (thd=0x151270000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1397
|
#17 0x0000561cb505a178 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x561cb875b298, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
|
#18 0x0000561cb505a77d in handle_one_connection (arg=arg@entry=0x561cb875b298) at /test/10.6_dbg/sql/sql_connect.cc:1312
|
#19 0x0000561cb5505a5b in pfs_spawn_thread (arg=0x561cb86a3a68) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#20 0x00001512cccda609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x00001512cc8c9293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
10.5.10 031b3dfc22c3d37769d49da902401b26a24f12b4 (Debug) |
mysqld: /test/10.5_dbg/mysys/mf_iocache.c:428: reinit_io_cache: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed.
|
10.5.10 031b3dfc22c3d37769d49da902401b26a24f12b4 (Debug) |
Core was generated by `/test/MD160321-mariadb-10.5.10-linux-x86_64-dbg/bin/mysqld --no-defaults --core'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x147e986b6700 (LWP 926046))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x000055fd9453ff45 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:424
|
#2 0x000055fd93c82adf in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:331
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x0000147e9c263859 in __GI_abort () at abort.c:79
|
#6 0x0000147e9c263729 in __assert_fail_base (fmt=0x147e9c3f9588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55fd94997488 "info->type == READ_CACHE || info->type == WRITE_CACHE", file=0x55fd94997158 "/test/10.5_dbg/mysys/mf_iocache.c", line=428, function=<optimized out>) at assert.c:92
|
#7 0x0000147e9c274f36 in __GI___assert_fail (assertion=assertion@entry=0x55fd94997488 "info->type == READ_CACHE || info->type == WRITE_CACHE", file=file@entry=0x55fd94997158 "/test/10.5_dbg/mysys/mf_iocache.c", line=line@entry=428, function=function@entry=0x55fd94997600 <__PRETTY_FUNCTION__.17993> "reinit_io_cache") at assert.c:101
|
#8 0x000055fd945210c4 in reinit_io_cache (info=info@entry=0x55fd9772c9f0, type=type@entry=READ_CACHE, seek_offset=seek_offset@entry=0, use_async_io=use_async_io@entry=0 '\000', clear_cache=clear_cache@entry=0 '\000') at /test/10.5_dbg/mysys/mf_iocache.c:428
|
#9 0x000055fd93ddd2b0 in MYSQL_BIN_LOG::find_log_pos (this=this@entry=0x55fd9772c1e0, linfo=linfo@entry=0x147e986b3fa0, log_name=log_name@entry=0x0, need_lock=need_lock@entry=false) at /test/10.5_dbg/sql/log.cc:4131
|
#10 0x000055fd93df167e in MYSQL_BIN_LOG::reset_logs (this=this@entry=0x55fd9772c1e0, thd=thd@entry=0x147e50000db8, create_new_log=<optimized out>, init_state=init_state@entry=0x0, init_state_len=init_state_len@entry=0, next_log_number=next_log_number@entry=0) at /test/10.5_dbg/sql/log.cc:4371
|
#11 0x000055fd93b08349 in purge_relay_logs (rli=rli@entry=0x55fd9772bd08, thd=thd@entry=0x147e50000db8, just_reset=just_reset@entry=false, errmsg=errmsg@entry=0x147e986b4518) at /test/10.5_dbg/sql/rpl_rli.cc:1219
|
#12 0x000055fd939e9f5c in change_master (thd=thd@entry=0x147e50000db8, mi=mi@entry=0x55fd9772a040, master_info_added=master_info_added@entry=0x147e986b4f60) at /test/10.5_dbg/sql/sql_repl.cc:3852
|
#13 0x000055fd939bfdcc in mysql_execute_command (thd=thd@entry=0x147e50000db8) at /test/10.5_dbg/sql/sql_parse.cc:4188
|
#14 0x000055fd939ab611 in mysql_parse (thd=thd@entry=0x147e50000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x147e986b53d0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:8089
|
#15 0x000055fd939ba4d0 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147e50000db8, packet=packet@entry=0x147e5000b499 "CHANGE MASTER TO master_use_gtid=current_pos", packet_length=packet_length@entry=44, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_class.h:1257
|
#16 0x000055fd939bdc33 in do_command (thd=0x147e50000db8) at /test/10.5_dbg/sql/sql_parse.cc:1370
|
#17 0x000055fd93b181dd in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55fd976d57a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1410
|
#18 0x000055fd93b188e1 in handle_one_connection (arg=arg@entry=0x55fd976d57a8) at /test/10.5_dbg/sql/sql_connect.cc:1312
|
#19 0x000055fd93fd01b9 in pfs_spawn_thread (arg=0x55fd975fef88) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#20 0x0000147e9c771609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x0000147e9c360293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.38 (dbg), 10.3.29 (dbg), 10.4.19 (dbg), 10.5.10 (dbg), 10.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (opt), 10.3.29 (opt), 10.4.19 (opt), 10.5.10 (opt), 10.6.0 (opt)