==678==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000001f68 at pc 0x55b15f0b96b9 bp 0x7faee51fec50 sp 0x7faee51fec48
|
READ of size 4 at 0x606000001f68 thread T5
|
#0 0x55b15f0b96b8 in find_table_for_mdl_upgrade(THD*, char const*, char const*, int*) /data/src/10.4/sql/sql_base.cc:2258
|
#1 0x55b15f0c51a1 in open_tables_check_upgradable_mdl /data/src/10.4/sql/sql_base.cc:4103
|
#2 0x55b15f0c51a1 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/src/10.4/sql/sql_base.cc:4213
|
#3 0x55b15f3c983c in open_tables /data/src/10.4/sql/sql_base.h:257
|
#4 0x55b15f3c983c 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) /data/src/10.4/sql/sql_table.cc:9086
|
#5 0x55b15f4c6bee in Sql_cmd_alter_table::execute(THD*) /data/src/10.4/sql/sql_alter.cc:497
|
#6 0x55b15f1ee1ed in mysql_execute_command(THD*) /data/src/10.4/sql/sql_parse.cc:6302
|
#7 0x55b15f205bdd in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.4/sql/sql_parse.cc:8104
|
#8 0x55b15f20eced in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.4/sql/sql_parse.cc:1851
|
#9 0x55b15f211695 in do_command(THD*) /data/src/10.4/sql/sql_parse.cc:1396
|
#10 0x55b15f4bd7b7 in do_handle_one_connection(CONNECT*) /data/src/10.4/sql/sql_connect.cc:1402
|
#11 0x55b15f4bdcba in handle_one_connection /data/src/10.4/sql/sql_connect.cc:1308
|
#12 0x55b15fe7f296 in pfs_spawn_thread /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#13 0x7faef1529493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
|
#14 0x7faeefb2a93e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe893e)
|
|
0x606000001f68 is located 40 bytes inside of 64-byte region [0x606000001f40,0x606000001f80)
|
freed by thread T5 here:
|
#0 0x7faef1794477 in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x55477)
|
#1 0x55b15f4d540c in MDL_context::release_all_locks_for_name(MDL_ticket*) /data/src/10.4/sql/mdl.cc:2911
|
|
previously allocated by thread T5 here:
|
#0 0x7faef179423f in operator new(unsigned long, std::nothrow_t const&) (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5523f)
|
#1 0x55b15f4ce4eb in MDL_ticket::create(MDL_context*, enum_mdl_type) /data/src/10.4/sql/mdl.cc:1011
|
|
Thread T5 created by T0 here:
|
#0 0x7faef1762bba in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x23bba)
|
#1 0x55b15fe879b6 in spawn_thread_v1 /data/src/10.4/storage/perfschema/pfs.cc:1912
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /data/src/10.4/sql/sql_base.cc:2258 find_table_for_mdl_upgrade(THD*, char const*, char const*, int*)
|
Shadow bytes around the buggy address:
|
0x0c0c7fff8390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c0c7fff83a0: fa fa fa fa fa fa fa fa fa fa fa fa fd fd fd fd
|
0x0c0c7fff83b0: fd fd fd fd fa fa fa fa 00 00 00 00 00 00 00 00
|
0x0c0c7fff83c0: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
|
0x0c0c7fff83d0: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
|
=>0x0c0c7fff83e0: 00 00 00 00 fa fa fa fa fd fd fd fd fd[fd]fd fd
|
0x0c0c7fff83f0: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
|
0x0c0c7fff8400: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd
|
0x0c0c7fff8410: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd
|
0x0c0c7fff8420: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
|
0x0c0c7fff8430: fd fd fd fd fd fd fd fd fa fa fa fa 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
|
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
|
==678==ABORTING
|