2018-01-22 14:35:16 2320 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2018-01-22 14:35:16 2320 [Note] InnoDB: Uses event mutexes 2018-01-22 14:35:16 2320 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-01-22 14:35:16 2320 [Note] InnoDB: Number of pools: 1 2018-01-22 14:35:16 2320 [Note] InnoDB: Using SSE2 crc32 instructions 2018-01-22 14:35:16 2320 [Note] InnoDB: Initializing buffer pool, total size = 384M, instances = 1, chunk size = 128M 2018-01-22 14:35:16 2320 [Note] InnoDB: Completed initialization of buffer pool 2018-01-22 14:35:16 2320 [Note] InnoDB: Highest supported file format is Barracuda. 2018-01-22 14:35:16 2320 [Note] InnoDB: Starting crash recovery from checkpoint LSN=3585225 2018-01-22 14:35:17 2320 [Note] InnoDB: 128 out of 128 rollback segments are active. 2018-01-22 14:35:17 2320 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2018-01-22 14:35:17 2320 [Note] InnoDB: Creating shared tablespace for temporary tables 2018-01-22 14:35:17 2320 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2018-01-22 14:35:17 2320 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB. 2018-01-22 14:35:17 2320 [Note] InnoDB: 5.7.20 started; log sequence number 3585571 2018-01-22 14:35:17 5324 [Note] InnoDB: Loading buffer pool(s) from C:\Program Files\MariaDB 10.2\data\ib_buffer_pool 2018-01-22 14:35:17 5324 [Note] InnoDB: Buffer pool(s) load completed at 180122 14:35:17 2018-01-22 14:35:17 2320 [Note] Plugin 'FEEDBACK' is disabled. 2018-01-22 14:35:17 2320 [Note] Server socket created on IP: '::'. 2018-01-22 14:35:17 2320 [Note] Reading of all Master_info entries succeded 2018-01-22 14:35:17 2320 [Note] Added new Master_info '' to hash table 2018-01-22 14:35:17 2320 [Note] C:\Program Files\MariaDB 10.2\bin\mysqld.exe: ready for connections. Version: '10.2.12-MariaDB' socket: '' port: 3306 mariadb.org binary distribution 2018-01-22 14:35:37 4412 [Note] InnoDB: DeviceIoControl(IOCTL_STORAGE_QUERY_PROPERTY) unsupported on volume \\.\C: 2018-01-22 14:38:14 5448 [ERROR] mysqld.exe: Out of memory (Needed 3828848512 bytes) 2018-01-22 14:38:14 5448 [ERROR] mysqld.exe: Out of memory (Needed 3828848512 bytes) 180122 14:38:14 [ERROR] mysqld got exception 0xc0000005 ; 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.2.12-MariaDB key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=5 max_threads=65537 thread_count=10 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 136057 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x24745b18 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... mysqld.exe!memset()[memset.asm:127] mysqld.exe!set_dynamic()[array.c:204] mysqld.exe!Explain_query::add_node()[sql_explain.cc:122] mysqld.exe!JOIN::save_explain_data_intern()[sql_select.cc:24890] mysqld.exe!JOIN::save_explain_data()[sql_select.cc:3313] mysqld.exe!JOIN::optimize()[sql_select.cc:1110] mysqld.exe!st_select_lex::optimize_unflattened_subqueries()[sql_lex.cc:3848] mysqld.exe!JOIN::optimize_inner()[sql_select.cc:2009] mysqld.exe!JOIN::optimize()[sql_select.cc:1101] mysqld.exe!???[sql_select.cc:3711] mysqld.exe!handle_select()[sql_select.cc:361] mysqld.exe!mysql_execute_command()[sql_parse.cc:4523] mysqld.exe!sp_instr_stmt::exec_core()[sp_head.cc:3266] mysqld.exe!sp_lex_keeper::reset_lex_and_exec_core()[sp_head.cc:3027] mysqld.exe!sp_instr_stmt::execute()[sp_head.cc:3180] mysqld.exe!sp_head::execute()[sp_head.cc:1336] mysqld.exe!sp_head::execute_procedure()[sp_head.cc:2135] mysqld.exe!do_execute_sp()[sql_parse.cc:2888] mysqld.exe!mysql_execute_command()[sql_parse.cc:5809] mysqld.exe!sp_instr_stmt::exec_core()[sp_head.cc:3266] mysqld.exe!sp_lex_keeper::reset_lex_and_exec_core()[sp_head.cc:3027] mysqld.exe!sp_instr_stmt::execute()[sp_head.cc:3180] mysqld.exe!sp_head::execute()[sp_head.cc:1336] mysqld.exe!sp_head::execute_procedure()[sp_head.cc:2135] mysqld.exe!do_execute_sp()[sql_parse.cc:2888] mysqld.exe!mysql_execute_command()[sql_parse.cc:5809] mysqld.exe!sp_instr_stmt::exec_core()[sp_head.cc:3266] mysqld.exe!sp_lex_keeper::reset_lex_and_exec_core()[sp_head.cc:3027] mysqld.exe!sp_instr_stmt::execute()[sp_head.cc:3180] mysqld.exe!sp_head::execute()[sp_head.cc:1336] mysqld.exe!sp_head::execute_procedure()[sp_head.cc:2135] mysqld.exe!do_execute_sp()[sql_parse.cc:2888] mysqld.exe!mysql_execute_command()[sql_parse.cc:5809] mysqld.exe!mysql_parse()[sql_parse.cc:7905] mysqld.exe!dispatch_command()[sql_parse.cc:1807] mysqld.exe!do_command()[sql_parse.cc:1359] mysqld.exe!threadpool_process_request()[threadpool_common.cc:366] mysqld.exe!tp_callback()[threadpool_common.cc:192] ntdll.dll!TpPostWork() ntdll.dll!RtlRealSuccessor() kernel32.dll!BaseThreadInitThunk() ntdll.dll!RtlUserThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x31c4ef50): INSERT INTO profileringtransfer SELECT GetCloneId(profileringtransfer.feature_id), profileringtransfer.ringtransfer_action_id, CASE WHEN profileringtransfer.controlled_profile_id in (SELECT originalid FROM tmp_profileid_cloneid) THEN GetCloneId(profileringtransfer.controlled_profile_id) ELSE profileringtransfer.controlled_profile_id END, profileringtransfer.text, profileringtransfer.onlysignalisation FROM profileringtransfer JOIN tmp_feature ON profileringtransfer.feature_id = tmp_feature.id Connection ID (thread ID): 82 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=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash.