Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.7, 10.8, 10.9
Description
Looks to be a new regression and does not look related to MDEV-16539 other than stack similarity.
CREATE TEMPORARY TABLE t (a INT KEY,b INT,KEY(b)) ENGINE=Aria; |
INSERT INTO t VALUES (30,1); |
INSERT INTO t SELECT a+4,b FROM t; |
INSERT INTO t VALUES (1,1),(2,2); |
SET max_session_mem_used=50000; |
DELETE FROM t WHERE a BETWEEN 0 AND 20 OR b BETWEEN 10 AND 20; |
Leads to:
10.9.0 4a2a9c02cd6611ef36bbb735c2b483dbc83580d4 (Debug) |
mysqld: /test/10.9_dbg/sql/handler.cc:7096: int handler::ha_reset(): Assertion `inited == NONE' failed.
|
10.9.0 4a2a9c02cd6611ef36bbb735c2b483dbc83580d4 (Debug) |
Core was generated by `/test/MD260222-mariadb-10.9.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
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 0x147ed41fb700 (LWP 2236417))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000147ee9693859 in __GI_abort () at abort.c:79
|
#2 0x0000147ee9693729 in __assert_fail_base (fmt=0x147ee9829588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55fc10f5d4d0 "inited == NONE", file=0x55fc11092ce3 "/test/10.9_dbg/sql/handler.cc", line=7096, function=<optimized out>) at assert.c:92
|
#3 0x0000147ee96a5006 in __GI___assert_fail (assertion=assertion@entry=0x55fc10f5d4d0 "inited == NONE", file=file@entry=0x55fc11092ce3 "/test/10.9_dbg/sql/handler.cc", line=line@entry=7096, function=function@entry=0x55fc11093737 "int handler::ha_reset()") at assert.c:101
|
#4 0x000055fc1053ec26 in handler::ha_reset (this=0x147e8402e2f0) at /test/10.9_dbg/sql/handler.cc:7096
|
#5 0x000055fc10486ff2 in THD::mark_tmp_table_as_free_for_reuse (this=this@entry=0x147e84000db8, table=0x147e8402da18) at /test/10.9_dbg/sql/temporary_tables.cc:791
|
#6 0x000055fc10488c57 in THD::mark_tmp_tables_as_free_for_reuse (this=this@entry=0x147e84000db8) at /test/10.9_dbg/sql/temporary_tables.cc:753
|
#7 0x000055fc10187f08 in close_thread_tables (thd=thd@entry=0x147e84000db8) at /test/10.9_dbg/sql/sql_base.cc:865
|
#8 0x000055fc1022d27a in mysql_execute_command (thd=thd@entry=0x147e84000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.9_dbg/sql/sql_parse.cc:6054
|
#9 0x000055fc10213343 in mysql_parse (thd=thd@entry=0x147e84000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x147ed41fa400) at /test/10.9_dbg/sql/sql_parse.cc:8027
|
#10 0x000055fc10221fdf in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147e84000db8, packet=packet@entry=0x147e8400b889 "DELETE FROM t WHERE a BETWEEN 0 AND 20 OR b BETWEEN 10 AND 20", packet_length=packet_length@entry=61, blocking=blocking@entry=true) at /test/10.9_dbg/sql/sql_class.h:1362
|
#11 0x000055fc10225426 in do_command (thd=0x147e84000db8, blocking=blocking@entry=true) at /test/10.9_dbg/sql/sql_parse.cc:1402
|
#12 0x000055fc103a0036 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55fc13469198, put_in_cache=put_in_cache@entry=true) at /test/10.9_dbg/sql/sql_connect.cc:1418
|
#13 0x000055fc103a063b in handle_one_connection (arg=arg@entry=0x55fc13469198) at /test/10.9_dbg/sql/sql_connect.cc:1312
|
#14 0x000055fc10826d23 in pfs_spawn_thread (arg=0x55fc1337c728) at /test/10.9_dbg/storage/perfschema/pfs.cc:2201
|
#15 0x0000147ee9ba4609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#16 0x0000147ee9790163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.7.4 (dbg), 10.8.3 (dbg), 10.9.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.44 (dbg), 10.2.44 (opt), 10.3.35 (dbg), 10.3.35 (opt), 10.4.25 (dbg), 10.4.25 (opt), 10.5.16 (dbg), 10.5.16 (opt), 10.6.8 (dbg), 10.6.8 (opt), 10.7.4 (opt), 10.8.3 (opt), 10.9.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.37 (dbg), 5.7.37 (opt), 8.0.28 (dbg), 8.0.28 (opt)