210505 14:45:37 [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.5.9-MariaDB key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=1 max_threads=65537 thread_count=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 136467 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x8afad80038 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... server.dll!JOIN::exec()[sql_select.cc:4245] server.dll!subselect_single_select_engine::exec()[item_subselect.cc:3993] server.dll!Item_subselect::exec()[item_subselect.cc:782] server.dll!Item_singlerow_subselect::val_int()[item_subselect.cc:1375] server.dll!Item_func_set_user_var::check()[item_func.cc:5089] server.dll!set_var_user::check()[set_var.cc:895] server.dll!sql_set_variables()[set_var.cc:739] server.dll!mysql_execute_command()[sql_parse.cc:5068] server.dll!mysql_parse()[sql_parse.cc:8067] server.dll!dispatch_command()[sql_parse.cc:1892] server.dll!do_command()[sql_parse.cc:1370] server.dll!threadpool_process_request()[threadpool_common.cc:363] server.dll!tp_callback()[threadpool_common.cc:194] ntdll.dll!RtlMultiByteToUnicodeN() ntdll.dll!RtlMultiByteToUnicodeN() KERNEL32.DLL!BaseThreadInitThunk() ntdll.dll!RtlUserThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x8afac92650): SET @scopeId = 3004, @NPSER = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001'), @NPSERA = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001') Connection ID (thread ID): 3 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