=================================================================
|
==14546==ERROR: AddressSanitizer: heap-use-after-free on address 0x6160023009d0 at pc 0x55f48b119001 bp 0x7fa9186a55f0 sp 0x7fa9186a55e8
|
READ of size 8 at 0x6160023009d0 thread T134
|
#0 0x55f48b119000 in post_kill_notification(THD*) /10.5/sql/scheduler.cc:103
|
#1 0x55f48abdbc86 in THD::awake_no_mutex(killed_state) /10.5/sql/sql_class.cc:1914
|
#2 0x55f48ad26bce in kill_one_thread(THD*, long long, killed_state, killed_type) /10.5/sql/sql_parse.cc:9185
|
#3 0x55f48ad2793b in sql_kill /10.5/sql/sql_parse.cc:9305
|
#4 0x55f48ad0e9ad in mysql_execute_command(THD*) /10.5/sql/sql_parse.cc:5494
|
#5 0x55f48ad1f453 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.5/sql/sql_parse.cc:7993
|
#6 0x55f48acf636c in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.5/sql/sql_parse.cc:1866
|
#7 0x55f48acf2c84 in do_command(THD*) /10.5/sql/sql_parse.cc:1347
|
#8 0x55f48b116f6c in do_handle_one_connection(CONNECT*, bool) /10.5/sql/sql_connect.cc:1411
|
#9 0x55f48b1168c9 in handle_one_connection /10.5/sql/sql_connect.cc:1313
|
#10 0x55f48bdcc37d in pfs_spawn_thread /10.5/storage/perfschema/pfs.cc:2201
|
#11 0x7fa979fc4fa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
|
#12 0x7fa9795cb4ce in clone (/lib/x86_64-linux-gnu/libc.so.6+0xf94ce)
|
|
0x6160023009d0 is located 592 bytes inside of 636-byte region [0x616002300780,0x6160023009fc)
|
freed by thread T133 here:
|
#0 0x7fa97a0c6fb0 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe8fb0)
|
#1 0x55f48ca27215 in free_memory /10.5/mysys/safemalloc.c:279
|
#2 0x55f48ca26843 in sf_free /10.5/mysys/safemalloc.c:197
|
#3 0x55f48c9f56cb in my_free /10.5/mysys/my_malloc.c:209
|
#4 0x55f48ba3d3aa in vio_delete /10.5/vio/vio.c:344
|
#5 0x55f48abd8fab in THD::free_connection() /10.5/sql/sql_class.cc:1610
|
#6 0x55f48aa09a3b in unlink_thd(THD*) /10.5/sql/mysqld.cc:2612
|
#7 0x55f48b1170b0 in do_handle_one_connection(CONNECT*, bool) /10.5/sql/sql_connect.cc:1422
|
#8 0x55f48b1168c9 in handle_one_connection /10.5/sql/sql_connect.cc:1313
|
#9 0x55f48bdcc37d in pfs_spawn_thread /10.5/storage/perfschema/pfs.cc:2201
|
#10 0x7fa979fc4fa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
|
|
previously allocated by thread T133 here:
|
#0 0x7fa97a0c7330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
|
#1 0x55f48ca26229 in sf_malloc /10.5/mysys/safemalloc.c:118
|
#2 0x55f48c9f491d in my_malloc /10.5/mysys/my_malloc.c:88
|
#3 0x55f48ba3cd01 in mysql_socket_vio_new /10.5/vio/vio.c:243
|
#4 0x55f48b117d29 in CONNECT::create_thd(THD*) /10.5/sql/sql_connect.cc:1536
|
#5 0x55f48b116b71 in do_handle_one_connection(CONNECT*, bool) /10.5/sql/sql_connect.cc:1357
|
#6 0x55f48b1168c9 in handle_one_connection /10.5/sql/sql_connect.cc:1313
|
#7 0x55f48bdcc37d in pfs_spawn_thread /10.5/storage/perfschema/pfs.cc:2201
|
#8 0x7fa979fc4fa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
|
|
Thread T134 created by T0 here:
|
#0 0x7fa97a02edb0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x50db0)
|
#1 0x55f48bdc7274 in my_thread_create /10.5/storage/perfschema/my_thread.h:34
|
#2 0x55f48bdcc76c in pfs_spawn_thread_v1 /10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55f48a9fef94 in inline_mysql_thread_create /10.5/include/mysql/psi/mysql_thread.h:1321
|
#4 0x55f48aa14646 in create_thread_to_handle_connection(CONNECT*) /10.5/sql/mysqld.cc:6020
|
#5 0x55f48aa14cb4 in create_new_thread(CONNECT*) /10.5/sql/mysqld.cc:6079
|
#6 0x55f48aa15018 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /10.5/sql/mysqld.cc:6144
|
#7 0x55f48aa15c57 in handle_connections_sockets() /10.5/sql/mysqld.cc:6271
|
#8 0x55f48aa13ead in mysqld_main(int, char**) /10.5/sql/mysqld.cc:5666
|
#9 0x55f48a9fd774 in main /10.5/sql/main.cc:25
|
#10 0x7fa9794f609a in __libc_start_main ../csu/libc-start.c:308
|
|
Thread T133 created by T0 here:
|
#0 0x7fa97a02edb0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x50db0)
|
#1 0x55f48bdc7274 in my_thread_create /10.5/storage/perfschema/my_thread.h:34
|
#2 0x55f48bdcc76c in pfs_spawn_thread_v1 /10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55f48a9fef94 in inline_mysql_thread_create /10.5/include/mysql/psi/mysql_thread.h:1321
|
#4 0x55f48aa14646 in create_thread_to_handle_connection(CONNECT*) /10.5/sql/mysqld.cc:6020
|
#5 0x55f48aa14cb4 in create_new_thread(CONNECT*) /10.5/sql/mysqld.cc:6079
|
#6 0x55f48aa15018 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /10.5/sql/mysqld.cc:6144
|
#7 0x55f48aa15c57 in handle_connections_sockets() /10.5/sql/mysqld.cc:6271
|
#8 0x55f48aa13ead in mysqld_main(int, char**) /10.5/sql/mysqld.cc:5666
|
#9 0x55f48a9fd774 in main /10.5/sql/main.cc:25
|
#10 0x7fa9794f609a in __libc_start_main ../csu/libc-start.c:308
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /10.5/sql/scheduler.cc:103 in post_kill_notification(THD*)
|
Shadow bytes around the buggy address:
|
0x0c2c804580e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c804580f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2c80458100: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2c80458110: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2c80458120: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
=>0x0c2c80458130: fd fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd
|
0x0c2c80458140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c80458150: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2c80458160: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2c80458170: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2c80458180: 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
|
==14546==ABORTING
|