Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.2(EOL), 11.4
-
None
Description
The issue occurs even after having the fix MDEV-34122
source include/have_log_bin.inc;
|
|
SET GLOBAL rpl_semi_sync_master_enabled=1; |
CREATE TABLE t (c INT); |
FLUSH STATUS;
|
CREATE OR REPLACE TABLE t (c INT); |
START TRANSACTION; |
INSERT INTO t (c) VALUES (1); |
SET GLOBAL rpl_semi_sync_master_enabled=0; |
SET GLOBAL rpl_semi_sync_master_enabled=1; |
CALL foo();
|
|
# Cleanup
|
DROP TABLE t; |
Leads to:
CS 11.4.5 f10d12008c2cfc73577d51648f70874690f11ba9 (Debug) |
mariadbd: /test/11.4_dbg/sql/semisync_master.cc:943: int Repl_semi_sync_master::commit_trx(const char*, my_off_t): Assertion `rpl_semi_sync_master_off_times > thd->expected_semi_sync_offs' failed.
|
CS 11.4.5 f10d12008c2cfc73577d51648f70874690f11ba9 (Debug) |
Core was generated by `/test/MD111124-mariadb-11.4.5-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x14bf841b0700 (LWP 2864513))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014bf9c310859 in __GI_abort () at abort.c:79
|
#2 0x000014bf9c310729 in __assert_fail_base (fmt=0x14bf9c4a6588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x559540388210 "rpl_semi_sync_master_off_times > thd->expected_semi_sync_offs", file=0x559540387ef8 "/test/11.4_dbg/sql/semisync_master.cc", line=943, function=<optimized out>) at assert.c:92
|
#3 0x000014bf9c321fd6 in __GI___assert_fail (assertion=assertion@entry=0x559540388210 "rpl_semi_sync_master_off_times > thd->expected_semi_sync_offs", file=file@entry=0x559540387ef8 "/test/11.4_dbg/sql/semisync_master.cc", line=line@entry=943, function=function@entry=0x559540388250 "int Repl_semi_sync_master::commit_trx(const char*, my_off_t)") at assert.c:101
|
#4 0x000055953f8d1df5 in Repl_semi_sync_master::commit_trx (this=this@entry=0x559540d847c0 <repl_semisync_master>, trx_wait_binlog_name=trx_wait_binlog_name@entry=0x14bf5804b8e0 "galapq-bin.000001", trx_wait_binlog_pos=trx_wait_binlog_pos@entry=998) at /test/11.4_dbg/sql/semisync_master.cc:943
|
#5 0x000055953f8d2244 in Repl_semi_sync_master::wait_after_commit (this=0x559540d847c0 <repl_semisync_master>, thd=thd@entry=0x14bf58000d48, all=all@entry=true) at /test/11.4_dbg/sql/semisync_master.cc:765
|
#6 0x000055953f9d66b0 in ha_commit_trans (thd=thd@entry=0x14bf58000d48, all=all@entry=true) at /test/11.4_dbg/sql/handler.cc:2049
|
#7 0x000055953f6527f0 in THD::commit_whole_transaction_and_close_tables (this=this@entry=0x14bf58000d48) at /test/11.4_dbg/sql/sql_class.cc:6435
|
#8 0x000055953fb83b34 in Sp_handler::db_find_routine (this=this@entry=0x559540c88f70 <sp_handler_procedure>, thd=thd@entry=0x14bf58000d48, name=name@entry=0x14bf841ae680, sphp=sphp@entry=0x14bf841ae8f0) at /test/11.4_dbg/sql/sp.cc:776
|
#9 0x000055953fb83b9d in Sp_handler::db_find_and_cache_routine (this=this@entry=0x559540c88f70 <sp_handler_procedure>, thd=thd@entry=0x14bf58000d48, name=name@entry=0x14bf841ae680, sp=sp@entry=0x14bf841ae8f0) at /test/11.4_dbg/sql/sp.cc:788
|
#10 0x000055953fb83c46 in Sp_handler::sp_cache_routine (this=0x559540c88f70 <sp_handler_procedure>, thd=0x14bf58000d48, name=0x14bf841ae680, sp=0x14bf841ae8f0) at /test/11.4_dbg/sql/sp.cc:2852
|
#11 0x000055953fb87dcd in Sroutine_hash_entry::sp_cache_routine (this=this@entry=0x14bf5801a7e0, thd=thd@entry=0x14bf58000d48, sp=sp@entry=0x14bf841ae8f0) at /test/11.4_dbg/sql/sp.cc:2812
|
#12 0x000055953f636146 in open_and_process_routine (routine_modifies_data=<synthetic pointer>, need_prelocking=0x14bf841ae8ef, ot_ctx=0x14bf841ae910, has_prelocking_list=false, prelocking_strategy=0x14bf841ae9f8, rt=0x14bf5801a7e0, prelocking_ctx=0x14bf58004f18, thd=0x14bf58000d48) at /test/11.4_dbg/sql/sql_base.cc:3856
|
#13 open_tables (thd=thd@entry=0x14bf58000d48, options=@0x14bf58006580: {m_options = DDL_options_st::OPT_NONE}, start=start@entry=0x14bf841ae998, counter=counter@entry=0x14bf841ae9ac, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x14bf841ae9f8) at /test/11.4_dbg/sql/sql_base.cc:4737
|
#14 0x000055953f636b61 in open_and_lock_tables (thd=thd@entry=0x14bf58000d48, options=<optimized out>, tables=<optimized out>, tables@entry=0x0, derived=derived@entry=true, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x14bf841ae9f8) at /test/11.4_dbg/sql/sql_base.cc:5638
|
#15 0x000055953f6b5a9c in open_and_lock_tables (flags=0, derived=true, tables=0x0, thd=0x14bf58000d48) at /test/11.4_dbg/sql/sql_base.h:532
|
#16 Sql_cmd_call::execute (this=0x14bf5801a7b8, thd=0x14bf58000d48) at /test/11.4_dbg/sql/sql_parse.cc:3247
|
#17 0x000055953f6c2eb5 in mysql_execute_command (thd=thd@entry=0x14bf58000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.4_dbg/sql/sql_parse.cc:5864
|
#18 0x000055953f6aa811 in mysql_parse (thd=thd@entry=0x14bf58000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14bf841af310) at /test/11.4_dbg/sql/sql_parse.cc:7893
|
#19 0x000055953f6b8a80 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14bf58000d48, packet=packet@entry=0x14bf5800b089 "CALL foo()", packet_length=packet_length@entry=10, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_class.h:1564
|
#20 0x000055953f6bb14e in do_command (thd=thd@entry=0x14bf58000d48, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_parse.cc:1418
|
#21 0x000055953f82f707 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5595433ddf78, put_in_cache=put_in_cache@entry=true) at /test/11.4_dbg/sql/sql_connect.cc:1429
|
#22 0x000055953f82fbd5 in handle_one_connection (arg=0x5595433ddf78) at /test/11.4_dbg/sql/sql_connect.cc:1341
|
#23 0x000014bf9c83c609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#24 0x000014bf9c40d133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.6.21 (dbg), 10.11.11 (dbg), 11.2.6 (dbg), 11.4.5 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.28 (opt), 10.6.21 (opt), 10.11.11 (opt), 11.2.6 (opt), 11.4.5 (opt)