==4105417==ERROR: AddressSanitizer: heap-use-after-free on address 0x6210001132a0 at pc 0x151c68d0b5ff bp 0x151c68fb05c0 sp 0x151c68fb05b0
|
READ of size 8 at 0x6210001132a0 thread T14
|
#0 0x151c68d0b5fe in federatedx_txn::txn_rollback() /test/10.11_opt_san/storage/federatedx/federatedx_txn.cc:270
|
#1 0x55b5f3be7b2d in ha_rollback_trans(THD*, bool) /test/10.11_opt_san/sql/handler.cc:2180
|
#2 0x55b5f36b8574 in xa_trans_force_rollback(THD*) /test/10.11_opt_san/sql/xa.cc:393
|
#3 0x55b5f23f47d3 in THD::cleanup() /test/10.11_opt_san/sql/sql_class.cc:1529
|
#4 0x55b5f1f02084 in unlink_thd(THD*) /test/10.11_opt_san/sql/mysqld.cc:2752
|
#5 0x55b5f302763b in do_handle_one_connection(CONNECT*, bool) /test/10.11_opt_san/sql/sql_connect.cc:1429
|
#6 0x55b5f302ab3c in handle_one_connection /test/10.11_opt_san/sql/sql_connect.cc:1312
|
#7 0x151c72f9d608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477
|
#8 0x151c72212132 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x11f132)
|
|
0x6210001132a0 is located 416 bytes inside of 4112-byte region [0x621000113100,0x621000114110)
|
freed by thread T14 here:
|
#0 0x55b5f1eb360f in __interceptor_free (/test/UBASAN_MD010922-mariadb-10.11.0-linux-x86_64-opt/bin/mariadbd+0x79c360f)
|
#1 0x55b5f63810cb in root_free /test/10.11_opt_san/mysys/my_alloc.c:78
|
#2 0x55b5f63810cb in free_root /test/10.11_opt_san/mysys/my_alloc.c:501
|
#3 0x151c68ccb4b2 in free_server /test/10.11_opt_san/storage/federatedx/ha_federatedx.cc:1698
|
#4 0x151c68cecb7b in free_share /test/10.11_opt_san/storage/federatedx/ha_federatedx.cc:1731
|
#5 0x151c68cecb7b in ha_federatedx::close() /test/10.11_opt_san/storage/federatedx/ha_federatedx.cc:1865
|
#6 0x55b5f2e738b8 in closefrm(TABLE*) /test/10.11_opt_san/sql/table.cc:4534
|
#7 0x55b5f3670530 in intern_close_table /test/10.11_opt_san/sql/table_cache.cc:225
|
#8 0x55b5f3670530 in tc_remove_table /test/10.11_opt_san/sql/table_cache.cc:263
|
#9 0x55b5f3670edc in tc_add_table(THD*, TABLE*) /test/10.11_opt_san/sql/table_cache.cc:363
|
#10 0x55b5f232f66a in open_table(THD*, TABLE_LIST*, Open_table_context*) /test/10.11_opt_san/sql/sql_base.cc:2208
|
#11 0x55b5f2345cd9 in open_and_process_table /test/10.11_opt_san/sql/sql_base.cc:4106
|
#12 0x55b5f2345cd9 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /test/10.11_opt_san/sql/sql_base.cc:4593
|
#13 0x55b5f234a3e0 in open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /test/10.11_opt_san/sql/sql_base.cc:5567
|
#14 0x55b5f2376f8c in open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /test/10.11_opt_san/sql/sql_base.h:510
|
#15 0x55b5f2376f8c in open_system_tables_for_read(THD*, TABLE_LIST*) /test/10.11_opt_san/sql/sql_base.cc:9447
|
#16 0x55b5f2c26138 in open_stat_tables /test/10.11_opt_san/sql/sql_statistics.cc:250
|
#17 0x55b5f2c63171 in read_statistics_for_tables(THD*, TABLE_LIST*) /test/10.11_opt_san/sql/sql_statistics.cc:3317
|
#18 0x55b5f234a800 in open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /test/10.11_opt_san/sql/sql_base.cc:5581
|
#19 0x55b5f247f9fe in open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /test/10.11_opt_san/sql/sql_base.h:510
|
#20 0x55b5f247f9fe in mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, unsigned long long, unsigned long long, select_result*) /test/10.11_opt_san/sql/sql_delete.cc:341
|
#21 0x55b5f2756f5d in mysql_execute_command(THD*, bool) /test/10.11_opt_san/sql/sql_parse.cc:4805
|
#22 0x55b5f26df500 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.11_opt_san/sql/sql_parse.cc:8035
|
#23 0x55b5f27340ff in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/10.11_opt_san/sql/sql_parse.cc:1894
|
#24 0x55b5f273f3fd in do_command(THD*, bool) /test/10.11_opt_san/sql/sql_parse.cc:1407
|
#25 0x55b5f30284cd in do_handle_one_connection(CONNECT*, bool) /test/10.11_opt_san/sql/sql_connect.cc:1418
|
#26 0x55b5f302ab3c in handle_one_connection /test/10.11_opt_san/sql/sql_connect.cc:1312
|
#27 0x151c72f9d608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477
|
|
previously allocated by thread T14 here:
|
#0 0x55b5f1eb3a08 in __interceptor_malloc (/test/UBASAN_MD010922-mariadb-10.11.0-linux-x86_64-opt/bin/mariadbd+0x79c3a08)
|
#1 0x55b5f63a3824 in my_malloc /test/10.11_opt_san/mysys/my_malloc.c:90
|
#2 0x55b5f637e803 in root_alloc /test/10.11_opt_san/mysys/my_alloc.c:66
|
#3 0x55b5f637e803 in init_alloc_root /test/10.11_opt_san/mysys/my_alloc.c:174
|
#4 0x151c68cd7957 in get_server /test/10.11_opt_san/storage/federatedx/ha_federatedx.cc:1546
|
#5 0x151c68cdd1cb in get_share /test/10.11_opt_san/storage/federatedx/ha_federatedx.cc:1652
|
#6 0x151c68ce811d in ha_federatedx::open(char const*, int, unsigned int) /test/10.11_opt_san/storage/federatedx/ha_federatedx.cc:1791
|
#7 0x55b5f3beeb56 in handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List<String>*) /test/10.11_opt_san/sql/handler.cc:3332
|
#8 0x55b5f2ea40a6 in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /test/10.11_opt_san/sql/table.cc:4430
|
#9 0x55b5f232f4f1 in open_table(THD*, TABLE_LIST*, Open_table_context*) /test/10.11_opt_san/sql/sql_base.cc:2177
|
#10 0x55b5f2345cd9 in open_and_process_table /test/10.11_opt_san/sql/sql_base.cc:4106
|
#11 0x55b5f2345cd9 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /test/10.11_opt_san/sql/sql_base.cc:4593
|
#12 0x55b5f234a3e0 in open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /test/10.11_opt_san/sql/sql_base.cc:5567
|
#13 0x55b5f25554e4 in open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /test/10.11_opt_san/sql/sql_base.h:510
|
#14 0x55b5f25554e4 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/10.11_opt_san/sql/sql_insert.cc:758
|
#15 0x55b5f2756215 in mysql_execute_command(THD*, bool) /test/10.11_opt_san/sql/sql_parse.cc:4563
|
#16 0x55b5f26df500 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.11_opt_san/sql/sql_parse.cc:8035
|
#17 0x55b5f27340ff in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/10.11_opt_san/sql/sql_parse.cc:1894
|
#18 0x55b5f273f3fd in do_command(THD*, bool) /test/10.11_opt_san/sql/sql_parse.cc:1407
|
#19 0x55b5f30284cd in do_handle_one_connection(CONNECT*, bool) /test/10.11_opt_san/sql/sql_connect.cc:1418
|
#20 0x55b5f302ab3c in handle_one_connection /test/10.11_opt_san/sql/sql_connect.cc:1312
|
#21 0x151c72f9d608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477
|
|
Thread T14 created by T0 here:
|
#0 0x55b5f1de0a45 in pthread_create (/test/UBASAN_MD010922-mariadb-10.11.0-linux-x86_64-opt/bin/mariadbd+0x78f0a45)
|
#1 0x55b5f1f03f83 in create_thread_to_handle_connection(CONNECT*) /test/10.11_opt_san/sql/mysqld.cc:6018
|
#2 0x55b5f1f1500f in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /test/10.11_opt_san/sql/mysqld.cc:6139
|
#3 0x55b5f1f16037 in handle_connections_sockets() /test/10.11_opt_san/sql/mysqld.cc:6263
|
#4 0x55b5f1f18f94 in mysqld_main(int, char**) /test/10.11_opt_san/sql/mysqld.cc:5913
|
#5 0x151c72117082 in __libc_start_main ../csu/libc-start.c:308
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /test/10.11_opt_san/storage/federatedx/federatedx_txn.cc:270 in federatedx_txn::txn_rollback()
|
Shadow bytes around the buggy address:
|
0x0c428001a600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c428001a610: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c428001a620: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a630: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a640: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
=>0x0c428001a650: fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a660: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a670: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c428001a6a0: 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
|
Shadow gap: cc
|
==4105417==ABORTING
|