180712 11:00:43 [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.14-MariaDB-log key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=1 max_threads=153 thread_count=7 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467245 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f3394000bf8 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 = 0x7f340427bcf8 thread_stack 0x49000 /usr/sbin/mysqld(my_print_stacktrace+0x3c)[0x562b5e01cf3c] /usr/sbin/mysqld(handle_fatal_signal+0x57b)[0x562b5db5260b] /lib64/libpthread.so.0(+0x122e0)[0x7f341bdd32e0] /usr/sbin/mysqld(_Z34set_field_to_null_with_conversionsP5Fieldb+0x0)[0x562b5db4d9d0] /usr/sbin/mysqld(_ZN4Item13save_in_fieldEP5Fieldb+0x22c)[0x562b5db60d8c] /usr/sbin/mysqld(_Z19compute_window_funcP3THDR4ListI16Item_window_funcERS1_I14Cursor_managerEP5TABLEP9SORT_INFO+0x4b5)[0x562b5dae2745] /usr/sbin/mysqld(_ZN18Window_func_runner4execEP3THDP5TABLEP9SORT_INFO+0xad)[0x562b5dae29fd] /usr/sbin/mysqld(_ZN17Window_funcs_sort4execEP4JOIN+0x6e)[0x562b5dae2b1e] /usr/sbin/mysqld(_ZN24Window_funcs_computation4execEP4JOIN+0x18)[0x562b5dae3328] /usr/sbin/mysqld(_ZN7AGGR_OP8end_sendEv+0xbb)[0x562b5da1beeb] /usr/sbin/mysqld(_Z24sub_select_postjoin_aggrP4JOINP13st_join_tableb+0x2d)[0x562b5da1c0cd] /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0x907)[0x562b5da1ca27] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x30)[0x562b5da1cd60] /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x1fc)[0x562b5da1cfcc] /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x17f)[0x562b5da1d84f] /usr/sbin/mysqld(+0x4cef78)[0x562b5d9c6f78] /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x6196)[0x562b5d9d3706] /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x2e9)[0x562b5d9d5fd9] /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1fe8)[0x562b5d9d8c98] /usr/sbin/mysqld(_Z10do_commandP3THD+0x23e)[0x562b5d9d962e] /usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x204)[0x562b5da94af4] /usr/sbin/mysqld(handle_one_connection+0x34)[0x562b5da94cd4] /lib64/libpthread.so.0(+0x7559)[0x7f341bdc8559] /lib64/libc.so.6(clone+0x3f)[0x7f341b21482f] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f3394010390): is an invalid pointer Connection ID (thread ID): 8 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. We think the query pointer is invalid, but we will try to print it anyway. Query: select bin(Dv64) bitSet, lag(TnNr) OVER (partition by Victorys, Points order by Victorys desc, Points desc, TnNR) as DvTnNr, TnNr, Victorys, Points, (Dv64 >> (lag(TnNr) OVER (partition by Victorys, Points order by Victorys desc, Points desc,TnNr)-1)) & 1 as Dv from lead_lag_order_bug t order by Victorys desc, Points desc, ((Dv64 >> (lag(TnNr) OVER (partition by Victorys, Points order by Victorys desc, Points desc,TnNr)-1)) & 1) desc, TnNr 2018-07-12 11:00:44 140183891716288 [Warning] InnoDB: Using innodb_file_format is deprecated and the parameter may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/ 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Uses event mutexes 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Compressed tables use zlib 1.2.11 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Using Linux native AIO 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Number of pools: 1 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Using SSE2 crc32 instructions 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Completed initialization of buffer pool 2018-07-12 11:00:44 140183132202752 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Highest supported file format is Barracuda. 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Starting crash recovery from checkpoint LSN=2141866477 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Ignoring data file './BugDB/lead_lag_order_bug.ibd' with space ID 8445, since the redo log references ./BugDB/lead_lag_order_bug.ibd with space ID 8444. 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Starting final batch to recover 19 pages from redo log. 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Last binlog file './mysql-bin.000019', position 3796809 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: 128 out of 128 rollback segments are active. 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Creating shared tablespace for temporary tables 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2018-07-12 11:00:44 140183891716288 [Note] InnoDB: 5.7.21 started; log sequence number 2141876091 2018-07-12 11:00:44 140182690981632 [Note] InnoDB: Loading buffer pool(s) from /mnt/MountPoints/mysql/ib_buffer_pool 2018-07-12 11:00:44 140183891716288 [Note] Plugin 'FEEDBACK' is disabled. 2018-07-12 11:00:44 140183891716288 [Note] Recovering after a crash using tc.log 2018-07-12 11:00:44 140183891716288 [Note] Starting crash recovery... 2018-07-12 11:00:44 140183891716288 [Note] Crash recovery finished. 2018-07-12 11:00:44 140183891716288 [Note] Server socket created on IP: '::'. 2018-07-12 11:00:44 140183891716288 [Note] Reading of all Master_info entries succeded 2018-07-12 11:00:44 140183891716288 [Note] Added new Master_info '' to hash table 2018-07-12 11:00:44 140183891716288 [Note] /usr/sbin/mysqld: ready for connections. Version: '10.2.14-MariaDB-log' socket: '/var/run/mysql/mysql.sock' port: 3306 openSUSE package 2018-07-12 11:00:44 140182690981632 [Note] InnoDB: Buffer pool(s) load completed at 180712 11:00:44