|
CURRENT_TEST: main.opt_tvc
|
mysqltest: At line 77: query '$query' failed: 2013: Lost connection to MySQL server during query
|
|
The result from queries just before the failure was:
|
< snip >
|
3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
Warnings:
|
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where 1
|
explain extended select * from t1
|
where a in
|
(
|
select *
|
from (values (1),(2)) as tvc_0
|
);
|
id select_type table type possible_keys key key_len ref rows filtered Extra
|
1 PRIMARY t1 ALL NULL NULL NULL NULL 6 100.00
|
1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 100.00
|
2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 2 100.00
|
3 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
Warnings:
|
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0`) where 1
|
# AND-condition with IN-predicates in WHERE-part
|
select * from t1
|
where a in (1,2) and
|
b in (1,5);
|
|
More results from queries before failure can be found in /mysql-test/var/log/opt_tvc.log
|
|
|
Server [mysqld.1 - pid: 266702, winpid: 266702, exit: 256] failed during test run
|
Server log from this test:
|
----------SERVER LOG START-----------
|
2020-11-25 14:35:29 0 [Note] /sql/mariadbd (mysqld 10.5.9-MariaDB-debug-log) starting as process 266703 ...
|
2020-11-25 14:35:29 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32186)
|
2020-11-25 14:35:29 0 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 (was 151) table_cache: 421 (was 2000)
|
2020-11-25 14:35:29 0 [Warning] setrlimit could not change the size of core files to 'infinity'; We may not be able to generate a core file on signals
|
2020-11-25 14:35:29 0 [Note] Plugin 'partition' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'CONNECT' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'InnoDB' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_DATAFILES' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_BUFFER_PAGE' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_TRX' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_METRICS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_LOCK_WAITS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_CMP' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'THREAD_POOL_WAITS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'THREAD_POOL_QUEUES' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_LOCKS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'THREAD_POOL_GROUPS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_SYS_SEMAPHORE_WAITS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_MUTEXES' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'user_variables' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'THREAD_POOL_STATS' is disabled.
|
2020-11-25 14:35:29 0 [Note] Plugin 'unix_socket' is disabled.
|
2020-11-25 14:35:29 0 [Warning] /sql/mariadbd: unknown option '--loose-pam-debug'
|
2020-11-25 14:35:29 0 [Warning] /sql/mariadbd: unknown option '--loose-aria'
|
2020-11-25 14:35:29 0 [Note] Server socket created on IP: '127.0.0.1'.
|
2020-11-25 14:35:29 0 [Note] Reading of all Master_info entries succeeded
|
2020-11-25 14:35:29 0 [Note] Added new Master_info '' to hash table
|
2020-11-25 14:35:29 0 [Note] /sql/mariadbd: ready for connections.
|
Version: '10.5.9-MariaDB-debug-log' socket: '/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution
|
=================================================================
|
==266703==ERROR: AddressSanitizer: use-after-poison on address 0x62b0000383f0 at pc 0x562cfd62d214 bp 0x7f7535510c40 sp 0x7f7535510c30
|
WRITE of size 8 at 0x62b0000383f0 thread T5
|
#0 0x562cfd62d213 in Item_change_list::rollback_item_tree_changes() /src/sql/sql_class.cc:2921
|
#1 0x562cfd7be31a in Prepared_statement::cleanup_stmt() /src/sql/sql_prepare.cc:4090
|
#2 0x562cfd7c5ac7 in Prepared_statement::execute(String*, bool) /src/sql/sql_prepare.cc:5024
|
#3 0x562cfd7c0caa in Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) /src/sql/sql_prepare.cc:4460
|
#4 0x562cfd7ba02e in mysql_stmt_execute_common /src/sql/sql_prepare.cc:3448
|
#5 0x562cfd7b921d in mysqld_stmt_execute(THD*, char*, unsigned int) /src/sql/sql_prepare.cc:3229
|
#6 0x562cfd746fd2 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /src/sql/sql_parse.cc:1796
|
#7 0x562cfd744071 in do_command(THD*) /src/sql/sql_parse.cc:1353
|
#8 0x562cfdb8559d in do_handle_one_connection(CONNECT*, bool) /src/sql/sql_connect.cc:1410
|
#9 0x562cfdb84f01 in handle_one_connection /src/sql/sql_connect.cc:1312
|
#10 0x562cfe88fbc0 in pfs_spawn_thread /src/storage/perfschema/pfs.cc:2201
|
#11 0x7f7540ab1608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477
|
#12 0x7f7540687292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
|
|
0x62b0000383f0 is located 496 bytes inside of 24740-byte region [0x62b000038200,0x62b00003e2a4)
|
allocated by thread T5 here:
|
#0 0x7f75415cdbc8 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
|
#1 0x562cff856f97 in sf_malloc /src/mysys/safemalloc.c:118
|
#2 0x562cff82440b in my_malloc /src/mysys/my_malloc.c:88
|
#3 0x562cff7ff9b0 in reset_root_defaults /src/mysys/my_alloc.c:148
|
#4 0x562cfd620f62 in THD::init_for_queries() /src/sql/sql_class.cc:1409
|
#5 0x562cfdb84836 in prepare_new_connection_state(THD*) /src/sql/sql_connect.cc:1240
|
#6 0x562cfdb84f80 in thd_prepare_connection(THD*) /src/sql/sql_connect.cc:1333
|
#7 0x562cfdb854c8 in do_handle_one_connection(CONNECT*, bool) /src/sql/sql_connect.cc:1400
|
#8 0x562cfdb84f01 in handle_one_connection /src/sql/sql_connect.cc:1312
|
#9 0x562cfe88fbc0 in pfs_spawn_thread /src/storage/perfschema/pfs.cc:2201
|
#10 0x7f7540ab1608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477
|
|
Thread T5 created by T0 here:
|
#0 0x7f75414fa805 in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
|
#1 0x562cfe88ab64 in my_thread_create /src/storage/perfschema/my_thread.h:38
|
#2 0x562cfe88ffb3 in pfs_spawn_thread_v1 /src/storage/perfschema/pfs.cc:2252
|
#3 0x562cfd4393ce in inline_mysql_thread_create /src/include/mysql/psi/mysql_thread.h:1323
|
#4 0x562cfd44f3c1 in create_thread_to_handle_connection(CONNECT*) /src/sql/mysqld.cc:6022
|
#5 0x562cfd44fa40 in create_new_thread(CONNECT*) /src/sql/mysqld.cc:6081
|
#6 0x562cfd44fd9d in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /src/sql/mysqld.cc:6146
|
#7 0x562cfd4509cd in handle_connections_sockets() /src/sql/mysqld.cc:6273
|
#8 0x562cfd44ebbd in mysqld_main(int, char**) /src/sql/mysqld.cc:5668
|
#9 0x562cfd437c6c in main /src/sql/main.cc:25
|
#10 0x7f754058c0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
|
SUMMARY: AddressSanitizer: use-after-poison /src/sql/sql_class.cc:2921 in Item_change_list::rollback_item_tree_changes()
|
Shadow bytes around the buggy address:
|
0x0c567ffff020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c567ffff030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c567ffff040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c567ffff050: 00 00 00 00 f7 00 00 00 00 00 00 00 00 00 00 00
|
0x0c567ffff060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
=>0x0c567ffff070: 00 00 00 00 00 00 00 00 00 f7 00 00 f7 f7[f7]f7
|
0x0c567ffff080: 00 00 00 00 00 f7 00 00 00 00 00 00 00 00 00 00
|
0x0c567ffff090: 00 00 00 00 00 00 00 00 00 f7 00 f7 00 00 00 00
|
0x0c567ffff0a0: 00 00 00 f7 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c567ffff0b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c567ffff0c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
Left alloca redzone: ca
|
Right alloca redzone: cb
|
Shadow gap: cc
|
==266703==ABORTING
|