Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
12.0(EOL)
-
None
-
Q4/2025 Server Maintenance
Description
This bug exists post the MDEV-36563 patch (f8ba5ced5511c55a16e182e5907e9e3fe74636da).
--source include/have_innodb.inc
|
--source include/have_log_bin.inc
|
SET SESSION binlog_format=STATEMENT; |
CREATE TEMPORARY TABLE t (c INT) ENGINE=InnoDB; |
INSERT INTO t VALUES (1),(1); |
DELETE FROM a,b USING t AS a JOIN t AS b; |
Leads to:
CS 12.0.1 107291bf980822fcc3c02bd4e01ecbc4db7fd192 (Debug, Clang) Build 30/06/2025 |
mariadbd: /test/12.0_dbg/sql/temporary_tables.cc:856: void THD::mark_tmp_table_as_free_for_reuse(TABLE *): Assertion `!mysql_bin_log.is_open()' failed.
|
CS 12.0.1 107291bf980822fcc3c02bd4e01ecbc4db7fd192 (Debug, Clang) Build 30/06/2025 |
Core was generated by `/test/MD300625-mariadb-12.0.1-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
 |
[Current thread is 1 (LWP 1600314)]
|
(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 0x000075f80104526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x000075f8010288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x000075f80102881b in __assert_fail_base (fmt=0x75f8011d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5ab301530961 "!mysql_bin_log.is_open()", file=file@entry=0x5ab301553a82 "/test/12.0_dbg/sql/temporary_tables.cc", line=line@entry=856, function=function@entry=0x5ab301407803 "void THD::mark_tmp_table_as_free_for_reuse(TABLE *)") at ./assert/assert.c:94
|
#6 0x000075f80103b507 in __assert_fail (assertion=0x5ab301530961 "!mysql_bin_log.is_open()", file=0x5ab301553a82 "/test/12.0_dbg/sql/temporary_tables.cc", line=856, function=0x5ab301407803 "void THD::mark_tmp_table_as_free_for_reuse(TABLE *)") at ./assert/assert.c:103
|
#7 0x00005ab302441724 in THD::mark_tmp_table_as_free_for_reuse (this=0x75f6d0000d58, table=0x75f6d0026eb8)at /test/12.0_dbg/sql/temporary_tables.cc:856
|
#8 0x00005ab3024414f2 in THD::mark_tmp_tables_as_free_for_reuse (this=0x75f6d0000d58) at /test/12.0_dbg/sql/temporary_tables.cc:810
|
#9 0x00005ab301f46f8b in close_thread_tables (thd=0x75f6d0000d58)at /test/12.0_dbg/sql/sql_base.cc:947
|
#10 0x00005ab301f46ae9 in close_thread_tables_for_query (thd=0x75f6d0000d58)at /test/12.0_dbg/sql/sql_base.cc:820
|
#11 0x00005ab3020c8fa2 in mysql_execute_command (thd=0x75f6d0000d58, is_called_from_prepared_stmt=false) at /test/12.0_dbg/sql/sql_parse.cc:5951
|
#12 0x00005ab3020b7e44 in mysql_parse (thd=0x75f6d0000d58, rawbuf=0x75f6d0019f90 "DELETE FROM a3,a1 USING t AS a1 JOIN t AS a2 JOIN t AS a3", length=57, parser_state=0x75f7fbf67a10)at /test/12.0_dbg/sql/sql_parse.cc:7882
|
#13 0x00005ab3020b5218 in dispatch_command (command=COM_QUERY, thd=0x75f6d0000d58, packet=0x75f6d000b309 "DELETE FROM a3,a1 USING t AS a1 JOIN t AS a2 JOIN t AS a3", packet_length=57, blocking=true) at /test/12.0_dbg/sql/sql_parse.cc:1877
|
#14 0x00005ab3020b89f3 in do_command (thd=0x75f6d0000d58, blocking=true)at /test/12.0_dbg/sql/sql_parse.cc:1416
|
#15 0x00005ab3022d5d89 in do_handle_one_connection (connect=0x5ab3043596d8, put_in_cache=true) at /test/12.0_dbg/sql/sql_connect.cc:1414
|
#16 0x00005ab3022d5b2e in handle_one_connection (arg=0x5ab3043dd078)at /test/12.0_dbg/sql/sql_connect.cc:1326
|
#17 0x000075f80109ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#18 0x000075f801129c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Attachments
Issue Links
- relates to
-
MDEV-36898 Assertion failure upon using temporary sequence with SBR
-
- Open
-
-
MDEV-36099 Ensure that creation and usage of temporary tables in replication is predictable
-
- Closed
-
-
MDEV-36563 Assertion `!mysql_bin_log.is_open()' failed in THD::mark_tmp_table_as_free_for_reuse upon REPAIR
-
- Closed
-