Version: '10.4.32-MariaDB-debug-log' 62d80652be7c19f4ad2bf68d6ffbb4e1eb1d77ea
|
=================================================================
|
==686997==ERROR: AddressSanitizer: heap-use-after-free on address 0x6150000334f0 at pc 0x564563dce503 bp 0x7fe307900f00 sp 0x7fe307900ef0
|
READ of size 1 at 0x6150000334f0 thread T27
|
#0 0x564563dce502 in my_instr_simple /10.4/src/strings/ctype-simple.c:1226
|
#1 0x564562a7a9b3 in Item_func_locate::val_int() /10.4/src/sql/item_func.cc:3087
|
#2 0x564562a5a12a in Item_int_func::val_real() /10.4/src/sql/item_func.cc:765
|
#3 0x5645629c8e90 in Arg_comparator::compare_real() /10.4/src/sql/item_cmpfunc.cc:854
|
#4 0x564562a0c9a5 in Arg_comparator::compare() /10.4/src/sql/item_cmpfunc.h:104
|
#5 0x5645629d4782 in Item_func_eq::val_int() /10.4/src/sql/item_cmpfunc.cc:1790
|
#6 0x564562a10a1d in cmp_item_int::cmp(Item*) /10.4/src/sql/item_cmpfunc.h:1639
|
#7 0x564562a11d3b in Predicant_to_list_comparator::cmp_arg(Item_args*, unsigned int) /10.4/src/sql/item_cmpfunc.h:1939
|
#8 0x564562a13518 in Predicant_to_list_comparator::cmp(Item_args*, unsigned int*, bool*) (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x1bcc518)
|
#9 0x5645629e27f1 in Item_func_case_simple::find_item() /10.4/src/sql/item_cmpfunc.cc:3026
|
#10 0x5645629e2faa in Item_func_case::int_op() /10.4/src/sql/item_cmpfunc.cc:3064
|
#11 0x5645626e8dbd in Item_func_hybrid_field_type::val_int_from_int_op() (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x18a1dbd)
|
#12 0x5645626bd775 in Type_handler_int_result::Item_func_hybrid_field_type_val_int(Item_func_hybrid_field_type*) const /10.4/src/sql/sql_type.cc:4961
|
#13 0x5645620f7952 in Item_func_hybrid_field_type::val_int() /10.4/src/sql/item_func.h:843
|
#14 0x5645626c7dbd in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /10.4/src/sql/sql_type.cc:7137
|
#15 0x5645626e24cd in Type_handler_long::Item_send(Item*, Protocol*, st_value*) const (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x189b4cd)
|
#16 0x564561e6fd1b in Item::send(Protocol*, st_value*) /10.4/src/sql/item.h:1045
|
#17 0x564561e6125c in Protocol::send_result_set_row(List<Item>*) /10.4/src/sql/protocol.cc:1033
|
#18 0x5645620144c6 in select_send::send_data(List<Item>&) /10.4/src/sql/sql_class.cc:3137
|
#19 0x56456228c602 in end_send /10.4/src/sql/sql_select.cc:22118
|
#20 0x5645625ea3dd in JOIN_CACHE::generate_full_extensions(unsigned char*) /10.4/src/sql/sql_join_cache.cc:2528
|
#21 0x5645625e9c40 in JOIN_CACHE::join_matching_records(bool) /10.4/src/sql/sql_join_cache.cc:2420
|
#22 0x5645625e7f9e in JOIN_CACHE::join_records(bool) /10.4/src/sql/sql_join_cache.cc:2173
|
#23 0x564562282307 in sub_select_cache(JOIN*, st_join_table*, bool) /10.4/src/sql/sql_select.cc:20685
|
#24 0x564562282a91 in sub_select(JOIN*, st_join_table*, bool) /10.4/src/sql/sql_select.cc:20867
|
#25 0x564562281191 in do_select /10.4/src/sql/sql_select.cc:20445
|
#26 0x56456220ebd3 in JOIN::exec_inner() /10.4/src/sql/sql_select.cc:4625
|
#27 0x56456220c203 in JOIN::exec() /10.4/src/sql/sql_select.cc:4407
|
#28 0x5645622103df in mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /10.4/src/sql/sql_select.cc:4846
|
#29 0x5645621e0c55 in handle_select(THD*, LEX*, select_result*, unsigned long) /10.4/src/sql/sql_select.cc:442
|
#30 0x564562147c5b in execute_sqlcom_select /10.4/src/sql/sql_parse.cc:6475
|
#31 0x5645621353d2 in mysql_execute_command(THD*) /10.4/src/sql/sql_parse.cc:3978
|
#32 0x5645621511d6 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.4/src/sql/sql_parse.cc:8014
|
#33 0x564562127562 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.4/src/sql/sql_parse.cc:1857
|
#34 0x56456212408d in do_command(THD*) /10.4/src/sql/sql_parse.cc:1378
|
#35 0x56456253867d in do_handle_one_connection(CONNECT*) /10.4/src/sql/sql_connect.cc:1419
|
#36 0x564562537f21 in handle_one_connection /10.4/src/sql/sql_connect.cc:1323
|
#37 0x5645631d5baf in pfs_spawn_thread /10.4/src/storage/perfschema/pfs.cc:1869
|
#38 0x7fe31e4cd608 in start_thread /build/glibc-BHL3KM/glibc-2.31/nptl/pthread_create.c:477
|
#39 0x7fe31e09e132 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x11f132)
|
|
0x6150000334f0 is located 112 bytes inside of 468-byte region [0x615000033480,0x615000033654)
|
freed by thread T27 here:
|
#0 0x7fe31eacb40f in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122
|
#1 0x564563d5d14a in free_memory /10.4/src/mysys/safemalloc.c:279
|
#2 0x564563d5c706 in sf_free /10.4/src/mysys/safemalloc.c:197
|
#3 0x564563d2b2fe in my_free /10.4/src/mysys/my_malloc.c:222
|
#4 0x564561e42a25 in Binary_string::free() /10.4/src/sql/sql_string.h:711
|
#5 0x564561e42811 in Binary_string::~Binary_string() /10.4/src/sql/sql_string.h:515
|
#6 0x564561e42c03 in String::~String() /10.4/src/sql/sql_string.h:829
|
#7 0x564562b2187f in StringBuffer<22ul>::~StringBuffer() /10.4/src/sql/sql_string.h:1172
|
#8 0x564562ae383c in Item_str_func::val_int() /10.4/src/sql/item_strfunc.cc:158
|
#9 0x564562a7a754 in Item_func_locate::val_int() /10.4/src/sql/item_func.cc:3071
|
#10 0x564562a5a12a in Item_int_func::val_real() /10.4/src/sql/item_func.cc:765
|
#11 0x5645629c8e90 in Arg_comparator::compare_real() /10.4/src/sql/item_cmpfunc.cc:854
|
#12 0x564562a0c9a5 in Arg_comparator::compare() /10.4/src/sql/item_cmpfunc.h:104
|
#13 0x5645629d4782 in Item_func_eq::val_int() /10.4/src/sql/item_cmpfunc.cc:1790
|
#14 0x564562a10a1d in cmp_item_int::cmp(Item*) /10.4/src/sql/item_cmpfunc.h:1639
|
#15 0x564562a11d3b in Predicant_to_list_comparator::cmp_arg(Item_args*, unsigned int) /10.4/src/sql/item_cmpfunc.h:1939
|
#16 0x564562a13518 in Predicant_to_list_comparator::cmp(Item_args*, unsigned int*, bool*) (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x1bcc518)
|
#17 0x5645629e27f1 in Item_func_case_simple::find_item() /10.4/src/sql/item_cmpfunc.cc:3026
|
#18 0x5645629e2faa in Item_func_case::int_op() /10.4/src/sql/item_cmpfunc.cc:3064
|
#19 0x5645626e8dbd in Item_func_hybrid_field_type::val_int_from_int_op() (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x18a1dbd)
|
#20 0x5645626bd775 in Type_handler_int_result::Item_func_hybrid_field_type_val_int(Item_func_hybrid_field_type*) const /10.4/src/sql/sql_type.cc:4961
|
#21 0x5645620f7952 in Item_func_hybrid_field_type::val_int() /10.4/src/sql/item_func.h:843
|
#22 0x5645626c7dbd in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /10.4/src/sql/sql_type.cc:7137
|
#23 0x5645626e24cd in Type_handler_long::Item_send(Item*, Protocol*, st_value*) const (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x189b4cd)
|
#24 0x564561e6fd1b in Item::send(Protocol*, st_value*) /10.4/src/sql/item.h:1045
|
#25 0x564561e6125c in Protocol::send_result_set_row(List<Item>*) /10.4/src/sql/protocol.cc:1033
|
#26 0x5645620144c6 in select_send::send_data(List<Item>&) /10.4/src/sql/sql_class.cc:3137
|
#27 0x56456228c602 in end_send /10.4/src/sql/sql_select.cc:22118
|
#28 0x5645625ea3dd in JOIN_CACHE::generate_full_extensions(unsigned char*) /10.4/src/sql/sql_join_cache.cc:2528
|
#29 0x5645625e9c40 in JOIN_CACHE::join_matching_records(bool) /10.4/src/sql/sql_join_cache.cc:2420
|
|
previously allocated by thread T27 here:
|
#0 0x7fe31eacb808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
|
#1 0x564563d5c0ba in sf_malloc /10.4/src/mysys/safemalloc.c:118
|
#2 0x564563d2a807 in my_malloc /10.4/src/mysys/my_malloc.c:101
|
#3 0x56456236fc39 in Binary_string::real_alloc(unsigned long) /10.4/src/sql/sql_string.cc:44
|
#4 0x564561e686b3 in Binary_string::alloc(unsigned long) /10.4/src/sql/sql_string.h:720
|
#5 0x56456288053e in Field_double::val_str(String*, String*) /10.4/src/sql/field.cc:4936
|
#6 0x56456296559f in Item_field::val_str(String*) /10.4/src/sql/item.cc:3251
|
#7 0x564562af57b8 in Item_func_rtrim::val_str(String*) /10.4/src/sql/item_strfunc.cc:2016
|
#8 0x5645629919d7 in Item_direct_ref::val_str(String*) /10.4/src/sql/item.cc:8551
|
#9 0x5645629b036f in Item_direct_view_ref::val_str(String*) /10.4/src/sql/item.h:5960
|
#10 0x564562af4d38 in Item_func_ltrim::val_str(String*) /10.4/src/sql/item_strfunc.cc:1971
|
#11 0x564562ae37fb in Item_str_func::val_int() /10.4/src/sql/item_strfunc.cc:159
|
#12 0x564562a7a754 in Item_func_locate::val_int() /10.4/src/sql/item_func.cc:3071
|
#13 0x564562a5a12a in Item_int_func::val_real() /10.4/src/sql/item_func.cc:765
|
#14 0x5645629c8e90 in Arg_comparator::compare_real() /10.4/src/sql/item_cmpfunc.cc:854
|
#15 0x564562a0c9a5 in Arg_comparator::compare() /10.4/src/sql/item_cmpfunc.h:104
|
#16 0x5645629d4782 in Item_func_eq::val_int() /10.4/src/sql/item_cmpfunc.cc:1790
|
#17 0x564562a10a1d in cmp_item_int::cmp(Item*) /10.4/src/sql/item_cmpfunc.h:1639
|
#18 0x564562a11d3b in Predicant_to_list_comparator::cmp_arg(Item_args*, unsigned int) /10.4/src/sql/item_cmpfunc.h:1939
|
#19 0x564562a13518 in Predicant_to_list_comparator::cmp(Item_args*, unsigned int*, bool*) (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x1bcc518)
|
#20 0x5645629e27f1 in Item_func_case_simple::find_item() /10.4/src/sql/item_cmpfunc.cc:3026
|
#21 0x5645629e2faa in Item_func_case::int_op() /10.4/src/sql/item_cmpfunc.cc:3064
|
#22 0x5645626e8dbd in Item_func_hybrid_field_type::val_int_from_int_op() (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x18a1dbd)
|
#23 0x5645626bd775 in Type_handler_int_result::Item_func_hybrid_field_type_val_int(Item_func_hybrid_field_type*) const /10.4/src/sql/sql_type.cc:4961
|
#24 0x5645620f7952 in Item_func_hybrid_field_type::val_int() /10.4/src/sql/item_func.h:843
|
#25 0x5645626c7dbd in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /10.4/src/sql/sql_type.cc:7137
|
#26 0x5645626e24cd in Type_handler_long::Item_send(Item*, Protocol*, st_value*) const (/home/alice/am/_depot/m-branch/m4-10.4-bld/sql/mysqld+0x189b4cd)
|
#27 0x564561e6fd1b in Item::send(Protocol*, st_value*) /10.4/src/sql/item.h:1045
|
#28 0x564561e6125c in Protocol::send_result_set_row(List<Item>*) /10.4/src/sql/protocol.cc:1033
|
#29 0x5645620144c6 in select_send::send_data(List<Item>&) /10.4/src/sql/sql_class.cc:3137
|
|
Thread T27 created by T0 here:
|
#0 0x7fe31e9f8815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
|
#1 0x5645631d5fa0 in spawn_thread_v1 /10.4/src/storage/perfschema/pfs.cc:1919
|
#2 0x564561e1cf71 in inline_mysql_thread_create /10.4/src/include/mysql/psi/mysql_thread.h:1275
|
#3 0x564561e35161 in create_thread_to_handle_connection(CONNECT*) /10.4/src/sql/mysqld.cc:6296
|
#4 0x564561e358fc in create_new_thread(CONNECT*) /10.4/src/sql/mysqld.cc:6366
|
#5 0x564561e35de2 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /10.4/src/sql/mysqld.cc:6464
|
#6 0x564561e36c9e in handle_connections_sockets() /10.4/src/sql/mysqld.cc:6622
|
#7 0x564561e34866 in mysqld_main(int, char**) /10.4/src/sql/mysqld.cc:5954
|
#8 0x564561e1af3c in main /10.4/src/sql/main.cc:25
|
#9 0x7fe31dfa3082 in __libc_start_main ../csu/libc-start.c:308
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /10.4/src/strings/ctype-simple.c:1226 in my_instr_simple
|
Shadow bytes around the buggy address:
|
0x0c2a7fffe640: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2a7fffe650: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2a7fffe660: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2a7fffe670: fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa
|
0x0c2a7fffe680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
=>0x0c2a7fffe690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd[fd]fd
|
0x0c2a7fffe6a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2a7fffe6b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2a7fffe6c0: fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa
|
0x0c2a7fffe6d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2a7fffe6e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
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
|
==686997==ABORTING
|
----------SERVER LOG END-------------
|