2016-12-18 10:55:37 139693290563776 [Note] /home/markusjm/mdb-10//bin/mysqld (mysqld 10.2.3-MariaDB-log) starting as process 28566 ...
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: PUNCH HOLE support available
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Uses event mutexes
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Using Linux native AIO
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Number of pools: 1
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Using SSE2 crc32 instructions
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Completed initialization of buffer pool
2016-12-18 10:55:37 139692211132160 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Tablespace ID 0 name innodb_system:Default tablespace encryption mode scheme unencrypted
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Highest supported file format is Barracuda.
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Log scan progressed past the checkpoint lsn 6914331
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Doing recovery: scanned up to log sequence number 6914340
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Doing recovery: scanned up to log sequence number 6914340
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Database was not shutdown normally!
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Starting crash recovery.
InnoDB: Last MySQL binlog file position 0 778, file name /home/markusjm/mariacluster/master/log/binlog.000008
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-12-18 10:55:37 139693290563776 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-12-18 10:55:38 139693290563776 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2016-12-18 10:55:38 139693290563776 [Note] InnoDB: Tablespace ID 19 name innodb_temporary:Default tablespace encryption mode scheme unencrypted
2016-12-18 10:55:38 139693290563776 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-12-18 10:55:38 139693290563776 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-12-18 10:55:38 139693290563776 [Note] InnoDB: Waiting for purge to start
2016-12-18 10:55:38 139693290563776 [Note] InnoDB: 5.7.14 started; log sequence number 6914340
2016-12-18 10:55:38 139693290563776 [Note] Plugin 'FEEDBACK' is disabled.
2016-12-18 10:55:38 139692110509824 [Note] InnoDB: Loading buffer pool(s) from /home/markusjm/mariacluster/master/data/ib_buffer_pool
2016-12-18 10:55:38 139693290563776 [Note] Recovering after a crash using /home/markusjm/mariacluster//master/log/binlog
2016-12-18 10:55:38 139693290563776 [Note] Starting crash recovery...
2016-12-18 10:55:38 139693290563776 [Note] Crash recovery finished.
2016-12-18 10:55:38 139692110509824 [Note] InnoDB: Buffer pool(s) load completed at 161218 10:55:38
2016-12-18 10:55:38 139693290563776 [Note] Server socket created on IP: '::'.
2016-12-18 10:55:38 139693290563776 [Note] /home/markusjm/mdb-10//bin/mysqld: ready for connections.
Version: '10.2.3-MariaDB-log'  socket: '/home/markusjm/mariacluster//master/master.sock'  port: 3000  Source distribution
2016-12-18 10:55:42 139693289599744 [Note] Start asynchronous binlog_dump to slave (server_id: 3002), pos(binlog.000012, 339)
2016-12-18 10:55:42 139693288993536 [Note] Start asynchronous binlog_dump to slave (server_id: 3001), pos(binlog.000012, 339)
2016-12-18 10:55:42 139693289296640 [Note] Start asynchronous binlog_dump to slave (server_id: 3003), pos(binlog.000012, 339)
161218 10:55: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.2.3-MariaDB-log
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=4
max_threads=4098
thread_count=11
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 9052831 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0x7f0c95814bc8
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 = 0x7f0cdd316918 thread_stack 0x48c00
/home/markusjm/mdb-10//bin/mysqld(my_print_stacktrace+0x29)[0x556a9c2a2959]
/home/markusjm/mdb-10//bin/mysqld(handle_fatal_signal+0x375)[0x556a9bd96c85]
/lib64/libpthread.so.0(+0x115c0)[0x7f0ce0b685c0]
/home/markusjm/mdb-10//bin/mysqld(_ZN4JOIN21make_aggr_tables_infoEv+0xb57)[0x556a9bc612b7]
/home/markusjm/mdb-10//bin/mysqld(_ZN4JOIN14optimize_innerEv+0xbd4)[0x556a9bc69164]
/home/markusjm/mdb-10//bin/mysqld(_ZN4JOIN8optimizeEv+0x3a)[0x556a9bc6b17a]
mysys/stacktrace.c:268(my_print_stacktrace)[0x556a9bc6cfcf]
sql/signal_handler.cc:166(handle_fatal_signal)[0x556a9bc6d154]
sql/sql_select.cc:2713(JOIN::make_aggr_tables_info())[0x556a9bc170ee]
sql/sql_parse.cc:6349(execute_sqlcom_select(THD*, TABLE_LIST*))[0x556a9bc237ed]
sql/sql_parse.cc:7790(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x556a9bc2624d]
sql/sql_parse.cc:1799(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x556a9bc28d01]
sql/sql_parse.cc:1358(do_command(THD*))[0x556a9bc2945f]
sql/sql_connect.cc:1354(do_handle_one_connection(CONNECT*))[0x556a9bcdf1e4]
sql/sql_connect.cc:1262(handle_one_connection)[0x556a9bcdf374]
/lib64/libpthread.so.0(+0x76ca)[0x7f0ce0b5e6ca]
/lib64/libc.so.6(clone+0x5f)[0x7f0cde7dff6f]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f0c958420a0): select avg(1) over (order by avg(1))
Connection ID (thread ID): 11
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.
161218 10:55:46 mysqld_safe Number of processes running now: 0
161218 10:55:46 mysqld_safe mysqld restarted
2016-12-18 10:55:46 139770023127232 [Note] /home/markusjm/mdb-10//bin/mysqld (mysqld 10.2.3-MariaDB-log) starting as process 28642 ...
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: PUNCH HOLE support available
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Uses event mutexes
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Using Linux native AIO
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Number of pools: 1
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Using SSE2 crc32 instructions
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Completed initialization of buffer pool
2016-12-18 10:55:46 139768943826688 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Tablespace ID 0 name innodb_system:Default tablespace encryption mode scheme unencrypted
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Highest supported file format is Barracuda.
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Log scan progressed past the checkpoint lsn 6914359
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Doing recovery: scanned up to log sequence number 6914368
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Doing recovery: scanned up to log sequence number 6914368
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Database was not shutdown normally!
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Starting crash recovery.
InnoDB: Last MySQL binlog file position 0 778, file name /home/markusjm/mariacluster/master/log/binlog.000008
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-12-18 10:55:46 139770023127232 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-12-18 10:55:47 139770023127232 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2016-12-18 10:55:47 139770023127232 [Note] InnoDB: Tablespace ID 20 name innodb_temporary:Default tablespace encryption mode scheme unencrypted
2016-12-18 10:55:47 139770023127232 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-12-18 10:55:47 139770023127232 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-12-18 10:55:47 139770023127232 [Note] InnoDB: Waiting for purge to start
2016-12-18 10:55:47 139770023127232 [Note] InnoDB: 5.7.14 started; log sequence number 6914368
2016-12-18 10:55:47 139770023127232 [Note] Plugin 'FEEDBACK' is disabled.
2016-12-18 10:55:47 139768843204352 [Note] InnoDB: Loading buffer pool(s) from /home/markusjm/mariacluster/master/data/ib_buffer_pool
2016-12-18 10:55:47 139770023127232 [Note] Recovering after a crash using /home/markusjm/mariacluster//master/log/binlog
2016-12-18 10:55:47 139770023127232 [Note] Starting crash recovery...
2016-12-18 10:55:47 139770023127232 [Note] Crash recovery finished.
2016-12-18 10:55:47 139768843204352 [Note] InnoDB: Buffer pool(s) load completed at 161218 10:55:47
2016-12-18 10:55:47 139770023127232 [Note] Server socket created on IP: '::'.
2016-12-18 10:55:47 139770023127232 [Note] /home/markusjm/mdb-10//bin/mysqld: ready for connections.
Version: '10.2.3-MariaDB-log'  socket: '/home/markusjm/mariacluster//master/master.sock'  port: 3000  Source distribution
2016-12-18 10:55:51 139770022163200 [Note] Start asynchronous binlog_dump to slave (server_id: 3001), pos(binlog.000013, 339)
2016-12-18 10:55:51 139770021860096 [Note] Start asynchronous binlog_dump to slave (server_id: 3003), pos(binlog.000013, 339)
2016-12-18 10:55:51 139770021556992 [Note] Start asynchronous binlog_dump to slave (server_id: 3002), pos(binlog.000013, 339)
