Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5, 10.6
Description
USE test;
|
SET SESSION aria_sort_buffer_size=1023;
|
CREATE TABLE t (c CHAR);
|
INSERT INTO t VALUES (''),('');
|
CREATE TABLE t2 (c TEXT,INDEX(c)) ENGINE=Aria;
|
INSERT INTO t2 SELECT * FROM t;
|
Leads to:
10.5.3 64488a6f2dd6aa43462292b757e783cfba11a8c6 |
mysqld: /test/10.5_dbg/storage/maria/ha_maria.cc:2020: virtual int ha_maria::enable_indexes(uint): Assertion `thd->killed != 0' failed.
|
10.5.3 64488a6f2dd6aa43462292b757e783cfba11a8c6 |
Core was generated by `/test/MD050520-mariadb-10.5.3-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x14e72255c700 (LWP 101849))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055b35bf3ce9a in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x000055b35b6e1289 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x000014e720ca0801 in __GI_abort () at abort.c:79
|
#6 0x000014e720c9039a in __assert_fail_base (fmt=0x14e720e177d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55b35c2b1d5d "thd->killed != 0", file=file@entry=0x55b35c2b20f8 "/test/10.5_dbg/storage/maria/ha_maria.cc", line=line@entry=2020, function=function@entry=0x55b35c2b41e0 <ha_maria::enable_indexes(unsigned int)::__PRETTY_FUNCTION__> "virtual int ha_maria::enable_indexes(uint)") at assert.c:92
|
#7 0x000014e720c90412 in __GI___assert_fail (assertion=assertion@entry=0x55b35c2b1d5d "thd->killed != 0", file=file@entry=0x55b35c2b20f8 "/test/10.5_dbg/storage/maria/ha_maria.cc", line=line@entry=2020, function=function@entry=0x55b35c2b41e0 <ha_maria::enable_indexes(unsigned int)::__PRETTY_FUNCTION__> "virtual int ha_maria::enable_indexes(uint)") at assert.c:101
|
#8 0x000055b35b9343d3 in ha_maria::enable_indexes (this=0x14e6ff5596a0, mode=<optimized out>) at /test/10.5_dbg/storage/maria/ha_maria.cc:2020
|
#9 0x000055b35b92d05f in ha_maria::end_bulk_insert (this=0x14e6ff5596a0) at /test/10.5_dbg/storage/maria/ha_maria.cc:2248
|
#10 0x000055b35b3fc8e9 in handler::ha_end_bulk_insert (this=0x14e6ff5596a0) at /test/10.5_dbg/sql/handler.h:3421
|
#11 select_insert::prepare_eof (this=this@entry=0x14e6ff475e60) at /test/10.5_dbg/sql/sql_insert.cc:4117
|
#12 0x000055b35b3fcf86 in select_insert::send_eof (this=0x14e6ff475e60) at /test/10.5_dbg/sql/sql_insert.cc:4227
|
#13 0x000055b35b4b5925 in do_select (procedure=<optimized out>, join=0x14e6ff475f18) at /test/10.5_dbg/sql/sql_select.cc:20195
|
#14 JOIN::exec_inner (this=this@entry=0x14e6ff475f18) at /test/10.5_dbg/sql/sql_select.cc:4464
|
#15 0x000055b35b4b5b57 in JOIN::exec (this=this@entry=0x14e6ff475f18) at /test/10.5_dbg/sql/sql_select.cc:4245
|
#16 0x000055b35b4b3e6c in mysql_select (thd=thd@entry=0x14e6ff415088, tables=<optimized out>, fields=..., conds=0x0, og_num=0, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=2202244745984, result=0x14e6ff475e60, unit=0x14e6ff419098, select_lex=0x14e6ff474860) at /test/10.5_dbg/sql/sql_select.cc:4669
|
#17 0x000055b35b4b419b in handle_select (thd=thd@entry=0x14e6ff415088, lex=lex@entry=0x14e6ff418fd0, result=result@entry=0x14e6ff475e60, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.5_dbg/sql/sql_select.cc:417
|
#18 0x000055b35b439d24 in mysql_execute_command (thd=thd@entry=0x14e6ff415088) at /test/10.5_dbg/sql/sql_parse.cc:4661
|
#19 0x000055b35b444b3a in mysql_parse (thd=thd@entry=0x14e6ff415088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14e72255b450, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7957
|
#20 0x000055b35b43130f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14e6ff415088, packet=packet@entry=0x14e6ff467089 "INSERT INTO t2 SELECT * FROM t", packet_length=packet_length@entry=30, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1839
|
#21 0x000055b35b42fbde in do_command (thd=0x14e6ff415088) at /test/10.5_dbg/sql/sql_parse.cc:1358
|
#22 0x000055b35b589d0d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14e7010433a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1422
|
#23 0x000055b35b58a03c in handle_one_connection (arg=arg@entry=0x14e7010433a8) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#24 0x000055b35b9e9f1a in pfs_spawn_thread (arg=0x14e720045888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#25 0x000014e7219836db in start_thread (arg=0x14e72255c700) at pthread_create.c:463
|
#26 0x000014e720d8188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.2 (dbg), 10.5.3 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.45 (dbg), 10.1.45 (opt), 10.2.32 (dbg), 10.2.32 (opt), 10.3.23 (dbg), 10.3.23 (opt), 10.4.13 (dbg), 10.4.13 (opt), 10.5.2 (opt), 10.5.3 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)
Similar to MDEV-17223 but the stack is slightly different, and this testcase is 10.5 only.
10.4 does not fail:
10.4.15 de76bebc5798313e3798a35e02468e42254dd608 (Debug) |
10.4.15>SET SESSION aria_sort_buffer_size=1023;
|
Query OK, 0 rows affected, 1 warning (0.000 sec)
|
 |
10.4.15>CREATE TABLE t (c CHAR);
|
Query OK, 0 rows affected (0.015 sec)
|
 |
10.4.15>INSERT INTO t VALUES (''),('');
|
Query OK, 2 rows affected (0.007 sec)
|
Records: 2 Duplicates: 0 Warnings: 0
|
 |
10.4.15>CREATE TABLE t2 (c TEXT,INDEX(c)) ENGINE=Aria;
|
Query OK, 0 rows affected, 1 warning (0.008 sec)
|
 |
10.4.15>INSERT INTO t2 SELECT * FROM t;
|
Query OK, 2 rows affected (0.010 sec)
|
Records: 2 Duplicates: 0 Warnings: 0
|
Attachments
Issue Links
- relates to
-
MDEV-17223 Assertion `thd->killed != 0' failed in ha_maria::enable_indexes
- Closed