==4089==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62d000224471 at pc 0x557ede71c472 bp 0x7fa1ece4d1a0 sp 0x7fa1ece4d198
|
READ of size 1 at 0x62d000224471 thread T27
|
#0 0x557ede71c471 in Item_exists_subselect::is_top_level_item() /data/src/10.3/sql/item_subselect.h:411
|
#1 0x557edeaa885e in Item_in_optimizer::is_top_level_item() /data/src/10.3/sql/item_cmpfunc.cc:1164
|
#2 0x557edeaa89f9 in Item_in_optimizer::eval_not_null_tables(void*) /data/src/10.3/sql/item_cmpfunc.cc:1183
|
#3 0x557ede1b3a4b in Item_func_or_sum::walk(bool (Item::*)(void*), bool, void*) /data/src/10.3/sql/item.h:4698
|
#4 0x557edeaca82e in Item_cond::walk(bool (Item::*)(void*), bool, void*) /data/src/10.3/sql/item_cmpfunc.cc:4744
|
#5 0x557ede28e0af in st_select_lex::update_used_tables() /data/src/10.3/sql/sql_lex.cc:4443
|
#6 0x557ede28ba9a in st_select_lex::optimize_unflattened_subqueries(bool) /data/src/10.3/sql/sql_lex.cc:4044
|
#7 0x557ede71711e in JOIN::optimize_constant_subqueries() /data/src/10.3/sql/opt_subselect.cc:5325
|
#8 0x557ede37cb85 in JOIN::optimize_inner() /data/src/10.3/sql/sql_select.cc:1645
|
#9 0x557ede37b1f9 in JOIN::optimize() /data/src/10.3/sql/sql_select.cc:1451
|
#10 0x557ede395b15 in mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /data/src/10.3/sql/sql_select.cc:4225
|
#11 0x557ede370820 in handle_select(THD*, LEX*, select_result*, unsigned long) /data/src/10.3/sql/sql_select.cc:385
|
#12 0x557ede2f3951 in execute_sqlcom_select /data/src/10.3/sql/sql_parse.cc:6548
|
#13 0x557ede2e21c9 in mysql_execute_command(THD*) /data/src/10.3/sql/sql_parse.cc:3821
|
#14 0x557ede2fc74f in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.3/sql/sql_parse.cc:8091
|
#15 0x557ede2d6877 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.3/sql/sql_parse.cc:1857
|
#16 0x557ede2d38cd in do_command(THD*) /data/src/10.3/sql/sql_parse.cc:1403
|
#17 0x557ede647461 in do_handle_one_connection(CONNECT*) /data/src/10.3/sql/sql_connect.cc:1402
|
#18 0x557ede646e6d in handle_one_connection /data/src/10.3/sql/sql_connect.cc:1308
|
#19 0x557edf17d649 in pfs_spawn_thread /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#20 0x7fa1f8b9d493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
|
#21 0x7fa1f6b6593e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe893e)
|
|
0x62d000224471 is located 77 bytes to the right of 32804-byte region [0x62d00021c400,0x62d000224424)
|
allocated by thread T27 here:
|
#0 0x7fa1f8e0773f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5473f)
|
#1 0x557edfb2d199 in sf_malloc /data/src/10.3/mysys/safemalloc.c:118
|
#2 0x557edfafda94 in my_malloc /data/src/10.3/mysys/my_malloc.c:101
|
#3 0x557edfadd340 in alloc_root /data/src/10.3/mysys/my_alloc.c:250
|
#4 0x557ede434466 in Sql_alloc::operator new[](unsigned long, st_mem_root*) /data/src/10.3/sql/sql_alloc.h:37
|
#5 0x557ede3e8cf7 in create_tmp_table(THD*, TMP_TABLE_PARAM*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long long, st_mysql_const_lex_string const*, bool, bool) /data/src/10.3/sql/sql_select.cc:17270
|
#6 0x557ede53428d in select_unit::create_result_table(THD*, List<Item>*, bool, unsigned long long, st_mysql_const_lex_string const*, bool, bool, bool, unsigned int) /data/src/10.3/sql/sql_union.cc:375
|
#7 0x557ede2313b7 in mysql_derived_prepare(THD*, LEX*, TABLE_LIST*) /data/src/10.3/sql/sql_derived.cc:773
|
#8 0x557ede22e4cb in mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int) /data/src/10.3/sql/sql_derived.cc:199
|
#9 0x557ede5af560 in TABLE_LIST::handle_derived(LEX*, unsigned int) /data/src/10.3/sql/table.cc:8189
|
#10 0x557ede26c68c in LEX::handle_list_of_derived(TABLE_LIST*, unsigned int) /data/src/10.3/sql/sql_lex.h:3970
|
#11 0x557ede28bf16 in st_select_lex::handle_derived(LEX*, unsigned int) /data/src/10.3/sql/sql_lex.cc:4100
|
#12 0x557ede3761a1 in JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) /data/src/10.3/sql/sql_select.cc:1000
|
#13 0x557edec00d1f in subselect_single_select_engine::prepare(THD*) /data/src/10.3/sql/item_subselect.cc:3683
|
#14 0x557edebe0a67 in Item_subselect::fix_fields(THD*, Item**) /data/src/10.3/sql/item_subselect.cc:276
|
#15 0x557edebfd576 in Item_exists_subselect::fix_fields(THD*, Item**) /data/src/10.3/sql/item_subselect.cc:3270
|
#16 0x557ede0a872c in Item::fix_fields_if_needed(THD*, Item**) /data/src/10.3/sql/item.h:824
|
#17 0x557ede0a875a in Item::fix_fields_if_needed_for_scalar(THD*, Item**) (/data/bld/10.3-asan/bin/mysqld+0xc1675a)
|
#18 0x557ede1b295c in Item::fix_fields_if_needed_for_bool(THD*, Item**) /data/src/10.3/sql/item.h:832
|
#19 0x557edeac9274 in Item_cond::fix_fields(THD*, Item**) /data/src/10.3/sql/item_cmpfunc.cc:4605
|
#20 0x557ede0a872c in Item::fix_fields_if_needed(THD*, Item**) /data/src/10.3/sql/item.h:824
|
#21 0x557ede0a875a in Item::fix_fields_if_needed_for_scalar(THD*, Item**) (/data/bld/10.3-asan/bin/mysqld+0xc1675a)
|
#22 0x557ede1b295c in Item::fix_fields_if_needed_for_bool(THD*, Item**) /data/src/10.3/sql/item.h:832
|
#23 0x557ede1aac6a in setup_conds(THD*, TABLE_LIST*, List<TABLE_LIST>&, Item**) /data/src/10.3/sql/sql_base.cc:8191
|
#24 0x557ede37249b in setup_without_group /data/src/10.3/sql/sql_select.cc:649
|
#25 0x557ede37751a in JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) /data/src/10.3/sql/sql_select.cc:1113
|
#26 0x557edec00d1f in subselect_single_select_engine::prepare(THD*) /data/src/10.3/sql/item_subselect.cc:3683
|
#27 0x557edebe0a67 in Item_subselect::fix_fields(THD*, Item**) /data/src/10.3/sql/item_subselect.cc:276
|
#28 0x557edebfdfd1 in Item_in_subselect::fix_fields(THD*, Item**) /data/src/10.3/sql/item_subselect.cc:3336
|
#29 0x557ede0a872c in Item::fix_fields_if_needed(THD*, Item**) /data/src/10.3/sql/item.h:824
|
|
Thread T27 created by T0 here:
|
#0 0x7fa1f8dd6bba in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x23bba)
|
#1 0x557edf17dc11 in spawn_thread_v1 /data/src/10.3/storage/perfschema/pfs.cc:1912
|
#2 0x557ede03eef8 in inline_mysql_thread_create /data/src/10.3/include/mysql/psi/mysql_thread.h:1268
|
#3 0x557ede05488e in create_thread_to_handle_connection(CONNECT*) /data/src/10.3/sql/mysqld.cc:6589
|
#4 0x557ede054f93 in create_new_thread /data/src/10.3/sql/mysqld.cc:6659
|
#5 0x557ede055faa in handle_connections_sockets() /data/src/10.3/sql/mysqld.cc:6934
|
#6 0x557ede053d4b in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6211
|
#7 0x557ede03cf7f in main /data/src/10.3/sql/main.cc:25
|
#8 0x7fa1f6a9d2b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
|
|
SUMMARY: AddressSanitizer: heap-buffer-overflow /data/src/10.3/sql/item_subselect.h:411 Item_exists_subselect::is_top_level_item()
|
Shadow bytes around the buggy address:
|
0x0c5a8003c830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c5a8003c840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c5a8003c850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c5a8003c860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c5a8003c870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
=>0x0c5a8003c880: 00 f7 f7 f7 04 fa fa fa fa fa fa fa fa fa[fa]fa
|
0x0c5a8003c890: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5a8003c8a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5a8003c8b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5a8003c8c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5a8003c8d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
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
|
Heap right redzone: fb
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack partial redzone: f4
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Contiguous container OOB:fc
|
ASan internal: fe
|
==4089==ABORTING
|