Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
11.4, 11.5(EOL), 11.6, 11.7
Description
# mysqld options required for replay: --log_bin |
CREATE PROCEDURE p() FLUSH MASTER; |
CALL p();
|
SET GLOBAL expire_logs_days=1; |
SET GLOBAL slave_connections_needed_for_purge=1; |
Leads to:
11.6.2 19cea738342737503f47cfe6ff67d5248b0a0961 (Debug) |
mariadbd: /test/11.6_dbg/mysys/mf_iocache.c:490: reinit_io_cache: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed.
|
11.6.2 19cea738342737503f47cfe6ff67d5248b0a0961 (Debug) |
Core was generated by `/test/MD090924-mariadb-11.6.2-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGABRT, Aborted.
|
Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/pthread_kill.c.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
 |
warning: 44 ./nptl/pthread_kill.c: No such file or directory
|
[Current thread is 1 (LWP 3221938)]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
|
#3 0x000014a458c4526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x000014a458c288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x000014a458c2881b in __assert_fail_base (fmt=0x14a458dd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55973b0715a0 "info->type == READ_CACHE || info->type == WRITE_CACHE", file=file@entry=0x55973b0713a0 "/test/11.6_dbg/mysys/mf_iocache.c", line=line@entry=490, function=function@entry=0x55973b257140 <__PRETTY_FUNCTION__.7> "reinit_io_cache") at ./assert/assert.c:94
|
#6 0x000014a458c3b507 in __assert_fail (assertion=assertion@entry=0x55973b0715a0 "info->type == READ_CACHE || info->type == WRITE_CACHE", file=file@entry=0x55973b0713a0 "/test/11.6_dbg/mysys/mf_iocache.c", line=line@entry=490, function=function@entry=0x55973b257140 <__PRETTY_FUNCTION__.7> "reinit_io_cache") at ./assert/assert.c:103
|
#7 0x000055973ac8cbbd in reinit_io_cache (info=0x55973ba31388 <mysql_bin_log+2152>, type=READ_CACHE, seek_offset=0, use_async_io=<optimized out>, clear_cache=0 '\000')at /test/11.6_dbg/mysys/mf_iocache.c:490
|
#8 0x000055973a60e3cc in MYSQL_BIN_LOG::find_log_pos (this=this@entry=0x55973ba30b20 <mysql_bin_log>, linfo=linfo@entry=0x14a44f1fd850, log_name=log_name@entry=0x0, need_lock=need_lock@entry=false) at /test/11.6_dbg/sql/log.cc:4275
|
#9 0x000055973a61afc3 in MYSQL_BIN_LOG::purge_logs_before_date (this=this@entry=0x55973ba30b20 <mysql_bin_log>, thd=thd@entry=0x14a400000d58, purge_time=1725767215, interactive=interactive@entry=false) at /test/11.6_dbg/sql/log.cc:5293
|
#10 0x000055973a61b309 in MYSQL_BIN_LOG::purge (this=this@entry=0x55973ba30b20 <mysql_bin_log>, all=all@entry=true)at /test/11.6_dbg/sql/log.cc:7724
|
#11 0x000055973a33a833 in update_binlog_space_limit (type=<optimized out>)at /test/11.6_dbg/sql/sys_vars.cc:1270
|
#12 0x000055973a0b6ddb in sys_var::update (this=0x55973ba27060 <Sys_slave_connections_needed_for_purge>, thd=0x14a400000d58, var=0x14a40001ad78)at /test/11.6_dbg/sql/set_var.cc:211
|
#13 0x000055973a0b72f5 in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/11.6_dbg/sql/set_var.cc:868
|
#14 0x000055973a0b8690 in sql_set_variables (thd=thd@entry=0x14a400000d58, var_list=var_list@entry=0x14a4000061f0, free=free@entry=true)at /test/11.6_dbg/sql/set_var.cc:750
|
#15 0x000055973a1a0580 in mysql_execute_command (thd=thd@entry=0x14a400000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.6_dbg/sql/sql_parse.cc:4849
|
#16 0x000055973a1a4772 in mysql_parse (thd=thd@entry=0x14a400000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14a44f1fe260)at /test/11.6_dbg/sql/sql_parse.cc:7876
|
#17 0x000055973a1a6c09 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a400000d58, packet=packet@entry=0x14a40000b3c9 "SET GLOBAL slave_connections_needed_for_purge=1", packet_length=packet_length@entry=47, blocking=blocking@entry=true)at /test/11.6_dbg/sql/sql_class.h:256
|
#18 0x000055973a1a8f57 in do_command (thd=0x14a400000d58, blocking=blocking@entry=true) at /test/11.6_dbg/sql/sql_parse.cc:1405
|
#19 0x000055973a3211fe in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55973df386b8, put_in_cache=put_in_cache@entry=true)at /test/11.6_dbg/sql/sql_connect.cc:1448
|
#20 0x000055973a32150a in handle_one_connection (arg=arg@entry=0x55973df386b8)at /test/11.6_dbg/sql/sql_connect.cc:1350
|
#21 0x000055973a775d3b in pfs_spawn_thread (arg=0x55973dece6d8)at /test/11.6_dbg/storage/perfschema/pfs.cc:2198
|
#22 0x000014a458c9ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#23 0x000014a458d29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Bug confirmed present in:
MariaDB: 11.4.4 (dbg), 11.5.2 (dbg), 11.6.2 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.27 (dbg), 10.5.27 (opt), 10.6.20 (dbg), 10.6.20 (opt), 10.11.10 (dbg), 10.11.10 (opt), 11.1.7 (dbg), 11.1.7 (opt), 11.2.6 (dbg), 11.2.6 (opt), 11.4.4 (opt), 11.5.2 (opt), 11.6.2 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.44 (dbg), 5.7.44 (opt), 8.0.36 (dbg), 8.0.36 (opt)
Attachments
Issue Links
- relates to
-
MDEV-31404 Implement binlog_space_limit
- Closed
-
MDEV-34504 PURGE BINARY LOGS not working anymore
- Closed