==679812==ERROR: AddressSanitizer: heap-use-after-free on address 0x611000040320 at pc 0x55821d28e1a0 bp 0x7fd74965ebc0 sp 0x7fd74965ebb0
|
READ of size 8 at 0x611000040320 thread T5
|
#0 0x55821d28e19f in update_hash(user_var_entry*, bool, void*, unsigned long, Item_result, charset_info_st const*, bool) /data/src/10.5/sql/item_func.cc:4869
|
#1 0x55821d28e96e in Item_func_set_user_var::update_hash(void*, unsigned long, Item_result, charset_info_st const*, bool) /data/src/10.5/sql/item_func.cc:4935
|
#2 0x55821d290b00 in Item_func_set_user_var::update() /data/src/10.5/sql/item_func.cc:5191
|
#3 0x55821d29238d in Item_func_set_user_var::save_in_field(Field*, bool, bool) /data/src/10.5/sql/item_func.cc:5390
|
#4 0x55821d2ad8cd in Item_func_set_user_var::save_in_field(Field*, bool) /data/src/10.5/sql/item_func.h:3044
|
#5 0x55821cc7ba12 in TABLE::update_default_fields(bool) /data/src/10.5/sql/table.cc:8707
|
#6 0x55821c78b9ee in fill_record(THD*, TABLE*, List<Item>&, List<Item>&, bool, bool) /data/src/10.5/sql/sql_base.cc:8527
|
#7 0x55821c78c734 in fill_record_n_invoke_before_triggers(THD*, TABLE*, List<Item>&, List<Item>&, bool, trg_event_type) /data/src/10.5/sql/sql_base.cc:8662
|
#8 0x55821c8425bc in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /data/src/10.5/sql/sql_insert.cc:996
|
#9 0x55821c90b95d in mysql_execute_command(THD*) /data/src/10.5/sql/sql_parse.cc:4596
|
#10 0x55821c923e6b in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.5/sql/sql_parse.cc:8062
|
#11 0x55821c8fa158 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.5/sql/sql_parse.cc:1889
|
#12 0x55821c8f6a81 in do_command(THD*) /data/src/10.5/sql/sql_parse.cc:1370
|
#13 0x55821cd3935b in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1410
|
#14 0x55821cd38cbf in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1312
|
#15 0x55821da47200 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#16 0x7fd752d38608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477
|
#17 0x7fd75290e292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
|
|
0x611000040320 is located 160 bytes inside of 220-byte region [0x611000040280,0x61100004035c)
|
freed by thread T6 here:
|
#0 0x7fd7532267cf in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.5+0x10d7cf)
|
#1 0x55821e6e6974 in free_memory /data/src/10.5/mysys/safemalloc.c:280
|
#2 0x55821e6e5f30 in sf_free /data/src/10.5/mysys/safemalloc.c:198
|
#3 0x55821e6b3b0f in my_free /data/src/10.5/mysys/my_malloc.c:211
|
#4 0x55821c7c8191 in free_user_var /data/src/10.5/sql/sql_class.cc:106
|
#5 0x55821e64bd1a in my_hash_free_elements /data/src/10.5/mysys/hash.c:134
|
#6 0x55821e64be54 in my_hash_free /data/src/10.5/mysys/hash.c:156
|
#7 0x55821c7d3e33 in THD::cleanup(bool) /data/src/10.5/sql/sql_class.cc:1597
|
#8 0x55821c5f5493 in unlink_thd(THD*) /data/src/10.5/sql/mysqld.cc:2605
|
#9 0x55821cd3949f in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1421
|
#10 0x55821cd38cbf in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1312
|
#11 0x55821da47200 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#12 0x7fd752d38608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477
|
|
previously allocated by thread T6 here:
|
#0 0x7fd753226bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
|
#1 0x55821e6e58e4 in sf_malloc /data/src/10.5/mysys/safemalloc.c:121
|
#2 0x55821e6b2ce9 in my_malloc /data/src/10.5/mysys/my_malloc.c:90
|
#3 0x55821d28c7de in get_variable(st_hash*, st_mysql_const_lex_string*, bool) /data/src/10.5/sql/item_func.cc:4624
|
#4 0x55821d28cc04 in Item_func_set_user_var::set_entry(THD*, bool) /data/src/10.5/sql/item_func.cc:4670
|
#5 0x55821d28cec4 in Item_func_set_user_var::fix_fields(THD*, Item**) /data/src/10.5/sql/item_func.cc:4696
|
#6 0x55821cc518fb in fix_vcol_expr /data/src/10.5/sql/table.cc:3495
|
#7 0x55821cc526c5 in fix_and_check_vcol_expr /data/src/10.5/sql/table.cc:3580
|
#8 0x55821cc535b3 in unpack_vcol_info_from_frm /data/src/10.5/sql/table.cc:3706
|
#9 0x55821cc3d939 in parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*, vcol_init_mode) /data/src/10.5/sql/table.cc:1234
|
#10 0x55821cc5701d in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /data/src/10.5/sql/table.cc:4085
|
#11 0x55821d13276b in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /data/src/10.5/sql/handler.cc:5547
|
#12 0x55821cb909c4 in create_table_impl /data/src/10.5/sql/sql_table.cc:5379
|
#13 0x55821cb91350 in mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /data/src/10.5/sql/sql_table.cc:5463
|
#14 0x55821cb91f6e in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /data/src/10.5/sql/sql_table.cc:5564
|
#15 0x55821cbc2324 in Sql_cmd_create_table_like::execute(THD*) /data/src/10.5/sql/sql_table.cc:12149
|
#16 0x55821c9163c2 in mysql_execute_command(THD*) /data/src/10.5/sql/sql_parse.cc:6023
|
#17 0x55821c923e6b in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.5/sql/sql_parse.cc:8062
|
#18 0x55821c8fa158 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.5/sql/sql_parse.cc:1889
|
#19 0x55821c8f6a81 in do_command(THD*) /data/src/10.5/sql/sql_parse.cc:1370
|
#20 0x55821cd3935b in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1410
|
#21 0x55821cd38cbf in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1312
|
#22 0x55821da47200 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#23 0x7fd752d38608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477
|
|
Thread T5 created by T0 here:
|
#0 0x7fd753153805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
|
#1 0x55821da421a4 in my_thread_create /data/src/10.5/storage/perfschema/my_thread.h:38
|
#2 0x55821da475f3 in pfs_spawn_thread_v1 /data/src/10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55821c5ea4fe in inline_mysql_thread_create /data/src/10.5/include/mysql/psi/mysql_thread.h:1323
|
#4 0x55821c600512 in create_thread_to_handle_connection(CONNECT*) /data/src/10.5/sql/mysqld.cc:6028
|
#5 0x55821c600b91 in create_new_thread(CONNECT*) /data/src/10.5/sql/mysqld.cc:6087
|
#6 0x55821c600eee in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /data/src/10.5/sql/mysqld.cc:6152
|
#7 0x55821c601b0d in handle_connections_sockets() /data/src/10.5/sql/mysqld.cc:6279
|
#8 0x55821c5ffd1f in mysqld_main(int, char**) /data/src/10.5/sql/mysqld.cc:5674
|
#9 0x55821c5e8d9c in main /data/src/10.5/sql/main.cc:25
|
#10 0x7fd7528130b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
|
Thread T6 created by T0 here:
|
#0 0x7fd753153805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
|
#1 0x55821da421a4 in my_thread_create /data/src/10.5/storage/perfschema/my_thread.h:38
|
#2 0x55821da475f3 in pfs_spawn_thread_v1 /data/src/10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55821c5ea4fe in inline_mysql_thread_create /data/src/10.5/include/mysql/psi/mysql_thread.h:1323
|
#4 0x55821c600512 in create_thread_to_handle_connection(CONNECT*) /data/src/10.5/sql/mysqld.cc:6028
|
#5 0x55821c600b91 in create_new_thread(CONNECT*) /data/src/10.5/sql/mysqld.cc:6087
|
#6 0x55821c600eee in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /data/src/10.5/sql/mysqld.cc:6152
|
#7 0x55821c601b0d in handle_connections_sockets() /data/src/10.5/sql/mysqld.cc:6279
|
#8 0x55821c5ffd1f in mysqld_main(int, char**) /data/src/10.5/sql/mysqld.cc:5674
|
#9 0x55821c5e8d9c in main /data/src/10.5/sql/main.cc:25
|
#10 0x7fd7528130b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /data/src/10.5/sql/item_func.cc:4869 in update_hash(user_var_entry*, bool, void*, unsigned long, Item_result, charset_info_st const*, bool)
|
Shadow bytes around the buggy address:
|
0x0c2280000010: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa
|
0x0c2280000020: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
|
0x0c2280000030: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2280000040: fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2280000050: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
=>0x0c2280000060: fd fd fd fd[fd]fd fd fd fd fd fd fd fa fa fa fa
|
0x0c2280000070: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
|
0x0c2280000080: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c2280000090: fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c22800000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c22800000b0: 00 00 00 00 00 00 00 00 04 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
|
==679812==ABORTING
|
210215 14:31:02 [ERROR] mysqld got signal 6 ;
|
This could be because you hit a bug. It is also possible that this binary
|
or one of the libraries it was linked against is corrupt, improperly built,
|
or misconfigured. This error can also be caused by malfunctioning hardware.
|
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
|
We will try our best to scrape up some info that will hopefully help
|
diagnose the problem, but since we have already crashed,
|
something is definitely wrong and this may fail.
|
|
Server version: 10.5.9-MariaDB-debug-log
|
key_buffer_size=1048576
|
read_buffer_size=131072
|
max_used_connections=2
|
max_threads=153
|
thread_count=3
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 63744 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x62b000069288
|
Attempting backtrace. You can use the following information to find out
|
where mysqld died. If you see no messages after this, something went
|
terribly wrong...
|
stack_bottom = 0x7fd749661950 thread_stack 0x5fc00
|
??:0(__interceptor_tcgetattr)[0x7fd753185d30]
|
mysys/stacktrace.c:212(my_print_stacktrace)[0x55821e6c3331]
|
sql/signal_handler.cc:211(handle_fatal_signal)[0x55821d10114c]
|
sigaction.c:0(__restore_rt)[0x7fd752d443c0]
|
??:0(gsignal)[0x7fd75283218b]
|
??:0(abort)[0x7fd752811859]
|
??:0(__sanitizer_set_report_fd)[0x7fd7532446a2]
|
??:0(__sanitizer_get_module_and_offset_for_pc)[0x7fd75324f24c]
|
??:0(__sanitizer_ptr_cmp)[0x7fd7532308ec]
|
??:0(__asan_on_error)[0x7fd753230363]
|
??:0(__asan_report_load8)[0x7fd7532311ab]
|
sql/item_func.cc:4869(update_hash(user_var_entry*, bool, void*, unsigned long, Item_result, charset_info_st const*, bool))[0x55821d28e1a0]
|
sql/item_func.cc:4935(Item_func_set_user_var::update_hash(void*, unsigned long, Item_result, charset_info_st const*, bool))[0x55821d28e96f]
|
sql/item_func.cc:5191(Item_func_set_user_var::update())[0x55821d290b01]
|
sql/item_func.cc:5392(Item_func_set_user_var::save_in_field(Field*, bool, bool))[0x55821d29238e]
|
sql/item_func.h:3045(Item_func_set_user_var::save_in_field(Field*, bool))[0x55821d2ad8ce]
|
sql/table.cc:8707(TABLE::update_default_fields(bool))[0x55821cc7ba13]
|
sql/sql_base.cc:8526(fill_record(THD*, TABLE*, List<Item>&, List<Item>&, bool, bool))[0x55821c78b9ef]
|
sql/sql_base.cc:8662(fill_record_n_invoke_before_triggers(THD*, TABLE*, List<Item>&, List<Item>&, bool, trg_event_type))[0x55821c78c735]
|
sql/sql_insert.cc:996(mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*))[0x55821c8425bd]
|
sql/sql_parse.cc:4596(mysql_execute_command(THD*))[0x55821c90b95e]
|
sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55821c923e6c]
|
sql/sql_parse.cc:1892(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55821c8fa159]
|
sql/sql_parse.cc:1370(do_command(THD*))[0x55821c8f6a82]
|
sql/sql_connect.cc:1410(do_handle_one_connection(CONNECT*, bool))[0x55821cd3935c]
|
sql/sql_connect.cc:1314(handle_one_connection)[0x55821cd38cc0]
|
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x55821da47201]
|
nptl/pthread_create.c:478(start_thread)[0x7fd752d38609]
|
??:0(clone)[0x7fd75290e293]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x62b000038440): INSERT INTO t1 VALUES ()
|
|
Connection ID (thread ID): 4
|
Status: NOT_KILLED
|
|
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off
|
|
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
|
information that should help you find out what is causing the crash.
|
Writing a core file...
|
Working directory at /dev/shm/var_auto_7SxN/mysqld.1/data
|
Resource Limits:
|
Limit Soft Limit Hard Limit Units
|
Max cpu time unlimited unlimited seconds
|
Max file size unlimited unlimited bytes
|
Max data size unlimited unlimited bytes
|
Max stack size 8388608 unlimited bytes
|
Max core file size 0 0 bytes
|
Max resident set unlimited unlimited bytes
|
Max processes 385883 385883 processes
|
Max open files 1024 1024 files
|
Max locked memory 67108864 67108864 bytes
|
Max address space unlimited unlimited bytes
|
Max file locks unlimited unlimited locks
|
Max pending signals 385883 385883 signals
|
Max msgqueue size 819200 819200 bytes
|
Max nice priority 0 0
|
Max realtime priority 0 0
|
Max realtime timeout unlimited unlimited us
|
Core pattern: |/usr/share/apport/apport %p %s %c %d %P %E
|