Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
N/A
-
None
Description
Note: see also MDEV-13541
CREATE TABLE t1 (c1 VARCHAR(1000) COMPRESSED) ENGINE=MyISAM; |
INSERT IGNORE INTO t1 VALUES ('foo'),('bar'); |
|
CREATE TABLE t2 (c2 VARCHAR(1000) COMPRESSED) ENGINE=MyISAM; # Compression is optional |
INSERT IGNORE INTO t2 VALUES ('qux'),('abc'); # Optional |
|
SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 ); |
|
# Cleanup
|
DROP TABLE t1, t2; |
bb-10.3-svoj f1a3cd40ecc4c debug |
Version: '10.3.1-MariaDB-debug-log' socket: '/data/src/bb-10.3-svoj/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution
|
mysqld: /data/src/bb-10.3-svoj/sql/field.h:3222: virtual Field* Field_varstring_compressed::new_key_field(MEM_ROOT*, TABLE*, uchar*, uint32, uchar*, uint): Assertion `0' failed.
|
170816 0:58:27 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fa16bf38ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055ef4a835ed3 in Field_varstring_compressed::new_key_field (this=0x7fa15417cb18, root=0x7fa154005b98, new_table=0x7fa15403aab8, new_ptr=0x7fa15417b9d9 "", length=1001, new_null_ptr=0x7fa15417b9d8 "", new_null_bit=1) at /data/src/bb-10.3-svoj/sql/field.h:3222
|
#9 0x000055ef4a62564b in store_key::store_key (this=0x7fa15417c1d0, thd=0x7fa154000b00, field_arg=0x7fa15417cb18, ptr=0x7fa15417b9d9 "", null=0x7fa15417b9d8 "", length=1001) at /data/src/bb-10.3-svoj/sql/sql_select.h:1742
|
#10 0x000055ef4a625ae3 in store_key_item::store_key_item (this=0x7fa15417c1d0, thd=0x7fa154000b00, to_field_arg=0x7fa15417cb18, ptr=0x7fa15417b9d9 "", null_ptr_arg=0x7fa15417b9d8 "", length=1001, item_arg=0x7fa154015140, val=true) at /data/src/bb-10.3-svoj/sql/sql_select.h:1852
|
#11 0x000055ef4a5fb9bc in st_table_ref::tmp_table_index_lookup_init (this=0x7fa15417b200, thd=0x7fa154000b00, tmp_key=0x7fa15417cc00, it=..., value=true, skip=1) at /data/src/bb-10.3-svoj/sql/sql_select.cc:11844
|
#12 0x000055ef4a74663d in Expression_cache_tmptable::init (this=0x7fa15417b148) at /data/src/bb-10.3-svoj/sql/sql_expression_cache.cc:146
|
#13 0x000055ef4a86dfe0 in Item_cache_wrapper::init_on_demand (this=0x7fa15417afe0) at /data/src/bb-10.3-svoj/sql/item.cc:8284
|
#14 0x000055ef4a86e498 in Item_cache_wrapper::check_cache (this=0x7fa15417afe0) at /data/src/bb-10.3-svoj/sql/item.cc:8408
|
#15 0x000055ef4a86ed3c in Item_cache_wrapper::val_bool (this=0x7fa15417afe0) at /data/src/bb-10.3-svoj/sql/item.cc:8582
|
#16 0x000055ef4a87f37a in Item_func_not::val_int (this=0x7fa154016a30) at /data/src/bb-10.3-svoj/sql/item_cmpfunc.cc:225
|
#17 0x000055ef4a60bb61 in evaluate_join_record (join=0x7fa154016c00, join_tab=0x7fa154018d68, error=0) at /data/src/bb-10.3-svoj/sql/sql_select.cc:18520
|
#18 0x000055ef4a60b79b in sub_select (join=0x7fa154016c00, join_tab=0x7fa154018d68, end_of_records=false) at /data/src/bb-10.3-svoj/sql/sql_select.cc:18425
|
#19 0x000055ef4a60ad33 in do_select (join=0x7fa154016c00, procedure=0x0) at /data/src/bb-10.3-svoj/sql/sql_select.cc:17965
|
#20 0x000055ef4a5e5941 in JOIN::exec_inner (this=0x7fa154016c00) at /data/src/bb-10.3-svoj/sql/sql_select.cc:3470
|
#21 0x000055ef4a5e4e44 in JOIN::exec (this=0x7fa154016c00) at /data/src/bb-10.3-svoj/sql/sql_select.cc:3273
|
#22 0x000055ef4a5e5fb9 in mysql_select (thd=0x7fa154000b00, tables=0x7fa154014b18, wild_num=1, fields=..., conds=0x7fa154016a30, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fa154016be0, unit=0x7fa1540046b8, select_lex=0x7fa154004df0) at /data/src/bb-10.3-svoj/sql/sql_select.cc:3665
|
#23 0x000055ef4a5daa6e in handle_select (thd=0x7fa154000b00, lex=0x7fa1540045f0, result=0x7fa154016be0, setup_tables_done_option=0) at /data/src/bb-10.3-svoj/sql/sql_select.cc:373
|
#24 0x000055ef4a5a6f1b in execute_sqlcom_select (thd=0x7fa154000b00, all_tables=0x7fa154014b18) at /data/src/bb-10.3-svoj/sql/sql_parse.cc:6450
|
#25 0x000055ef4a59d2cf in mysql_execute_command (thd=0x7fa154000b00) at /data/src/bb-10.3-svoj/sql/sql_parse.cc:3574
|
#26 0x000055ef4a5aa90d in mysql_parse (thd=0x7fa154000b00, rawbuf=0x7fa1540148d8 "SELECT * FROM t1 WHERE c1 NOT IN ( SELECT c2 FROM t2 WHERE c2 = c1 )", length=68, parser_state=0x7fa1661fc210, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-svoj/sql/sql_parse.cc:7897
|
#27 0x000055ef4a598687 in dispatch_command (command=COM_QUERY, thd=0x7fa154000b00, packet=0x7fa15416abd1 "", packet_length=68, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-svoj/sql/sql_parse.cc:1814
|
#28 0x000055ef4a59702b in do_command (thd=0x7fa154000b00) at /data/src/bb-10.3-svoj/sql/sql_parse.cc:1377
|
#29 0x000055ef4a6e2f31 in do_handle_one_connection (connect=0x55ef4e630cc0) at /data/src/bb-10.3-svoj/sql/sql_connect.cc:1354
|
#30 0x000055ef4a6e2cbe in handle_one_connection (arg=0x55ef4e630cc0) at /data/src/bb-10.3-svoj/sql/sql_connect.cc:1260
|
#31 0x000055ef4ab3be29 in pfs_spawn_thread (arg=0x55ef4e5784a0) at /data/src/bb-10.3-svoj/storage/perfschema/pfs.cc:1862
|
#32 0x00007fa16dc72494 in start_thread (arg=0x7fa1661fd700) at pthread_create.c:333
|
#33 0x00007fa16bff593f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
bb-10.3-svoj f1a3cd40ecc4c non-debug |
#2 <signal handler called>
|
#3 0x0000561f3d8831a9 in copy (this=0x7f787c08f198) at /data/src/bb-10.3-svoj-rel/sql/sql_select.h:1763
|
#4 cp_buffer_from_ref (thd=thd@entry=0x7f787c0009a8, table=table@entry=0x7f787c093bb0, ref=ref@entry=0x7f787c08e1d0) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:21954
|
#5 0x0000561f3d883b7a in cmp_buffer_with_ref (tab_ref=0x7f787c08e1d0, table=0x7f787c093bb0, thd=0x7f787c0009a8) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:21936
|
#6 join_read_key2 (thd=0x7f787c0009a8, tab=tab@entry=0x0, table=0x7f787c093bb0, table_ref=table_ref@entry=0x7f787c08e1d0) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:19077
|
#7 0x0000561f3d94a42d in Expression_cache_tmptable::check_value (this=0x7f787c08e118, value=0x7f789909b558) at /data/src/bb-10.3-svoj-rel/sql/sql_expression_cache.cc:220
|
#8 0x0000561f3da172b9 in Item_cache_wrapper::check_cache (this=this@entry=0x7f787c08dfb0) at /data/src/bb-10.3-svoj-rel/sql/item.cc:8409
|
#9 0x0000561f3da1770c in Item_cache_wrapper::val_bool (this=0x7f787c08dfb0) at /data/src/bb-10.3-svoj-rel/sql/item.cc:8582
|
#10 0x0000561f3da200a7 in Item_func_not::val_int (this=0x7f787c0133d8) at /data/src/bb-10.3-svoj-rel/sql/item_cmpfunc.cc:225
|
#11 0x0000561f3d86b7d8 in evaluate_join_record (join=join@entry=0x7f787c0135a8, join_tab=join_tab@entry=0x7f787c015710, error=<optimized out>) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:18520
|
#12 0x0000561f3d874dab in sub_select (join=0x7f787c0135a8, join_tab=0x7f787c015710, end_of_records=<optimized out>) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:18425
|
#13 0x0000561f3d895aef in do_select (procedure=<optimized out>, join=0x7f787c0135a8) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:17965
|
#14 JOIN::exec_inner (this=this@entry=0x7f787c0135a8) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:3470
|
#15 0x0000561f3d895d89 in JOIN::exec (this=this@entry=0x7f787c0135a8) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:3273
|
#16 0x0000561f3d895ecb in mysql_select (thd=thd@entry=0x7f787c0009a8, tables=0x7f787c0114c0, wild_num=1, fields=..., conds=0x7f787c0133d8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f787c013588, unit=0x7f787c004420, select_lex=0x7f787c004b58) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:3665
|
#17 0x0000561f3d8968d0 in handle_select (thd=thd@entry=0x7f787c0009a8, lex=lex@entry=0x7f787c004358, result=result@entry=0x7f787c013588, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/src/bb-10.3-svoj-rel/sql/sql_select.cc:373
|
#18 0x0000561f3d83a906 in execute_sqlcom_select (thd=0x7f787c0009a8, all_tables=0x7f787c0114c0) at /data/src/bb-10.3-svoj-rel/sql/sql_parse.cc:6450
|
#19 0x0000561f3d846bed in mysql_execute_command (thd=0x7f787c0009a8) at /data/src/bb-10.3-svoj-rel/sql/sql_parse.cc:3574
|
#20 0x0000561f3d84a1cf in mysql_parse (thd=0x7f787c0009a8, rawbuf=<optimized out>, length=<optimized out>, parser_state=0x7f789909d250, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /data/src/bb-10.3-svoj-rel/sql/sql_parse.cc:7897
|
#21 0x0000561f3d84cd6b in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f787c0009a8, packet=packet@entry=0x7f787c008f19 "", packet_length=packet_length@entry=68, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/bb-10.3-svoj-rel/sql/sql_parse.cc:1814
|
#22 0x0000561f3d84d5c7 in do_command (thd=0x7f787c0009a8) at /data/src/bb-10.3-svoj-rel/sql/sql_parse.cc:1377
|
#23 0x0000561f3d9112f4 in do_handle_one_connection (connect=connect@entry=0x561f4085a688) at /data/src/bb-10.3-svoj-rel/sql/sql_connect.cc:1354
|
#24 0x0000561f3d911494 in handle_one_connection (arg=arg@entry=0x561f4085a688) at /data/src/bb-10.3-svoj-rel/sql/sql_connect.cc:1260
|
#25 0x0000561f3dc07794 in pfs_spawn_thread (arg=0x561f408d3b48) at /data/src/bb-10.3-svoj-rel/storage/perfschema/pfs.cc:1862
|
#26 0x00007f78a0a45494 in start_thread (arg=0x7f789909e700) at pthread_create.c:333
|
#27 0x00007f789edc893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Attachments
Issue Links
- blocks
-
MDEV-11371 Big column compressed
- Closed
- relates to
-
MDEV-13342 Testing for MDEV-11371 (Big column compressed)
- Closed
-
MDEV-13541 Server crashes in next_breadth_first_tab or Assertion `0' failed in Field_varstring_compressed::new_key_field
- Closed
-
MDEV-16808 Server crash in in JOIN_CACHE_HASHED::put_record or Assertion `0' failed in Field_blob_compressed::new_key_field or Assertion `length > 0' failed in create_ref_for_key or SIGSEGV in store_key::copy, with join_cache_level>2
- Confirmed
-
MDEV-21005 Assertion `0' failed in Field_blob_compressed::new_key_field
- Closed