2018-04-09 14:44:50 140266598623424 [Warning] InnoDB: Using innodb_large_prefix is deprecated and the parameter may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Uses event mutexes
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Compressed tables use zlib 1.2.8
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Using Linux native AIO
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Number of pools: 1
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Using SSE2 crc32 instructions
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Completed initialization of buffer pool
2018-04-09 14:44:50 140265028548352 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Highest supported file format is Barracuda.
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-04-09 14:44:50 140266598623424 [Note] InnoDB: 5.7.21 started; log sequence number 59229802
2018-04-09 14:44:50 140264739944192 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-04-09 14:44:50 140266598623424 [Note] Plugin 'FEEDBACK' is disabled.
2018-04-09 14:44:50 140266598623424 [Note] Server socket created on IP: '::'.
2018-04-09 14:44:51 140266598623424 [Note] Reading of all Master_info entries succeded
2018-04-09 14:44:51 140266598623424 [Note] Added new Master_info '' to hash table
2018-04-09 14:44:51 140266598623424 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.2.13-MariaDB-10.2.13+maria~xenial-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2018-04-09 14:44:51 140264739944192 [Note] InnoDB: Buffer pool(s) load completed at 180409 14:44:51
2018-04-09 14:46:20 140264756729600 [ERROR] [FATAL] InnoDB: InnoDB is trying to free page [page id: space=0, page number=2053] though it is already marked as free in the tablespace! The tablespace free space info is corrupt. You may need to dump your tables and recreate the whole database!Please refer to https://mariadb.com/kb/en/library/xtradbinnodb-recovery-modes/ for information about forcing recovery.
180409 14:46:20 [ERROR] mysqld got signal 6 ;
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.13-MariaDB-10.2.13+maria~xenial-log
key_buffer_size=536870912
read_buffer_size=2097152
max_used_connections=1
max_threads=202
thread_count=7
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1355971 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f91d80009a8
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 = 0x7f91eeffcbc8 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x55fb1e63712e]
/usr/sbin/mysqld(handle_fatal_signal+0x345)[0x55fb1e0d1b95]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f925b5cf390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f925ab9e428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f925aba002a]
/usr/sbin/mysqld(+0xa09158)[0x55fb1e47f158]
/usr/sbin/mysqld(+0xacd317)[0x55fb1e543317]
/usr/sbin/mysqld(+0xace6e5)[0x55fb1e5446e5]
/usr/sbin/mysqld(+0xa0cf82)[0x55fb1e482f82]
/usr/sbin/mysqld(+0xa2a8a6)[0x55fb1e4a08a6]
/usr/sbin/mysqld(+0x98498a)[0x55fb1e3fa98a]
/usr/sbin/mysqld(+0x98588e)[0x55fb1e3fb88e]
/usr/sbin/mysqld(+0x941bc5)[0x55fb1e3b7bc5]
/usr/sbin/mysqld(+0x9b4a6a)[0x55fb1e42aa6a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f925b5c56ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f925ac7041d]

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

2018-04-09 14:46:26 139714112944320 [Warning] InnoDB: Using innodb_large_prefix is deprecated and the parameter may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Uses event mutexes
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Compressed tables use zlib 1.2.8
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Using Linux native AIO
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Number of pools: 1
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Using SSE2 crc32 instructions
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Completed initialization of buffer pool
2018-04-09 14:46:26 139712554350336 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Highest supported file format is Barracuda.
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Starting crash recovery from checkpoint LSN=59229821
2018-04-09 14:46:26 139714112944320 [Note] InnoDB: Starting final batch to recover 16 pages from redo log.
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: Waiting for purge to start
2018-04-09 14:46:27 139712148772608 [ERROR] [FATAL] InnoDB: InnoDB is trying to free page [page id: space=0, page number=2053] though it is already marked as free in the tablespace! The tablespace free space info is corrupt. You may need to dump your tables and recreate the whole database!Please refer to https://mariadb.com/kb/en/library/xtradbinnodb-recovery-modes/ for information about forcing recovery.
180409 14:46:27 [ERROR] mysqld got signal 6 ;
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.13-MariaDB-10.2.13+maria~xenial-log
key_buffer_size=536870912
read_buffer_size=2097152
max_used_connections=0
max_threads=202
thread_count=4
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1355971 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f11280009a8
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 = 0x7f1144ff8bc8 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x55c27b3c712e]
/usr/sbin/mysqld(handle_fatal_signal+0x345)[0x55c27ae61b95]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f11b8a68390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f11b8037428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f11b803902a]
/usr/sbin/mysqld(+0xa09158)[0x55c27b20f158]
/usr/sbin/mysqld(+0xacd317)[0x55c27b2d3317]
/usr/sbin/mysqld(+0xace6e5)[0x55c27b2d46e5]
/usr/sbin/mysqld(+0xa0cf82)[0x55c27b212f82]
/usr/sbin/mysqld(+0xa2a8a6)[0x55c27b2308a6]
/usr/sbin/mysqld(+0x98498a)[0x55c27b18a98a]
/usr/sbin/mysqld(+0x98588e)[0x55c27b18b88e]
/usr/sbin/mysqld(+0x941bc5)[0x55c27b147bc5]
/usr/sbin/mysqld(+0x9b4a6a)[0x55c27b1baa6a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f11b8a5e6ba]
2018-04-09 14:46:27 139714112944320 [Note] InnoDB: 5.7.21 started; log sequence number 59258193
2018-04-09 14:46:27 139711788082944 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-04-09 14:46:27 139714112944320 [Note] Plugin 'FEEDBACK' is disabled.
2018-04-09 14:46:27 139714112944320 [Note] Recovering after a crash using tc.log
2018-04-09 14:46:27 139714112944320 [Note] Starting crash recovery...
2018-04-09 14:46:27 139714112944320 [Note] Crash recovery finished.
2018-04-09 14:46:27 139714112944320 [Note] Server socket created on IP: '::'.
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f11b810941d]

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

