2019-05-23  7:17:29 0 [Note] InnoDB: Using Linux native AIO
2019-05-23  7:17:29 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-23  7:17:29 0 [Note] InnoDB: Uses event mutexes
2019-05-23  7:17:29 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2019-05-23  7:17:29 0 [Note] InnoDB: Number of pools: 1
2019-05-23  7:17:29 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-05-23  7:17:29 0 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2019-05-23  7:17:29 0 [Note] InnoDB: Completed initialization of buffer pool
2019-05-23  7:17:29 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-05-23  7:17:29 0 [Note] InnoDB: Upgrading redo log: 2*50331648 bytes; LSN=74638538951
2019-05-23  7:17:29 0 [Note] InnoDB: Starting to delete and rewrite log files.
2019-05-23  7:17:29 0 [Note] InnoDB: Setting log file ./ib_logfile101 size to 50331648 bytes
2019-05-23  7:17:29 0 [Note] InnoDB: Setting log file ./ib_logfile1 size to 50331648 bytes
2019-05-23  7:17:29 0 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2019-05-23  7:17:29 0 [Note] InnoDB: New log files created, LSN=74638538951
2019-05-23  7:17:29 0 [Note] InnoDB: Creating tablespace and datafile system tables.
2019-05-23  7:17:29 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-05-23  7:17:29 0 [Note] InnoDB: Creating sys_virtual system tables.
2019-05-23  7:17:29 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-05-23  7:17:29 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-05-23  7:17:29 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-05-23  7:17:29 0 [Note] InnoDB: Waiting for purge to start
2019-05-23  7:17:29 0 [Note] InnoDB: 10.3.15 started; log sequence number 74638538951; transaction id 402450975
2019-05-23  7:17:29 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-05-23  7:17:29 0 [Note] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool' for reading: No such file or directory
2019-05-23  7:17:29 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-05-23  7:17:29 0 [Note] Server socket created on IP: '::'.
2019-05-23  7:17:29 0 [ERROR] Missing system table mysql.roles_mapping; please run mysql_upgrade to create it
2019-05-23  7:17:29 0 [ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT'), found type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALU
2019-05-23  7:17:29 0 [ERROR] mysqld: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
2019-05-23  7:17:29 3 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
2019-05-23  7:17:29 0 [Note] Reading of all Master_info entries succeded
2019-05-23  7:17:29 0 [Note] Added new Master_info '' to hash table
2019-05-23  7:17:29 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.15-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
2019-05-23  7:17:33 6 [ERROR] InnoDB: Table `mysql`.`innodb_table_stats` not found.
2019-05-23  7:18:13 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2019-05-23  7:18:13 0 [Note] InnoDB: FTS optimize thread exiting.
2019-05-23  7:18:13 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-05-23  7:18:13 0 [Note] InnoDB: Starting shutdown...
2019-05-23  7:18:13 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2019-05-23  7:18:13 0 [Note] InnoDB: Instance 0, restricted to 8192 pages due to innodb_buf_pool_dump_pct=25
2019-05-23  7:18:13 0 [Note] InnoDB: Buffer pool(s) dump completed at 190523  7:18:13
2019-05-23  7:18:15 0 [Note] InnoDB: Shutdown completed; log sequence number 74710641364; transaction id 402574128
2019-05-23  7:18:15 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-05-23  7:18:15 0 [Note] /usr/sbin/mysqld: Shutdown complete

2019-05-23  7:18:15 0 [Note] InnoDB: Using Linux native AIO
2019-05-23  7:18:15 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-23  7:18:15 0 [Note] InnoDB: Uses event mutexes
2019-05-23  7:18:15 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2019-05-23  7:18:15 0 [Note] InnoDB: Number of pools: 1
2019-05-23  7:18:15 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-05-23  7:18:15 0 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2019-05-23  7:18:15 0 [Note] InnoDB: Completed initialization of buffer pool
2019-05-23  7:18:15 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-05-23  7:18:15 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-05-23  7:18:15 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-05-23  7:18:15 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-05-23  7:18:15 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-05-23  7:18:15 0 [Note] InnoDB: Waiting for purge to start
2019-05-23  7:18:15 0 [Note] InnoDB: 10.3.15 started; log sequence number 74710641364; transaction id 402574130
2019-05-23  7:18:15 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-05-23  7:18:15 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-05-23  7:18:15 0 [Note] Server socket created on IP: '::'.
2019-05-23  7:18:15 0 [Note] Reading of all Master_info entries succeded
2019-05-23  7:18:15 0 [Note] Added new Master_info '' to hash table
2019-05-23  7:18:15 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.15-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
2019-05-23  7:18:16 0 [Note] InnoDB: Buffer pool(s) load completed at 190523  7:18:16
2019-05-23  7:18:30 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2019-05-23  7:18:30 0 [Note] InnoDB: FTS optimize thread exiting.
2019-05-23  7:18:30 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-05-23  7:18:30 0 [Note] InnoDB: Starting shutdown...
2019-05-23  7:18:30 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2019-05-23  7:18:30 0 [Note] InnoDB: Instance 0, restricted to 8191 pages due to innodb_buf_pool_dump_pct=25
2019-05-23  7:18:30 0 [Note] InnoDB: Buffer pool(s) dump completed at 190523  7:18:30
2019-05-23  7:18:31 0 [Note] InnoDB: Shutdown completed; log sequence number 74710648900; transaction id 402574213
2019-05-23  7:18:31 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-05-23  7:18:31 0 [Note] /usr/sbin/mysqld: Shutdown complete

2019-05-23  7:18:31 0 [Note] InnoDB: Using Linux native AIO
2019-05-23  7:18:31 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-23  7:18:31 0 [Note] InnoDB: Uses event mutexes
2019-05-23  7:18:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2019-05-23  7:18:31 0 [Note] InnoDB: Number of pools: 1
2019-05-23  7:18:31 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-05-23  7:18:31 0 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2019-05-23  7:18:31 0 [Note] InnoDB: Completed initialization of buffer pool
2019-05-23  7:18:31 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-05-23  7:18:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-05-23  7:18:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-05-23  7:18:32 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-05-23  7:18:32 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-05-23  7:18:32 0 [Note] InnoDB: Waiting for purge to start
2019-05-23  7:18:32 0 [Note] InnoDB: 10.3.15 started; log sequence number 74710648900; transaction id 402574178
2019-05-23  7:18:32 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-05-23  7:18:32 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-05-23  7:18:32 0 [Note] Server socket created on IP: '::'.
2019-05-23  7:18:32 0 [Note] Reading of all Master_info entries succeded
2019-05-23  7:18:32 0 [Note] Added new Master_info '' to hash table
2019-05-23  7:18:32 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.15-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
2019-05-23  7:18:32 0 [Note] InnoDB: Buffer pool(s) load completed at 190523  7:18:32
2019-05-23 07:19:07 0x7f4c50129700  InnoDB: Assertion failure in file /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.15/storage/innobase/row/row0merge.cc line 4509
InnoDB: Failing assertion: table->get_ref_count() == 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
InnoDB: about forcing recovery.
190523  7:19:07 [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.3.15-MariaDB
key_buffer_size=134217728
read_buffer_size=8388608
max_used_connections=6
max_threads=52
thread_count=7
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 771195 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f4bd80009a8
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 = 0x7f4c50128d30 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x564852a5791e]
/usr/sbin/mysqld(handle_fatal_signal+0x30f)[0x5648524f453f]
sigaction.c:0(__restore_rt)[0x7f4c74eed5d0]
:0(__GI_raise)[0x7f4c731c1207]
:0(__GI_abort)[0x7f4c731c28f8]
/usr/sbin/mysqld(+0x4c5e9c)[0x56485223be9c]
/usr/sbin/mysqld(+0x9d9d7f)[0x56485274fd7f]
/usr/sbin/mysqld(+0x939f47)[0x5648526aff47]
/usr/sbin/mysqld(_Z17mysql_alter_tableP3THDPK25st_mysql_const_lex_stringS3_P14HA_CREATE_INFOP10TABLE_LISTP10Alter_infojP8st_orderb+0x2ab0)[0x5648523ac180]
/usr/sbin/mysqld(_Z20mysql_recreate_tableP3THDP10TABLE_LISTb+0x191)[0x5648523ad821]
/usr/sbin/mysqld(+0x68e6c1)[0x5648524046c1]
/usr/sbin/mysqld(_ZN22Sql_cmd_optimize_table7executeEP3THD+0xdb)[0x56485240570b]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x3a04)[0x56485231f404]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x22b)[0x564852324bdb]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1d3e)[0x5648523278de]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x13e)[0x56485232873e]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1aa)[0x5648523f979a]
/usr/sbin/mysqld(handle_one_connection+0x3d)[0x5648523f98bd]
pthread_create.c:0(start_thread)[0x7f4c74ee5dd5]
/lib64/libc.so.6(clone+0x6d)[0x7f4c73288ead]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f4bd8011580): OPTIMIZE TABLE `innodb_index_stats`
Connection ID (thread ID): 62
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,split_materialized=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.
Writing a core file...
Working directory at /var/lib/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            10485760             unlimited            bytes     
Max core file size        0                    unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             514548               514548               processes 
Max open files            16384                16384                files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       514548               514548               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

2019-05-23  7:19:12 0 [Note] InnoDB: Using Linux native AIO
2019-05-23  7:19:12 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-23  7:19:12 0 [Note] InnoDB: Uses event mutexes
2019-05-23  7:19:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2019-05-23  7:19:12 0 [Note] InnoDB: Number of pools: 1
2019-05-23  7:19:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-05-23  7:19:12 0 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2019-05-23  7:19:12 0 [Note] InnoDB: Completed initialization of buffer pool
2019-05-23  7:19:12 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-05-23  7:19:12 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=74710959734
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/gtid_slave_pos.ibd' with space ID 562025, since the redo log references ./mysql/gtid_slave_pos.ibd with space ID 562024.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/#sql-5161_3e.ibd' with space ID 562025. Another data file called ./mysql/gtid_slave_pos.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/#sql-5161_3e.ibd' with space ID 562025. Another data file called ./mysql/gtid_slave_pos.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/#sql-5161_3e.ibd' with space ID 562025. Another data file called ./mysql/gtid_slave_pos.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/innodb_index_stats.ibd' with space ID 562026, since the redo log references ./mysql/innodb_index_stats.ibd with space ID 562022.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/innodb_index_stats.ibd' with space ID 562022. Another data file called ./mysql/#sql-ib562032.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/#sql-5161_3e.ibd' with space ID 562026. Another data file called ./mysql/innodb_index_stats.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/innodb_index_stats.ibd' with space ID 562022. Another data file called ./mysql/#sql-ib562032.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/innodb_index_stats.ibd' with space ID 562022. Another data file called ./mysql/#sql-ib562032.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/#sql-5161_3e.ibd' with space ID 562026. Another data file called ./mysql/innodb_index_stats.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Ignoring data file './mysql/#sql-5161_3e.ibd' with space ID 562026. Another data file called ./mysql/innodb_index_stats.ibd exists with the same space ID.
2019-05-23  7:19:12 0 [Note] InnoDB: Starting final batch to recover 23 pages from redo log.
2019-05-23  7:19:13 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-05-23  7:19:13 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-05-23  7:19:13 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-05-23  7:19:13 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-05-23  7:19:13 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-05-23  7:19:13 0 [Note] InnoDB: Waiting for purge to start
2019-05-23  7:19:13 0 [Note] InnoDB: 10.3.15 started; log sequence number 74711028101; transaction id 402575275
2019-05-23  7:19:13 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-05-23  7:19:13 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-05-23  7:19:13 0 [Note] Recovering after a crash using tc.log
2019-05-23  7:19:13 0 [Note] Starting crash recovery...
2019-05-23  7:19:13 0 [Note] Crash recovery finished.
2019-05-23  7:19:13 0 [Note] Server socket created on IP: '::'.
2019-05-23  7:19:13 0 [Note] Reading of all Master_info entries succeded
2019-05-23  7:19:13 0 [Note] Added new Master_info '' to hash table
2019-05-23  7:19:13 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.15-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
2019-05-23  7:19:13 0 [Note] InnoDB: Buffer pool(s) load completed at 190523  7:19:13
2019-05-23  7:19:33 31 [ERROR] mysqld: Table './vh4395_bx4314/b_sec_session' is marked as crashed and should be repaired
2019-05-23  7:19:33 31 [Warning] Checking table:   './vh4395_bx4314/b_sec_session'
2019-05-23  7:19:33 32 [ERROR] mysqld: Table './vh4395_bx4314/b_stat_session_data' is marked as crashed and should be repaired
2019-05-23  7:19:33 32 [Warning] Checking table:   './vh4395_bx4314/b_stat_session_data'
