==458==ERROR: AddressSanitizer: heap-use-after-free on address 0x62f000118488 at pc 0x5643ce09fc4d bp 0x7f740d86d000 sp 0x7f740d86cff8
|
READ of size 52995 at 0x62f000118488 thread T27
|
#0 0x5643ce09fc4c in mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /data/src/10.2/storage/innobase/mem/mem0mem.cc:56
|
#1 0x5643ce247d82 in dfield_dup /data/src/10.2/storage/innobase/include/data0data.ic:285
|
#2 0x5643ce251ef4 in row_upd_index_replace_new_col_val /data/src/10.2/storage/innobase/row/row0upd.cc:1287
|
#3 0x5643ce25247e in row_upd_index_replace_new_col_vals_index_pos(dtuple_t*, dict_index_t*, upd_t const*, unsigned long, mem_block_info_t*) /data/src/10.2/storage/innobase/row/row0upd.cc:1367
|
#4 0x5643ce3869a4 in btr_cur_pessimistic_update(unsigned long, btr_cur_t*, unsigned long**, mem_block_info_t**, mem_block_info_t*, big_rec_t**, upd_t*, unsigned long, que_thr_t*, unsigned long, mtr_t*) /data/src/10.2/storage/innobase/btr/btr0cur.cc:4206
|
#5 0x5643ce169b72 in row_ins_clust_index_entry_by_modify /data/src/10.2/storage/innobase/row/row0ins.cc:394
|
#6 0x5643ce1735c3 in row_ins_clust_index_entry_low(unsigned long, unsigned long, dict_index_t*, unsigned long, dtuple_t*, unsigned long, que_thr_t*, bool) /data/src/10.2/storage/innobase/row/row0ins.cc:2688
|
#7 0x5643ce175937 in row_ins_clust_index_entry(dict_index_t*, dtuple_t*, que_thr_t*, unsigned long, bool) /data/src/10.2/storage/innobase/row/row0ins.cc:3218
|
#8 0x5643ce175dc6 in row_ins_index_entry /data/src/10.2/storage/innobase/row/row0ins.cc:3314
|
#9 0x5643ce176805 in row_ins_index_entry_step /data/src/10.2/storage/innobase/row/row0ins.cc:3464
|
#10 0x5643ce1770d0 in row_ins /data/src/10.2/storage/innobase/row/row0ins.cc:3606
|
#11 0x5643ce1781d1 in row_ins_step(que_thr_t*) /data/src/10.2/storage/innobase/row/row0ins.cc:3843
|
#12 0x5643ce1aea11 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*) /data/src/10.2/storage/innobase/row/row0mysql.cc:1469
|
#13 0x5643cdf4e4c4 in ha_innobase::write_row(unsigned char*) /data/src/10.2/storage/innobase/handler/ha_innodb.cc:8595
|
#14 0x5643cd7cc5b0 in handler::ha_write_row(unsigned char*) /data/src/10.2/sql/handler.cc:6001
|
#15 0x5643cd176486 in write_record(THD*, TABLE*, st_copy_info*) /data/src/10.2/sql/sql_insert.cc:1654
|
#16 0x5643cdbadffe in read_sep_field /data/src/10.2/sql/sql_load.cc:1217
|
#17 0x5643cdba9e5e in mysql_load(THD*, sql_exchange*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool, bool) /data/src/10.2/sql/sql_load.cc:612
|
#18 0x5643cd1d599f in mysql_execute_command(THD*) /data/src/10.2/sql/sql_parse.cc:4809
|
#19 0x5643cd1e91e0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.2/sql/sql_parse.cc:7891
|
#20 0x5643cd1c469b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.2/sql/sql_parse.cc:1806
|
#21 0x5643cd1c173f in do_command(THD*) /data/src/10.2/sql/sql_parse.cc:1360
|
#22 0x5643cd4fb8d5 in do_handle_one_connection(CONNECT*) /data/src/10.2/sql/sql_connect.cc:1335
|
#23 0x5643cd4fb2ea in handle_one_connection /data/src/10.2/sql/sql_connect.cc:1241
|
#24 0x5643cdf04489 in pfs_spawn_thread /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#25 0x7f741e2d3493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
|
#26 0x7f741c6b993e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe893e)
|
|
0x62f000118488 is located 136 bytes inside of 53136-byte region [0x62f000118400,0x62f000125390)
|
freed by thread T27 here:
|
#0 0x7f741e53d527 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54527)
|
#1 0x5643ce0a1951 in mem_heap_block_free(mem_block_info_t*, mem_block_info_t*) /data/src/10.2/storage/innobase/mem/mem0mem.cc:440
|
#2 0x5643ce24738f in mem_heap_free /data/src/10.2/storage/innobase/include/mem0mem.ic:535
|
#3 0x5643ce25550a in row_upd_store_v_row(upd_node_t*, upd_t const*, THD*, TABLE*) /data/src/10.2/storage/innobase/row/row0upd.cc:2166
|
#4 0x5643ce255a39 in row_upd_store_row(upd_node_t*, THD*, TABLE*) /data/src/10.2/storage/innobase/row/row0upd.cc:2220
|
#5 0x5643ce259843 in row_upd_del_mark_clust_rec /data/src/10.2/storage/innobase/row/row0upd.cc:2960
|
#6 0x5643ce25a6d4 in row_upd_clust_step /data/src/10.2/storage/innobase/row/row0upd.cc:3144
|
#7 0x5643ce25b18b in row_upd /data/src/10.2/storage/innobase/row/row0upd.cc:3261
|
#8 0x5643ce25bead in row_upd_step(que_thr_t*) /data/src/10.2/storage/innobase/row/row0upd.cc:3407
|
#9 0x5643ce1b1436 in row_update_for_mysql(row_prebuilt_t*) /data/src/10.2/storage/innobase/row/row0mysql.cc:1927
|
#10 0x5643cdf53109 in ha_innobase::delete_row(unsigned char const*) /data/src/10.2/storage/innobase/handler/ha_innodb.cc:9488
|
#11 0x5643cd7cd420 in handler::ha_delete_row(unsigned char const*) /data/src/10.2/sql/handler.cc:6061
|
#12 0x5643cd1762a0 in write_record(THD*, TABLE*, st_copy_info*) /data/src/10.2/sql/sql_insert.cc:1892
|
#13 0x5643cdbadffe in read_sep_field /data/src/10.2/sql/sql_load.cc:1217
|
#14 0x5643cdba9e5e in mysql_load(THD*, sql_exchange*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool, bool) /data/src/10.2/sql/sql_load.cc:612
|
#15 0x5643cd1d599f in mysql_execute_command(THD*) /data/src/10.2/sql/sql_parse.cc:4809
|
#16 0x5643cd1e91e0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.2/sql/sql_parse.cc:7891
|
#17 0x5643cd1c469b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.2/sql/sql_parse.cc:1806
|
#18 0x5643cd1c173f in do_command(THD*) /data/src/10.2/sql/sql_parse.cc:1360
|
#19 0x5643cd4fb8d5 in do_handle_one_connection(CONNECT*) /data/src/10.2/sql/sql_connect.cc:1335
|
#20 0x5643cd4fb2ea in handle_one_connection /data/src/10.2/sql/sql_connect.cc:1241
|
#21 0x5643cdf04489 in pfs_spawn_thread /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#22 0x7f741e2d3493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
|
|
previously allocated by thread T27 here:
|
#0 0x7f741e53d73f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5473f)
|
#1 0x5643ce0a0fdf in mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /data/src/10.2/storage/innobase/mem/mem0mem.cc:296
|
#2 0x5643ce0a16ee in mem_heap_add_block(mem_block_info_t*, unsigned long) /data/src/10.2/storage/innobase/mem/mem0mem.cc:397
|
#3 0x5643ce36d557 in mem_heap_alloc /data/src/10.2/storage/innobase/include/mem0mem.ic:203
|
#4 0x5643ce393342 in btr_copy_externally_stored_field(unsigned long*, unsigned char const*, page_size_t const&, unsigned long, mem_block_info_t*) /data/src/10.2/storage/innobase/btr/btr0cur.cc:7766
|
#5 0x5643cdf87d3e in innobase_get_computed_value(dtuple_t const*, dict_v_col_t const*, dict_index_t const*, mem_block_info_t**, mem_block_info_t*, dict_field_t const*, THD*, TABLE*, dict_table_t const*, upd_t*, dict_foreign_t*) /data/src/10.2/storage/innobase/handler/ha_innodb.cc:22321
|
#6 0x5643ce255495 in row_upd_store_v_row(upd_node_t*, upd_t const*, THD*, TABLE*) /data/src/10.2/storage/innobase/row/row0upd.cc:2159
|
#7 0x5643ce255a39 in row_upd_store_row(upd_node_t*, THD*, TABLE*) /data/src/10.2/storage/innobase/row/row0upd.cc:2220
|
#8 0x5643ce259843 in row_upd_del_mark_clust_rec /data/src/10.2/storage/innobase/row/row0upd.cc:2960
|
#9 0x5643ce25a6d4 in row_upd_clust_step /data/src/10.2/storage/innobase/row/row0upd.cc:3144
|
#10 0x5643ce25b18b in row_upd /data/src/10.2/storage/innobase/row/row0upd.cc:3261
|
#11 0x5643ce25bead in row_upd_step(que_thr_t*) /data/src/10.2/storage/innobase/row/row0upd.cc:3407
|
#12 0x5643ce1b1436 in row_update_for_mysql(row_prebuilt_t*) /data/src/10.2/storage/innobase/row/row0mysql.cc:1927
|
#13 0x5643cdf53109 in ha_innobase::delete_row(unsigned char const*) /data/src/10.2/storage/innobase/handler/ha_innodb.cc:9488
|
#14 0x5643cd7cd420 in handler::ha_delete_row(unsigned char const*) /data/src/10.2/sql/handler.cc:6061
|
#15 0x5643cd1762a0 in write_record(THD*, TABLE*, st_copy_info*) /data/src/10.2/sql/sql_insert.cc:1892
|
#16 0x5643cdbadffe in read_sep_field /data/src/10.2/sql/sql_load.cc:1217
|
#17 0x5643cdba9e5e in mysql_load(THD*, sql_exchange*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool, bool) /data/src/10.2/sql/sql_load.cc:612
|
#18 0x5643cd1d599f in mysql_execute_command(THD*) /data/src/10.2/sql/sql_parse.cc:4809
|
#19 0x5643cd1e91e0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.2/sql/sql_parse.cc:7891
|
#20 0x5643cd1c469b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.2/sql/sql_parse.cc:1806
|
#21 0x5643cd1c173f in do_command(THD*) /data/src/10.2/sql/sql_parse.cc:1360
|
#22 0x5643cd4fb8d5 in do_handle_one_connection(CONNECT*) /data/src/10.2/sql/sql_connect.cc:1335
|
#23 0x5643cd4fb2ea in handle_one_connection /data/src/10.2/sql/sql_connect.cc:1241
|
#24 0x5643cdf04489 in pfs_spawn_thread /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#25 0x7f741e2d3493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
|
|
Thread T27 created by T0 here:
|
#0 0x7f741e50cbba in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x23bba)
|
#1 0x5643cdf04a51 in spawn_thread_v1 /data/src/10.2/storage/perfschema/pfs.cc:1912
|
#2 0x5643ccfc370f in inline_mysql_thread_create /data/src/10.2/include/mysql/psi/mysql_thread.h:1239
|
#3 0x5643ccfd8458 in create_thread_to_handle_connection(CONNECT*) /data/src/10.2/sql/mysqld.cc:6423
|
#4 0x5643ccfd8b5d in create_new_thread /data/src/10.2/sql/mysqld.cc:6493
|
#5 0x5643ccfd9b6e in handle_connections_sockets() /data/src/10.2/sql/mysqld.cc:6768
|
#6 0x5643ccfd79a5 in mysqld_main(int, char**) /data/src/10.2/sql/mysqld.cc:6042
|
#7 0x5643ccfc1c3f in main /data/src/10.2/sql/main.cc:25
|
#8 0x7f741c5f12b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /data/src/10.2/storage/innobase/mem/mem0mem.cc:56 mem_heap_dup(mem_block_info_t*, void const*, unsigned long)
|
Shadow bytes around the buggy address:
|
0x0c5e8001b040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5e8001b050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5e8001b060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5e8001b070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5e8001b080: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
=>0x0c5e8001b090: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5e8001b0a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5e8001b0b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5e8001b0c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5e8001b0d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5e8001b0e0: 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
|
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
|
==458==ABORTING
|