2019-08-05 14:42:54 0 [Note] /usr/bin/mysqld: ready for connections.
Version: '10.4.7-MariaDB-log'  socket: '/run/mysql/socket'  port: 16603  Source distribution
2019-08-05 15:18:04 10 [Warning] Aborted connection 10 to db: 'unconnected' user: 'unauthenticated' host: 'mythtv' (This connection closed normally without authentication)
2019-08-05 15:18:25 21 [Warning] Aborted connection 21 to db: 'unconnected' user: 'unauthenticated' host: 'springdale.moonlit-rail.com' (This connection closed normally without authentication)
2019-08-05 15:18:26 22 [Warning] Aborted connection 22 to db: 'unconnected' user: 'unauthenticated' host: 'springdale.moonlit-rail.com' (This connection closed normally without authentication)
190805 15:18:46 [ERROR] mysqld got signal 11 ;
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.4.7-MariaDB-log
key_buffer_size=536870912
read_buffer_size=33554432
max_used_connections=31
max_threads=153
thread_count=37
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 85757593 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f9a5c000c08
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 = 0x7f9b04769e88 thread_stack 0x49000
/usr/bin/mysqld(my_print_stacktrace+0x29)[0x5616326599a9]
/usr/bin/mysqld(handle_fatal_signal+0x53d)[0x56163210d2cd]
/lib64/libpthread.so.0(+0x12a80)[0x7f9b0871aa80]
/usr/bin/mysqld(_Z7sortcmpPK6StringS1_PK15charset_info_st+0xa)[0x561631f828fa]
/usr/bin/mysqld(_ZNK26Type_handler_string_result13Item_const_eqEPK10Item_constS2_b+0xe7)[0x561632045c77]
/usr/bin/mysqld(_ZN4Item15eq_by_collationEPS_bPK15charset_info_st+0x7a)[0x56163213167a]
/usr/bin/mysqld(_ZN9Item_cond14add_key_fieldsEP4JOINPP9KEY_FIELDPjyPP14SARGABLE_PARAM+0x26e)[0x561631f294fe]
/usr/bin/mysqld(_ZN13Item_cond_and14add_key_fieldsEP4JOINPP9KEY_FIELDPjyPP14SARGABLE_PARAM+0x4a)[0x561631f2924a]
/usr/bin/mysqld(+0x6d45ac)[0x561631f2a5ac]
/usr/bin/mysqld(_ZN4JOIN14optimize_innerEv+0x1a1d)[0x561631f5988d]
/usr/bin/mysqld(_ZN4JOIN8optimizeEv+0x93)[0x561631f5b5d3]
/usr/bin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0xe0)[0x561631f5c480]
/usr/bin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x18d)[0x561631f5cffd]
/usr/bin/mysqld(+0x697f5d)[0x561631eedf5d]
/usr/bin/mysqld(_Z21mysql_execute_commandP3THD+0x746d)[0x561631efd35d]
/usr/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x437)[0x561631f14747]
/usr/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0x96)[0x561631f14906]
/usr/bin/mysqld(+0x6bf74d)[0x561631f1574d]
/usr/bin/mysqld(_Z19mysqld_stmt_executeP3THDPcj+0x27)[0x561631f15837]
/usr/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0xc8a)[0x561631f0137a]
/usr/bin/mysqld(_Z10do_commandP3THD+0x15f)[0x561631f041df]
/usr/bin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x28f)[0x561631feadcf]
/usr/bin/mysqld(handle_one_connection+0x41)[0x561631feaf11]
/lib64/libpthread.so.0(+0x819c)[0x7f9b0871019c]
/lib64/libc.so.6(clone+0x3f)[0x7f9b076c24af]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f9a5c00ffa0): is an invalid pointer
Connection ID (thread ID): 14
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

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.

We think the query pointer is invalid, but we will try to print it anyway. 
Query: SELECT recordid, category,        (category = NULL) AS catmatch,        (category = '') AS typematch FROM record WHERE type = 11 AND       (category = NULL OR category = ''        OR category = 'Default') ORDER BY catmatch DESC, typematch DESC

Writing a core file...
Working directory at /var/mysql
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        0                    unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             30631                30631                processes 
Max open files            1024                 4096                 files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       30631                30631                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: core

