Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
N/A
-
None
Description
Note: A tentative patch for MDEV-36435 doesn't fix this.
CREATE TABLE t (a INT); |
LOCK TABLE t WRITE; |
SET AUTOCOMMIT = OFF; |
CREATE OR REPLACE TABLE t (b INT) ENGINE=Aria; |
SELECT 1; |
|
UNLOCK TABLES;
|
DROP TABLE t; |
bb-main-monty 6cb6e8285c50a0bbcb2b599535b8d02b7bba5256 |
mariadbd: /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc:3513: int mysql_execute_command(THD*, bool): Assertion `thd->transaction->stmt.is_empty() || thd->in_sub_stmt' failed.
|
250405 18:11:53 [ERROR] /share8t/bld/preview-12.0-bb-main-monty-asan/sql/mariadbd got signal 6 ;
|
|
#8 0x00007f23c4e45395 in __assert_fail_base (fmt=0x7f23c4fb9a90 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5633d52f9ce0 "thd->transaction->stmt.is_empty() || thd->in_sub_stmt", file=file@entry=0x5633d52f71e0 "/data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc", line=line@entry=3513, function=function@entry=0x5633d52f9c00 "int mysql_execute_command(THD*, bool)") at ./assert/assert.c:92
|
#9 0x00007f23c4e53eb2 in __GI___assert_fail (assertion=0x5633d52f9ce0 "thd->transaction->stmt.is_empty() || thd->in_sub_stmt", file=0x5633d52f71e0 "/data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc", line=3513, function=0x5633d52f9c00 "int mysql_execute_command(THD*, bool)") at ./assert/assert.c:101
|
#10 0x00005633d2f6b1b8 in mysql_execute_command (thd=0x62c0000c0218, is_called_from_prepared_stmt=false) at /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc:3513
|
#11 0x00005633d2f88e30 in mysql_parse (thd=0x62c0000c0218, rawbuf=0x62d00033e438 "SELECT 1", length=8, parser_state=0x7f23b5182a30) at /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc:7919
|
#12 0x00005633d2f5fd3a in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x6290002a3219 "SELECT 1", packet_length=8, blocking=true) at /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc:1905
|
#13 0x00005633d2f5c925 in do_command (thd=0x62c0000c0218, blocking=true) at /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_parse.cc:1416
|
#14 0x00005633d345e0e9 in do_handle_one_connection (connect=0x6080000036b8, put_in_cache=true) at /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_connect.cc:1415
|
#15 0x00005633d345dc48 in handle_one_connection (arg=0x608000003638) at /data/bld/preview-12.0-bb-main-monty-asan/sql/sql_connect.cc:1327
|
#16 0x00005633d412188c in pfs_spawn_thread (arg=0x617000005b98) at /data/bld/preview-12.0-bb-main-monty-asan/storage/perfschema/pfs.cc:2198
|
#17 0x00007f23c4ea81c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#18 0x00007f23c4f2885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
Not reproducible with drop_before_create_or_replace=ON.
Attachments
Issue Links
- is caused by
-
MDEV-25292 Atomic CREATE OR REPLACE TABLE
-
- Stalled
-