=================================================================
|
==48550==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d000b86148 at pc 0x55ad7536a37d bp 0x7f627de02ef0 sp 0x7f627de02ee8
|
READ of size 8 at 0x61d000b86148 thread T36
|
#0 0x55ad7536a37c in Item_field::used_tables() const /10.5/sql/item.cc:3410
|
#1 0x55ad749a9e58 in setup_fields(THD*, Bounds_checked_array<Item*>, List<Item>&, enum_column_usage, List<Item>*, List<Item>*, bool) /10.5/sql/sql_base.cc:7660
|
#2 0x55ad74e2faaf in setup_fields_with_no_wrap(THD*, Bounds_checked_array<Item*>, List<Item>&, enum_column_usage, List<Item>*, bool) /10.5/sql/sql_base.h:380
|
#3 0x55ad74e20fed in Multiupdate_prelocking_strategy::handle_end(THD*) /10.5/sql/sql_update.cc:1727
|
#4 0x55ad749963ea in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /10.5/sql/sql_base.cc:4386
|
#5 0x55ad74e12b8d in open_tables /10.5/sql/sql_base.h:263
|
#6 0x55ad74e2214d in mysql_multi_update_prepare(THD*) /10.5/sql/sql_update.cc:1868
|
#7 0x55ad74b26f5a in mysql_execute_command(THD*) /10.5/sql/sql_parse.cc:4483
|
#8 0x55ad74b3fc29 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.5/sql/sql_parse.cc:8063
|
#9 0x55ad74b16471 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.5/sql/sql_parse.cc:1889
|
#10 0x55ad74b12d7f in do_command(THD*) /10.5/sql/sql_parse.cc:1370
|
#11 0x55ad74f41809 in do_handle_one_connection(CONNECT*, bool) /10.5/sql/sql_connect.cc:1410
|
#12 0x55ad74f41166 in handle_one_connection /10.5/sql/sql_connect.cc:1312
|
#13 0x55ad75c080f9 in pfs_spawn_thread /10.5/storage/perfschema/pfs.cc:2201
|
#14 0x7f62a0cbffa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
|
#15 0x7f62a02c64ce in clone (/lib/x86_64-linux-gnu/libc.so.6+0xf94ce)
|
|
0x61d000b86148 is located 200 bytes inside of 2108-byte region [0x61d000b86080,0x61d000b868bc)
|
freed by thread T22 here:
|
#0 0x7f62a0dc1fb0 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe8fb0)
|
#1 0x55ad7686980a in free_memory /10.5/mysys/safemalloc.c:280
|
#2 0x55ad76868e38 in sf_free /10.5/mysys/safemalloc.c:198
|
#3 0x55ad76837e2c in my_free /10.5/mysys/my_malloc.c:211
|
#4 0x55ad76814b23 in free_root /10.5/mysys/my_alloc.c:410
|
#5 0x55ad74e66fea in closefrm(TABLE*) /10.5/sql/table.cc:4345
|
#6 0x55ad7514c9c9 in intern_close_table /10.5/sql/table_cache.cc:220
|
#7 0x55ad751548c2 in TDC_element::flush_unused(bool) /10.5/sql/table_cache.cc:1292
|
#8 0x55ad75154502 in TDC_element::flush(THD*, bool) /10.5/sql/table_cache.cc:1257
|
#9 0x55ad74985fc8 in wait_while_table_is_used(THD*, TABLE*, ha_extra_function) /10.5/sql/sql_base.cc:1316
|
#10 0x55ad74dc07b1 in simple_rename_or_index_change /10.5/sql/sql_table.cc:9679
|
#11 0x55ad74dc4e8f in mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool, bool) /10.5/sql/sql_table.cc:10352
|
#12 0x55ad74f5d389 in Sql_cmd_alter_table::execute(THD*) /10.5/sql/sql_alter.cc:539
|
#13 0x55ad74b326c4 in mysql_execute_command(THD*) /10.5/sql/sql_parse.cc:6024
|
#14 0x55ad74b3fc29 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.5/sql/sql_parse.cc:8063
|
#15 0x55ad74b16471 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.5/sql/sql_parse.cc:1889
|
#16 0x55ad74b12d7f in do_command(THD*) /10.5/sql/sql_parse.cc:1370
|
#17 0x55ad74f41809 in do_handle_one_connection(CONNECT*, bool) /10.5/sql/sql_connect.cc:1410
|
#18 0x55ad74f41166 in handle_one_connection /10.5/sql/sql_connect.cc:1312
|
#19 0x55ad75c080f9 in pfs_spawn_thread /10.5/storage/perfschema/pfs.cc:2201
|
#20 0x7f62a0cbffa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
|
|
previously allocated by thread T36 here:
|
#0 0x7f62a0dc2330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
|
#1 0x55ad7686881e in sf_malloc /10.5/mysys/safemalloc.c:121
|
#2 0x55ad7683707e in my_malloc /10.5/mysys/my_malloc.c:90
|
#3 0x55ad76813b97 in alloc_root /10.5/mysys/my_alloc.c:244
|
#4 0x55ad768151f3 in memdup_root /10.5/mysys/my_alloc.c:479
|
#5 0x55ad75272b06 in Field::clone(st_mem_root*, TABLE*) /10.5/sql/field.cc:2551
|
#6 0x55ad74e64371 in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /10.5/sql/table.cc:4025
|
#7 0x55ad7498973c in open_table(THD*, TABLE_LIST*, Open_table_context*) /10.5/sql/sql_base.cc:2001
|
#8 0x55ad749931bc in open_and_process_table /10.5/sql/sql_base.cc:3801
|
#9 0x55ad74995cfc in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /10.5/sql/sql_base.cc:4275
|
#10 0x55ad74e12b8d in open_tables /10.5/sql/sql_base.h:263
|
#11 0x55ad74e2214d in mysql_multi_update_prepare(THD*) /10.5/sql/sql_update.cc:1868
|
#12 0x55ad74b26f5a in mysql_execute_command(THD*) /10.5/sql/sql_parse.cc:4483
|
#13 0x55ad74b3fc29 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.5/sql/sql_parse.cc:8063
|
#14 0x55ad74b16471 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.5/sql/sql_parse.cc:1889
|
#15 0x55ad74b12d7f in do_command(THD*) /10.5/sql/sql_parse.cc:1370
|
#16 0x55ad74f41809 in do_handle_one_connection(CONNECT*, bool) /10.5/sql/sql_connect.cc:1410
|
#17 0x55ad74f41166 in handle_one_connection /10.5/sql/sql_connect.cc:1312
|
#18 0x55ad75c080f9 in pfs_spawn_thread /10.5/storage/perfschema/pfs.cc:2201
|
#19 0x7f62a0cbffa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
|
|
Thread T36 created by T0 here:
|
#0 0x7f62a0d29db0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x50db0)
|
#1 0x55ad75c02ff0 in my_thread_create /10.5/storage/perfschema/my_thread.h:38
|
#2 0x55ad75c084e8 in pfs_spawn_thread_v1 /10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55ad7481ad6c in inline_mysql_thread_create /10.5/include/mysql/psi/mysql_thread.h:1323
|
#4 0x55ad748302a1 in create_thread_to_handle_connection(CONNECT*) /10.5/sql/mysqld.cc:6012
|
#5 0x55ad7483090f in create_new_thread(CONNECT*) /10.5/sql/mysqld.cc:6071
|
#6 0x55ad74830c73 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /10.5/sql/mysqld.cc:6136
|
#7 0x55ad748318b2 in handle_connections_sockets() /10.5/sql/mysqld.cc:6263
|
#8 0x55ad7482fb08 in mysqld_main(int, char**) /10.5/sql/mysqld.cc:5658
|
#9 0x55ad74819774 in main /10.5/sql/main.cc:25
|
#10 0x7f62a01f109a in __libc_start_main ../csu/libc-start.c:308
|
|
Thread T22 created by T0 here:
|
#0 0x7f62a0d29db0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x50db0)
|
#1 0x55ad75c02ff0 in my_thread_create /10.5/storage/perfschema/my_thread.h:38
|
#2 0x55ad75c084e8 in pfs_spawn_thread_v1 /10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55ad7481ad6c in inline_mysql_thread_create /10.5/include/mysql/psi/mysql_thread.h:1323
|
#4 0x55ad748302a1 in create_thread_to_handle_connection(CONNECT*) /10.5/sql/mysqld.cc:6012
|
#5 0x55ad7483090f in create_new_thread(CONNECT*) /10.5/sql/mysqld.cc:6071
|
#6 0x55ad74830c73 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /10.5/sql/mysqld.cc:6136
|
#7 0x55ad748318b2 in handle_connections_sockets() /10.5/sql/mysqld.cc:6263
|
#8 0x55ad7482fb08 in mysqld_main(int, char**) /10.5/sql/mysqld.cc:5658
|
#9 0x55ad74819774 in main /10.5/sql/main.cc:25
|
#10 0x7f62a01f109a in __libc_start_main ../csu/libc-start.c:308
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /10.5/sql/item.cc:3410 in Item_field::used_tables() const
|
Shadow bytes around the buggy address:
|
0x0c3a80168bd0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c3a80168be0: fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa
|
0x0c3a80168bf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c3a80168c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c3a80168c10: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
=>0x0c3a80168c20: fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd fd
|
0x0c3a80168c30: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c3a80168c40: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c3a80168c50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c3a80168c60: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c3a80168c70: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
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
|
==48550==ABORTING
|