==48380==ERROR: AddressSanitizer: use-after-poison on address 0x6210000912a8 at pc 0x55962df96d2b bp 0x7f36fd5eb960 sp 0x7f36fd5eb950
|
READ of size 1 at 0x6210000912a8 thread T5
|
#0 0x55962df96d2a in _mi_pack_key /data/src/10.5/storage/myisam/mi_key.c:295
|
#1 0x55962e03d574 in mi_rkey /data/src/10.5/storage/myisam/mi_rkey.c:62
|
#2 0x55962df2fe2b in ha_myisam::index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function) /data/src/10.5/storage/myisam/ha_myisam.cc:1969
|
#3 0x55962cbc7591 in handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function) /data/src/10.5/sql/handler.cc:3137
|
#4 0x55962cbe25d5 in handler::read_range_first(st_key_range const*, st_key_range const*, bool, bool) /data/src/10.5/sql/handler.cc:6217
|
#5 0x55962cfecc8c in QUICK_RANGE_SELECT::get_next_prefix(unsigned int, unsigned int, unsigned char*) /data/src/10.5/sql/opt_range.cc:12742
|
#6 0x55962d0002bc in QUICK_GROUP_MIN_MAX_SELECT::next_prefix() /data/src/10.5/sql/opt_range.cc:15573
|
#7 0x55962cffe9c1 in QUICK_GROUP_MIN_MAX_SELECT::get_next() /data/src/10.5/sql/opt_range.cc:15315
|
#8 0x55962d021933 in rr_quick /data/src/10.5/sql/records.cc:403
|
#9 0x55962c1dc231 in READ_RECORD::read_record() /data/src/10.5/sql/records.h:80
|
#10 0x55962c4f2f0f in join_init_read_record(st_join_table*) /data/src/10.5/sql/sql_select.cc:21845
|
#11 0x55962c4ebfe9 in sub_select(JOIN*, st_join_table*, bool) /data/src/10.5/sql/sql_select.cc:20877
|
#12 0x55962c4ea2ab in do_select /data/src/10.5/sql/sql_select.cc:20414
|
#13 0x55962c475e75 in JOIN::exec_inner() /data/src/10.5/sql/sql_select.cc:4516
|
#14 0x55962c47347f in JOIN::exec() /data/src/10.5/sql/sql_select.cc:4296
|
#15 0x55962c4778c4 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /data/src/10.5/sql/sql_select.cc:4773
|
#16 0x55962c448db4 in handle_select(THD*, LEX*, select_result*, unsigned long) /data/src/10.5/sql/sql_select.cc:444
|
#17 0x55962c3b0ba3 in execute_sqlcom_select /data/src/10.5/sql/sql_parse.cc:6314
|
#18 0x55962c39fb44 in mysql_execute_command(THD*) /data/src/10.5/sql/sql_parse.cc:4005
|
#19 0x55962c3bbefd in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.5/sql/sql_parse.cc:8100
|
#20 0x55962c391db8 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.5/sql/sql_parse.cc:1891
|
#21 0x55962c38e6f7 in do_command(THD*) /data/src/10.5/sql/sql_parse.cc:1370
|
#22 0x55962c7d986a in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1418
|
#23 0x55962c7d9083 in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1312
|
#24 0x55962d445c76 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#25 0x7f3706f4a608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477
|
#26 0x7f3706b1d292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
|
|
0x6210000912a8 is located 424 bytes inside of 4196-byte region [0x621000091100,0x621000092164)
|
allocated by thread T5 here:
|
#0 0x7f3707613bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
|
#1 0x55962e0fbb43 in sf_malloc /data/src/10.5/mysys/safemalloc.c:121
|
#2 0x55962e0c9347 in my_malloc /data/src/10.5/mysys/my_malloc.c:90
|
#3 0x55962e0a50fb in alloc_root /data/src/10.5/mysys/my_alloc.c:244
|
#4 0x55962cffc126 in QUICK_GROUP_MIN_MAX_SELECT::init() /data/src/10.5/sql/opt_range.cc:14973
|
#5 0x55962cffaf73 in TRP_GROUP_MIN_MAX::make_quick(PARAM*, bool, st_mem_root*) /data/src/10.5/sql/opt_range.cc:14814
|
#6 0x55962cfaa2a5 in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool, bool) /data/src/10.5/sql/opt_range.cc:3055
|
#7 0x55962c477fca in get_quick_record_count /data/src/10.5/sql/sql_select.cc:4817
|
#8 0x55962c47ee98 in make_join_statistics /data/src/10.5/sql/sql_select.cc:5544
|
#9 0x55962c45d933 in JOIN::optimize_inner() /data/src/10.5/sql/sql_select.cc:2296
|
#10 0x55962c456e2f in JOIN::optimize() /data/src/10.5/sql/sql_select.cc:1668
|
#11 0x55962c4776cf in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /data/src/10.5/sql/sql_select.cc:4759
|
#12 0x55962c448db4 in handle_select(THD*, LEX*, select_result*, unsigned long) /data/src/10.5/sql/sql_select.cc:444
|
#13 0x55962c3b0ba3 in execute_sqlcom_select /data/src/10.5/sql/sql_parse.cc:6314
|
#14 0x55962c39fb44 in mysql_execute_command(THD*) /data/src/10.5/sql/sql_parse.cc:4005
|
#15 0x55962c3bbefd in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.5/sql/sql_parse.cc:8100
|
#16 0x55962c391db8 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.5/sql/sql_parse.cc:1891
|
#17 0x55962c38e6f7 in do_command(THD*) /data/src/10.5/sql/sql_parse.cc:1370
|
#18 0x55962c7d986a in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1418
|
#19 0x55962c7d9083 in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1312
|
#20 0x55962d445c76 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#21 0x7f3706f4a608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477
|
|
Thread T5 created by T0 here:
|
#0 0x7f3707540805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
|
#1 0x55962d440c24 in my_thread_create /data/src/10.5/storage/perfschema/my_thread.h:48
|
#2 0x55962d446069 in pfs_spawn_thread_v1 /data/src/10.5/storage/perfschema/pfs.cc:2252
|
#3 0x55962c07e652 in inline_mysql_thread_create /data/src/10.5/include/mysql/psi/mysql_thread.h:1323
|
#4 0x55962c094991 in create_thread_to_handle_connection(CONNECT*) /data/src/10.5/sql/mysqld.cc:6010
|
#5 0x55962c095010 in create_new_thread(CONNECT*) /data/src/10.5/sql/mysqld.cc:6069
|
#6 0x55962c09536d in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /data/src/10.5/sql/mysqld.cc:6134
|
#7 0x55962c095fbf in handle_connections_sockets() /data/src/10.5/sql/mysqld.cc:6261
|
#8 0x55962c09418d in mysqld_main(int, char**) /data/src/10.5/sql/mysqld.cc:5656
|
#9 0x55962c07d11c in main /data/src/10.5/sql/main.cc:25
|
#10 0x7f3706a220b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
|
SUMMARY: AddressSanitizer: use-after-poison /data/src/10.5/storage/myisam/mi_key.c:295 in _mi_pack_key
|
Shadow bytes around the buggy address:
|
0x0c428000a200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c428000a210: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c428000a220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c428000a230: 00 00 00 00 f7 00 02 f7 00 02 f7 00 00 00 00 00
|
0x0c428000a240: 00 00 00 00 00 00 00 00 00 00 00 f7 04 f7 00 00
|
=>0x0c428000a250: 00 00 00 f7 06[f7]06 f7 00 00 00 00 00 00 00 00
|
0x0c428000a260: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c428000a270: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c428000a280: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c428000a290: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
|
0x0c428000a2a0: 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
|
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
|
==48380==ABORTING
|
211212 22:24:06 [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.14-MariaDB-debug-log
|
key_buffer_size=1048576
|
read_buffer_size=131072
|
max_used_connections=1
|
max_threads=153
|
thread_count=1
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 63752 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 = 0x7f36fd5eecd0 thread_stack 0x100000
|
??:0(__interceptor_tcgetattr)[0x7f3707572d30]
|
mysys/stacktrace.c:212(my_print_stacktrace)[0x55962e0d998f]
|
sql/signal_handler.cc:225(handle_fatal_signal)[0x55962cbaba6d]
|
sigaction.c:0(__restore_rt)[0x7f3706f563c0]
|
??:0(gsignal)[0x7f3706a4118b]
|
??:0(abort)[0x7f3706a20859]
|
??:0(__sanitizer_set_report_fd)[0x7f37076316a2]
|
??:0(__sanitizer_get_module_and_offset_for_pc)[0x7f370763c24c]
|
??:0(__sanitizer_ptr_cmp)[0x7f370761d8ec]
|
??:0(__asan_on_error)[0x7f370761d363]
|
??:0(__asan_report_load1)[0x7f370761de4b]
|
myisam/mi_key.c:295(_mi_pack_key)[0x55962df96d2b]
|
myisam/mi_rkey.c:62(mi_rkey)[0x55962e03d575]
|
myisam/ha_myisam.cc:1969(ha_myisam::index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function))[0x55962df2fe2c]
|
sql/handler.cc:3137(handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function))[0x55962cbc7592]
|
sql/handler.cc:6217(handler::read_range_first(st_key_range const*, st_key_range const*, bool, bool))[0x55962cbe25d6]
|
sql/opt_range.cc:12742(QUICK_RANGE_SELECT::get_next_prefix(unsigned int, unsigned int, unsigned char*))[0x55962cfecc8d]
|
sql/opt_range.cc:15573(QUICK_GROUP_MIN_MAX_SELECT::next_prefix())[0x55962d0002bd]
|
sql/opt_range.cc:15315(QUICK_GROUP_MIN_MAX_SELECT::get_next())[0x55962cffe9c2]
|
sql/records.cc:403(rr_quick(READ_RECORD*))[0x55962d021934]
|
sql/records.h:80(READ_RECORD::read_record())[0x55962c1dc232]
|
sql/sql_select.cc:21845(join_init_read_record(st_join_table*))[0x55962c4f2f10]
|
sql/sql_select.cc:20877(sub_select(JOIN*, st_join_table*, bool))[0x55962c4ebfea]
|
sql/sql_select.cc:20414(do_select(JOIN*, Procedure*))[0x55962c4ea2ac]
|
sql/sql_select.cc:4516(JOIN::exec_inner())[0x55962c475e76]
|
sql/sql_select.cc:4297(JOIN::exec())[0x55962c473480]
|
sql/sql_select.cc:4775(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55962c4778c5]
|
sql/sql_select.cc:444(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55962c448db5]
|
sql/sql_parse.cc:6314(execute_sqlcom_select(THD*, TABLE_LIST*))[0x55962c3b0ba4]
|
sql/sql_parse.cc:4005(mysql_execute_command(THD*))[0x55962c39fb45]
|
sql/sql_parse.cc:8100(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55962c3bbefe]
|
sql/sql_parse.cc:1894(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55962c391db9]
|
sql/sql_parse.cc:1370(do_command(THD*))[0x55962c38e6f8]
|
sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x55962c7d986b]
|
sql/sql_connect.cc:1314(handle_one_connection)[0x55962c7d9084]
|
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x55962d445c77]
|
nptl/pthread_create.c:478(start_thread)[0x7f3706f4a609]
|
??:0(clone)[0x7f3706b1d293]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x62b0000382a8): SELECT b, a FROM t1 WHERE b <> 'p' OR a = 4 GROUP BY b, a HAVING a <= 7
|
|
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_JVEa/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 unlimited unlimited bytes
|
Max resident set unlimited unlimited bytes
|
Max processes 385674 385674 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 385674 385674 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
|