2020-07-07 15:35:11 0 [Note] /d1/git/10.5/sql/mysqld (mysqld 10.5.5-MariaDB-debug-log) starting as process 31173 ...
2020-07-07 15:35:11 0 [Warning] setrlimit could not change the size of core files to 'infinity';  We may not be able to generate a core file on signals
2020-07-07 15:35:11 0 [Note] RocksDB: 2 column families found
2020-07-07 15:35:11 0 [Note] RocksDB: Column Families at start:
2020-07-07 15:35:11 0 [Note]   cf=default
2020-07-07 15:35:11 0 [Note]     write_buffer_size=67108864
2020-07-07 15:35:11 0 [Note]     target_file_size_base=67108864
2020-07-07 15:35:11 0 [Note]   cf=__system__
2020-07-07 15:35:11 0 [Note]     write_buffer_size=67108864
2020-07-07 15:35:11 0 [Note]     target_file_size_base=67108864
2020-07-07 15:35:11 0 [Note] RocksDB: Table_store: loaded DDL data for 0 tables
2020-07-07 15:35:11 0 [Note] RocksDB: global statistics using get_sched_indexer_t indexer
2020-07-07 15:35:11 0 [Note] MyRocks storage engine plugin has been successfully initialized.
2020-07-07 15:35:11 0 [Note] InnoDB: Using Linux native AIO
2020-07-07 15:35:11 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
2020-07-07 15:35:11 0 [Note] InnoDB: Uses event mutexes
2020-07-07 15:35:11 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-07-07 15:35:11 0 [Note] InnoDB: Number of pools: 1
2020-07-07 15:35:11 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
2020-07-07 15:35:11 0 [Note] mysqld: O_TMPFILE is not supported on /d1/tmp/vtornik/2/tmp (disabling future attempts)
2020-07-07 15:35:11 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2020-07-07 15:35:11 0 [Note] InnoDB: Completed initialization of buffer pool
2020-07-07 15:35:11 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-07-07 15:35:11 0 [Note] InnoDB: 128 rollback segments are active.
2020-07-07 15:35:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-07-07 15:35:11 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-07-07 15:35:11 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-07-07 15:35:11 0 [Note] InnoDB: 10.5.5 started; log sequence number 45617; transaction id 21
2020-07-07 15:35:11 0 [Note] InnoDB: Loading buffer pool(s) from /d1/tmp/vtornik/2/data/ib_buffer_pool
2020-07-07 15:35:11 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-07-07 15:35:11 0 [Note] InnoDB: Buffer pool(s) load completed at 200707 15:35:11
2020-07-07 15:35:11 0 [Note] Server socket created on IP: '::'.
2020-07-07 15:35:11 0 [Note] Reading of all Master_info entries succeeded
2020-07-07 15:35:11 0 [Note] Added new Master_info '' to hash table
2020-07-07 15:35:11 0 [Note] /d1/git/10.5/sql/mysqld: ready for connections.
Version: '10.5.5-MariaDB-debug-log'  socket: '/d1/tmp/vtornik/2/mysql.sock'  port: 19300  Source distribution
2020-07-07 15:36:04 13 [Warning] Sort aborted, host: localhost, user: rqg, thread: 13, query: INSERT INTO transforms.trigger231234 SELECT /* QNO 28420 CON_ID 13 */ alias1.`pk` AS field1 FROM ( `table0_myisam_int` AS alias1, `table0_myisam_int` AS alias2 ) WHERE alias1.`col_int` >= 's' OR ( alias1.`pk` = alias2.`pk` AND NOT EXISTS ( ( SELECT SQ1_alias1.`col_int` AS SQ1_cfield1 FROM ( `table0_myisam_int` AS SQ1_alias1 RIGHT OUTER JOIN `table0_myisam_int` AS SQ1_alias2 ON (SQ1_alias2.`col_int` = SQ1_alias1.`pk` ) ) WHERE SQ1_alias2.`pk` = SQ1_alias1.`pk` HAVING SQ1_cfield1 <> 'c') ) ) GROUP BY field1 HAVING field1 = 'longtime'
=================================================================
==31173==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55ed61ea2418 at pc 0x55ed5dd21f16 bp 0x7efe558762f0 sp 0x7efe558762e8
READ of size 8 at 0x55ed61ea2418 thread T58
    #0 0x55ed5dd21f15 in update_ref_and_keys /d1/git/10.5/sql/sql_select.cc:6739
    #1 0x55ed5dd11edd in make_join_statistics /d1/git/10.5/sql/sql_select.cc:5040
    #2 0x55ed5dcf5291 in JOIN::optimize_inner() /d1/git/10.5/sql/sql_select.cc:2242
    #3 0x55ed5dcee83c in JOIN::optimize() /d1/git/10.5/sql/sql_select.cc:1618
    #4 0x55ed5dbce62f in st_select_lex::optimize_unflattened_subqueries(bool) /d1/git/10.5/sql/sql_lex.cc:4792
    #5 0x55ed5e16106a in JOIN::optimize_unflattened_subqueries() /d1/git/10.5/sql/opt_subselect.cc:5557
    #6 0x55ed5dcfd316 in JOIN::optimize_stage2() /d1/git/10.5/sql/sql_select.cc:3028
    #7 0x55ed5dcf55a5 in JOIN::optimize_inner() /d1/git/10.5/sql/sql_select.cc:2268
    #8 0x55ed5dcee83c in JOIN::optimize() /d1/git/10.5/sql/sql_select.cc:1618
    #9 0x55ed5dd0e851 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*) /d1/git/10.5/sql/sql_select.cc:4641
    #10 0x55ed5dce11c1 in handle_select(THD*, LEX*, select_result*, unsigned long) /d1/git/10.5/sql/sql_select.cc:417
    #11 0x55ed5dc47ea1 in mysql_execute_command(THD*) /d1/git/10.5/sql/sql_parse.cc:4691
    #12 0x55ed5da01787 in sp_instr_stmt::exec_core(THD*, unsigned int*) /d1/git/10.5/sql/sp_head.cc:3765
    #13 0x55ed5d9ffe91 in sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /d1/git/10.5/sql/sp_head.cc:3492
    #14 0x55ed5da00f35 in sp_instr_stmt::execute(THD*, unsigned int*) /d1/git/10.5/sql/sp_head.cc:3671
    #15 0x55ed5d9f23d9 in sp_head::execute(THD*, bool) /d1/git/10.5/sql/sp_head.cc:1435
    #16 0x55ed5d9f547c in sp_head::execute_trigger(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_grant_info*) /d1/git/10.5/sql/sp_head.cc:1913
    #17 0x55ed5df012cb in Table_triggers_list::process_triggers(THD*, trg_event_type, trg_action_time_type, bool) /d1/git/10.5/sql/sql_trigger.cc:2239
    #18 0x55ed5dad37aa in fill_record_n_invoke_before_triggers(THD*, TABLE*, List<Item>&, List<Item>&, bool, trg_event_type) /d1/git/10.5/sql/sql_base.cc:8620
    #19 0x55ed5db8279e in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /d1/git/10.5/sql/sql_insert.cc:984
    #20 0x55ed5dc468b6 in mysql_execute_command(THD*) /d1/git/10.5/sql/sql_parse.cc:4545
    #21 0x55ed5dc5e6c5 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /d1/git/10.5/sql/sql_parse.cc:7993
    #22 0x55ed5dc355de in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /d1/git/10.5/sql/sql_parse.cc:1866
    #23 0x55ed5dc31ef6 in do_command(THD*) /d1/git/10.5/sql/sql_parse.cc:1347
    #24 0x55ed5e05667c in do_handle_one_connection(CONNECT*, bool) /d1/git/10.5/sql/sql_connect.cc:1411
    #25 0x55ed5e055fd9 in handle_one_connection /d1/git/10.5/sql/sql_connect.cc:1313
    #26 0x55ed5ed0cf09 in pfs_spawn_thread /d1/git/10.5/storage/perfschema/pfs.cc:2201
    #27 0x7efe8179dfa2 in start_thread /build/glibc-vjB4T1/glibc-2.28/nptl/pthread_create.c:486
    #28 0x7efe80da44ce in clone (/lib/x86_64-linux-gnu/libc.so.6+0xf94ce)

0x55ed61ea2418 is located 20 bytes to the right of global variable 'TIME_FUZZY_DATES' defined in '/d1/git/10.5/sql/sql_basic_types.h:312:3' (0x55ed61ea2400) of size 4
0x55ed61ea2418 is located 40 bytes to the left of global variable 'TIME_TIME_ONLY' defined in '/d1/git/10.5/sql/sql_basic_types.h:313:3' (0x55ed61ea2440) of size 4
SUMMARY: AddressSanitizer: global-buffer-overflow /d1/git/10.5/sql/sql_select.cc:6739 in update_ref_and_keys
Shadow bytes around the buggy address:
  0x0abe2c3cc430: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc440: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc450: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc460: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc470: 01 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
=>0x0abe2c3cc480: 04 f9 f9[f9]f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc490: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc4a0: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc4b0: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc4c0: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
  0x0abe2c3cc4d0: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
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
Thread T58 created by T0 here:
    #0 0x7efe81807db0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x50db0)
    #1 0x55ed5ed07e00 in my_thread_create /d1/git/10.5/storage/perfschema/my_thread.h:34
    #2 0x55ed5ed0d2f8 in pfs_spawn_thread_v1 /d1/git/10.5/storage/perfschema/pfs.cc:2252
    #3 0x55ed5d93df94 in inline_mysql_thread_create /d1/git/10.5/include/mysql/psi/mysql_thread.h:1321
    #4 0x55ed5d9535d8 in create_thread_to_handle_connection(CONNECT*) /d1/git/10.5/sql/mysqld.cc:6018
    #5 0x55ed5d953c46 in create_new_thread(CONNECT*) /d1/git/10.5/sql/mysqld.cc:6077
    #6 0x55ed5d953faa in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /d1/git/10.5/sql/mysqld.cc:6142
    #7 0x55ed5d954be9 in handle_connections_sockets() /d1/git/10.5/sql/mysqld.cc:6269
    #8 0x55ed5d952e3f in mysqld_main(int, char**) /d1/git/10.5/sql/mysqld.cc:5664
    #9 0x55ed5d93c774 in main /d1/git/10.5/sql/main.cc:25
    #10 0x7efe80ccf09a in __libc_start_main ../csu/libc-start.c:308

==31173==ABORTING
