==31430==ERROR: AddressSanitizer: use-after-poison on address 0x6250000e7a58 at pc 0x55c409bba3fa bp 0x7f88f643fe00 sp 0x7f88f643fdf8
|
WRITE of size 8 at 0x6250000e7a58 thread T5
|
#0 0x55c409bba3f9 in sp_head::~sp_head() /data/src/10.4/sql/sp_head.cc:820
|
#1 0x55c409bba659 in sp_head::~sp_head() /data/src/10.4/sql/sp_head.cc:832
|
#2 0x55c409d604e0 in LEX::cleanup_lex_after_parse_error(THD*) /data/src/10.4/sql/sql_lex.cc:3138
|
#3 0x55c40a3afcf3 in MYSQLparse(THD*) /data/src/10.4/sql/sql_yacc.yy:16264
|
#4 0x55c409df0d52 in parse_sql(THD*, Parser_state*, Object_creation_ctx*, bool) /data/src/10.4/sql/sql_parse.cc:10184
|
#5 0x55c409de440c in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.4/sql/sql_parse.cc:8110
|
#6 0x55c409dbd56a in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.4/sql/sql_parse.cc:1829
|
#7 0x55c409dba4d9 in do_command(THD*) /data/src/10.4/sql/sql_parse.cc:1362
|
#8 0x55c40a12df90 in do_handle_one_connection(CONNECT*) /data/src/10.4/sql/sql_connect.cc:1403
|
#9 0x55c40a12d959 in handle_one_connection /data/src/10.4/sql/sql_connect.cc:1306
|
#10 0x55c40b4ccf71 in pfs_spawn_thread /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#11 0x7f8900c4b4a3 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x74a3)
|
#12 0x7f88ff193d0e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe8d0e)
|
|
0x6250000e7a58 is located 6488 bytes inside of 8268-byte region [0x6250000e6100,0x6250000e814c)
|
allocated by thread T5 here:
|
#0 0x7f8900f22d28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
|
#1 0x55c40b5f1eb8 in sf_malloc /data/src/10.4/mysys/safemalloc.c:118
|
#2 0x55c40b5c4159 in my_malloc /data/src/10.4/mysys/my_malloc.c:101
|
#3 0x55c40b5a46f8 in alloc_root /data/src/10.4/mysys/my_alloc.c:250
|
#4 0x55c409b40c49 in Sql_alloc::operator new(unsigned long, st_mem_root*) /data/src/10.4/sql/sql_alloc.h:39
|
#5 0x55c409bc2d15 in sp_head::reset_lex(THD*) /data/src/10.4/sql/sp_head.cc:2402
|
#6 0x55c40a34b886 in sp_create_assignment_lex(THD*, bool) /data/src/10.4/sql/sql_yacc.yy:520
|
#7 0x55c40a3afa39 in MYSQLparse(THD*) /data/src/10.4/sql/sql_yacc.yy:16220
|
#8 0x55c409df0d52 in parse_sql(THD*, Parser_state*, Object_creation_ctx*, bool) /data/src/10.4/sql/sql_parse.cc:10184
|
#9 0x55c409de440c in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.4/sql/sql_parse.cc:8110
|
#10 0x55c409dbd56a in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.4/sql/sql_parse.cc:1829
|
#11 0x55c409dba4d9 in do_command(THD*) /data/src/10.4/sql/sql_parse.cc:1362
|
#12 0x55c40a12df90 in do_handle_one_connection(CONNECT*) /data/src/10.4/sql/sql_connect.cc:1403
|
#13 0x55c40a12d959 in handle_one_connection /data/src/10.4/sql/sql_connect.cc:1306
|
#14 0x55c40b4ccf71 in pfs_spawn_thread /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#15 0x7f8900c4b4a3 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x74a3)
|
|
Thread T5 created by T0 here:
|
#0 0x7f8900e91f59 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x30f59)
|
#1 0x55c40b4cd35e in spawn_thread_v1 /data/src/10.4/storage/perfschema/pfs.cc:1912
|
#2 0x55c409b21908 in inline_mysql_thread_create /data/src/10.4/include/mysql/psi/mysql_thread.h:1268
|
#3 0x55c409b35a5d in create_thread_to_handle_connection(CONNECT*) /data/src/10.4/sql/mysqld.cc:6238
|
#4 0x55c409b36154 in create_new_thread(CONNECT*) /data/src/10.4/sql/mysqld.cc:6308
|
#5 0x55c409b364df in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /data/src/10.4/sql/mysqld.cc:6406
|
#6 0x55c409b37140 in handle_connections_sockets() /data/src/10.4/sql/mysqld.cc:6564
|
#7 0x55c409b352a1 in mysqld_main(int, char**) /data/src/10.4/sql/mysqld.cc:5896
|
#8 0x55c409b1f7ef in main /data/src/10.4/sql/main.cc:25
|
#9 0x7f88ff0cb2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
|
|
SUMMARY: AddressSanitizer: use-after-poison /data/src/10.4/sql/sp_head.cc:820 in sp_head::~sp_head()
|
Shadow bytes around the buggy address:
|
0x0c4a80014ef0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f00: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f10: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f20: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f30: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
=>0x0c4a80014f40: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7[f7]f7 f7 f7 f7
|
0x0c4a80014f50: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f60: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f70: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f80: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c4a80014f90: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
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
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
Left alloca redzone: ca
|
Right alloca redzone: cb
|
==31430==ABORTING
|