|
Please also try any fixes with
INSTALL PLUGIN spider SONAME 'ha_spider.so';
|
SET SESSION spider_same_server_link=ON;
|
CREATE TABLE t (col1 CHAR(1),col2 VARCHAR(1),UNIQUE KEY KEY1 USING HASH (col1,col2)) ENGINE=SPIDER;
|
CREATE TEMPORARY TABLE t (c BLOB);
|
CREATE TABLE t2 (c INT,c2 INT,c3 BLOB,PRIMARY KEY(c));
|
DROP TABLE t;
|
SELECT COUNT(TABLE1.colvck) FROM t AS TABLE1 JOIN (SELECT * FROM t) AS TABLE2 ON (1=1) WHERE TABLE1.pk=1;
|
ALTER TABLE t CHANGE c c NUMERIC ZEROFILL;
|
CREATE TABLE t3 (a INT,b INT,KEY(a));
|
INSERT INTO t VALUES (1,0);
|
Leads to:
|
10.8.0 ccdf5711a8fff0cd610a91fdcf37c8ff1182878c (Debug)
|
Core was generated by `/test/MD121221-mariadb-10.8.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x000014fc90100ef2 in spider_set_direct_limit_offset (
|
spider=spider@entry=0x14fbd40d6760)
|
at /test/10.8_dbg/storage/spider/spd_table.cc:9535
|
9535 if (spider->partition_handler_share->owner->
|
[Current thread is 1 (Thread 0x14fc9ca87700 (LWP 692285))]
|
(gdb) bt
|
#0 0x000014fc90100ef2 in spider_set_direct_limit_offset (spider=spider@entry=0x14fbd40d6760) at /test/10.8_dbg/storage/spider/spd_table.cc:9535
|
#1 0x000014fc90130e0b in ha_spider::check_direct_order_limit (this=this@entry=0x14fbd40d6760) at /test/10.8_dbg/storage/spider/ha_spider.cc:13105
|
#2 0x000014fc9013916e in ha_spider::index_read_map_internal (this=this@entry=0x14fbd40d6760, buf=buf@entry=0x14fbd40d62d8 "\370\061\001\060\223#\001", key=key@entry=0x14fc9ca859cf "", keypart_map=keypart_map@entry=18446744073709551615, find_flag=find_flag@entry=HA_READ_KEY_EXACT) at /test/10.8_dbg/storage/spider/ha_spider.cc:1918
|
#3 0x000014fc9013a429 in ha_spider::index_read_map (this=0x14fbd40d6760, buf=0x14fbd40d62d8 "\370\061\001\060\223#\001", key=0x14fc9ca859cf "", keypart_map=18446744073709551615, find_flag=HA_READ_KEY_EXACT) at /test/10.8_dbg/storage/spider/ha_spider.cc:2406
|
#4 0x000056458d69d77d in handler::ha_index_read_map (this=0x14fbd40d6760, buf=0x14fbd40d62d8 "\370\061\001\060\223#\001", key=key@entry=0x14fc9ca859cf "", keypart_map=keypart_map@entry=18446744073709551615, find_flag=find_flag@entry=HA_READ_KEY_EXACT) at /test/10.8_dbg/sql/handler.cc:3450
|
#5 0x000056458d6a72f0 in handler::check_duplicate_long_entry_key (this=this@entry=0x14fbd40d6760, new_rec=new_rec@entry=0x14fbd40d62d8 "\370\061\001\060\223#\001", key_no=key_no@entry=0) at /test/10.8_dbg/sql/handler.cc:7166
|
#6 0x000056458d6a7902 in handler::check_duplicate_long_entries (this=this@entry=0x14fbd40d6760, new_rec=new_rec@entry=0x14fbd40d62d8 "\370\061\001\060\223#\001") at /test/10.8_dbg/sql/handler.cc:7246
|
#7 0x000056458d6a857a in handler::ha_write_row (this=0x14fbd40d6760, buf=0x14fbd40d62d8 "\370\061\001\060\223#\001") at /test/10.8_dbg/sql/handler.cc:7508
|
#8 0x000056458d34706a in write_record (thd=thd@entry=0x14fbd4000db8, table=table@entry=0x14fbd40d5e88, info=info@entry=0x14fc9ca85ca0, sink=sink@entry=0x0) at /test/10.8_dbg/sql/sql_insert.cc:2156
|
#9 0x000056458d352cd9 in mysql_insert (thd=thd@entry=0x14fbd4000db8, table_list=0x14fbd4013eb0, fields=@0x14fbd4006078: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x56458e9cdb00 <end_of_list>, last = 0x14fbd4006078, elements = 0}, <No data fields>}, values_list=@0x14fbd40060c0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14fbd4014b48, last = 0x14fbd4014b48, elements = 1}, <No data fields>}, update_fields=@0x14fbd40060a8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x56458e9cdb00 <end_of_list>, last = 0x14fbd40060a8, elements = 0}, <No data fields>}, update_values=@0x14fbd4006090: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x56458e9cdb00 <end_of_list>, last = 0x14fbd4006090, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false, result=0x0) at /test/10.8_dbg/sql/sql_insert.cc:1127
|
#10 0x000056458d3993d3 in mysql_execute_command (thd=thd@entry=0x14fbd4000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.8_dbg/sql/sql_parse.cc:4563
|
#11 0x000056458d383e0f in mysql_parse (thd=thd@entry=0x14fbd4000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14fc9ca86400) at /test/10.8_dbg/sql/sql_parse.cc:8028
|
#12 0x000056458d392aab in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14fbd4000db8, packet=packet@entry=0x14fbd400b879 "INSERT INTO t VALUES (1,0)", packet_length=packet_length@entry=26, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_class.h:1360
|
#13 0x000056458d395eea in do_command (thd=0x14fbd4000db8, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_parse.cc:1402
|
#14 0x000056458d50f89c in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5645901f1d08, put_in_cache=put_in_cache@entry=true) at /test/10.8_dbg/sql/sql_connect.cc:1418
|
#15 0x000056458d50fea1 in handle_one_connection (arg=arg@entry=0x5645901f1d08) at /test/10.8_dbg/sql/sql_connect.cc:1312
|
#16 0x000056458d991442 in pfs_spawn_thread (arg=0x564590103908) at /test/10.8_dbg/storage/perfschema/pfs.cc:2201
|
#17 0x000014fca81fa609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#18 0x000014fca7de8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.14 (dbg), 10.5.14 (opt), 10.6.6 (dbg), 10.6.6 (opt), 10.7.2 (dbg), 10.7.2 (opt), 10.8.0 (dbg), 10.8.0 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.42 (dbg), 10.2.42 (opt), 10.3.33 (dbg), 10.3.33 (opt), 10.4.23 (dbg), 10.4.23 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.36 (dbg), 5.7.36 (opt), 8.0.27 (dbg), 8.0.27 (opt)
|