180808 17:32:59 [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.3.7-MariaDB-log key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=3 max_threads=65537 thread_count=8 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 136179 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x2199a20fd28 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!Item_field::fix_fields()[item.cc:6141] mysqld.exe!Item_direct_view_ref::fix_fields()[item.cc:9025] mysqld.exe!Item_func::fix_fields()[item_func.cc:363] mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1652] mysqld.exe!JOIN::optimize()[sql_select.cc:1451] mysqld.exe!st_select_lex_unit::optimize()[sql_union.cc:1353] mysqld.exe!mysql_derived_optimize()[sql_derived.cc:915] mysqld.exe!mysql_handle_single_derived()[sql_derived.cc:197] mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1697] mysqld.exe!JOIN::optimize()[sql_select.cc:1451] mysqld.exe!mysql_select()[sql_select.cc:4197] mysqld.exe!handle_select()[sql_select.cc:370] mysqld.exe!execute_sqlcom_select()[sql_parse.cc:6545] mysqld.exe!mysql_execute_command()[sql_parse.cc:3768] mysqld.exe!mysql_parse()[sql_parse.cc:8025] mysqld.exe!dispatch_command()[sql_parse.cc:1848] mysqld.exe!do_command()[sql_parse.cc:1390] mysqld.exe!threadpool_process_request()[threadpool_common.cc:358] mysqld.exe!tp_callback()[threadpool_common.cc:186] ntdll.dll!RtlSetThreadWorkOnBehalfTicket() ntdll.dll!RtlSetThreadWorkOnBehalfTicket() KERNEL32.DLL!BaseThreadInitThunk() ntdll.dll!RtlUserThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x2199a21f340): select * from ( SELECT vw_tbl_all.* FROM vw_tbl_all LEFT JOIN tbl_main on tbl_main.tbl_main_id = vw_tbl_all.tbl_main_id LEFT JOIN tbl_sub a ON a.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub b ON b.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub c ON c.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub d ON d.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub e ON e.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub f ON f.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub g ON g.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub h ON h.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub i ON i.tbl_main_id = tbl_main.tbl_main_id UNION ALL SELECT vw_tbl_all.* FROM vw_tbl_all LEFT JOIN tbl_main on tbl_main.tbl_main_id = vw_tbl_all.tbl_main_id LEFT JOIN tbl_sub a ON a.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub b ON b.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub c ON c.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub d ON d.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub e ON e.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub f ON f.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub g ON g.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub h ON h.tbl_main_id = tbl_main.tbl_main_id LEFT JOIN tbl_sub i ON i.tbl_main_id = tbl_main.tbl_main_id ) tmp WHERE tmp.tbl_main_id > 1 Connection ID (thread ID): 9 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,split_materialized=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. 2018-08-08 17:33:26 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2018-08-08 17:33:26 0 [Note] InnoDB: Uses event mutexes 2018-08-08 17:33:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-08-08 17:33:26 0 [Note] InnoDB: Number of pools: 1 2018-08-08 17:33:26 0 [Note] InnoDB: Using SSE2 crc32 instructions 2018-08-08 17:33:26 0 [Note] InnoDB: Initializing buffer pool, total size = 2G, instances = 8, chunk size = 128M 2018-08-08 17:33:26 0 [Note] InnoDB: Completed initialization of buffer pool 2018-08-08 17:33:26 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=5958235732