2019-12-30  9:10:28 0 [Note] InnoDB: Using Linux native AIO
2019-12-30  9:10:28 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-12-30  9:10:28 0 [Note] InnoDB: Uses event mutexes
2019-12-30  9:10:28 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-12-30  9:10:28 0 [Note] InnoDB: Number of pools: 1
2019-12-30  9:10:28 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-12-30  9:10:28 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2019-12-30  9:10:28 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-12-30  9:10:28 0 [Note] InnoDB: Completed initialization of buffer pool
2019-12-30  9:10:28 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-12-30  9:10:28 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-12-30  9:10:28 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-12-30  9:10:28 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-12-30  9:10:28 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-12-30  9:10:28 0 [Note] InnoDB: Waiting for purge to start
2019-12-30  9:10:28 0 [Note] InnoDB: 10.4.11 started; log sequence number 60999; transaction id 21
2019-12-30  9:10:28 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-12-30  9:10:28 0 [Note] InnoDB: Buffer pool(s) load completed at 191230  9:10:28
2019-12-30  9:10:28 0 [Note] Server socket created on IP: '::1'.
2019-12-30  9:10:28 0 [Note] Reading of all Master_info entries succeeded
2019-12-30  9:10:28 0 [Note] Added new Master_info '' to hash table
2019-12-30  9:10:28 0 [Note] /usr/bin/mysqld: ready for connections.
Version: '10.4.11-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Arch Linux
2019-12-30  9:11:21 8 [Note] InnoDB: Sync to disk of `test`.`foo` started.
2019-12-30  9:11:21 8 [Note] InnoDB: Stopping purge
2019-12-30  9:11:21 8 [Note] InnoDB: Writing table metadata to './test/foo.cfg'
2019-12-30  9:11:21 8 [Note] InnoDB: Table `test`.`foo` flushed to disk
2019-12-30  9:12:20 8 [Note] InnoDB: Deleting the meta-data file './test/foo.cfg'
2019-12-30  9:12:20 8 [Note] InnoDB: Resuming purge
2019-12-30  9:12:23 8 [Note] InnoDB: Importing tablespace for table 'test/foo' that was exported from host 'MChang'
2019-12-30  9:12:23 8 [Note] InnoDB: Phase I - Update all pages
2019-12-30  9:12:23 8 [Note] InnoDB: Sync to disk
2019-12-30  9:12:23 8 [Note] InnoDB: Sync to disk - done!
2019-12-30  9:12:23 8 [Note] InnoDB: Phase III - Flush changes to disk
2019-12-30  9:12:23 8 [Note] InnoDB: Phase IV - Flush complete
2019-12-30  9:12:36 0 [Note] /usr/bin/mysqld (initiated by: root[root] @ localhost []): Normal shutdown
2019-12-30  9:12:36 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-12-30  9:12:36 0 [Note] InnoDB: FTS optimize thread exiting.
2019-12-30  9:12:36 0 [Note] InnoDB: Starting shutdown...
2019-12-30  9:12:36 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2019-12-30  9:12:36 0 [Note] InnoDB: Buffer pool(s) dump completed at 191230  9:12:36
2019-12-30  9:12:39 0 [Note] InnoDB: Shutdown completed; log sequence number 71049; transaction id 49
2019-12-30  9:12:39 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-12-30  9:12:39 0 [Note] /usr/bin/mysqld: Shutdown complete

2019-12-30  9:12:54 0 [Note] InnoDB: Using Linux native AIO
2019-12-30  9:12:54 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-12-30  9:12:54 0 [Note] InnoDB: Uses event mutexes
2019-12-30  9:12:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-12-30  9:12:54 0 [Note] InnoDB: Number of pools: 1
2019-12-30  9:12:54 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-12-30  9:12:54 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2019-12-30  9:12:54 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-12-30  9:12:54 0 [Note] InnoDB: Completed initialization of buffer pool
2019-12-30  9:12:54 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-12-30  9:12:54 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-12-30  9:12:54 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-12-30  9:12:54 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-12-30  9:12:54 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-12-30  9:12:54 0 [Note] InnoDB: Waiting for purge to start
2019-12-30  9:12:54 0 [Note] InnoDB: 10.4.11 started; log sequence number 71049; transaction id 51
2019-12-30  9:12:54 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-12-30  9:12:54 0 [Note] InnoDB: Buffer pool(s) load completed at 191230  9:12:54
2019-12-30  9:12:54 0 [Note] Server socket created on IP: '::1'.
2019-12-30  9:12:54 0 [Note] Reading of all Master_info entries succeeded
2019-12-30  9:12:54 0 [Note] Added new Master_info '' to hash table
2019-12-30  9:12:54 0 [Note] /usr/bin/mysqld: ready for connections.
Version: '10.4.11-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Arch Linux
2019-12-30 09:13:02 0x7f91f41ae700  InnoDB: Assertion failure in file /build/mariadb/src/mariadb-10.4.11/storage/innobase/btr/btr0btr.cc line 204
InnoDB: Failing assertion: mach_read_from_4(seg_header + FSEG_HDR_SPACE) == space
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.
191230  9:13:02 [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.4.11-MariaDB
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 = 467746 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f9188000c48
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 = 0x7f91f41addf8 thread_stack 0x49000
/usr/bin/mysqld(my_print_stacktrace+0x2a)[0x55edf0ff825a]
/usr/bin/mysqld(handle_fatal_signal+0x578)[0x55edf0b0b088]
sigaction.c:0(__restore_rt)[0x7f91f818b930]
:0(__GI_raise)[0x7f91f7892f25]
:0(__GI_abort)[0x7f91f787c897]
/usr/bin/mysqld(+0x57293c)[0x55edf080f93c]
/usr/bin/mysqld(+0x572f61)[0x55edf080ff61]
/usr/bin/mysqld(+0xb42f18)[0x55edf0ddff18]
/usr/bin/mysqld(+0xb42fd1)[0x55edf0ddffd1]
/usr/bin/mysqld(+0x575286)[0x55edf0812286]
/usr/bin/mysqld(+0x57e5d3)[0x55edf081b5d3]
/usr/bin/mysqld(+0xbb81b3)[0x55edf0e551b3]
/usr/bin/mysqld(+0xba860c)[0x55edf0e4560c]
/usr/bin/mysqld(+0xa0e79c)[0x55edf0cab79c]
/usr/bin/mysqld(+0xa1e29b)[0x55edf0cbb29b]
/usr/bin/mysqld(_ZN7handler7ha_openEP5TABLEPKcijP11st_mem_rootP4ListI6StringE+0x43)[0x55edf0b0f0d3]
/usr/bin/mysqld(_Z21open_table_from_shareP3THDP11TABLE_SHAREPK25st_mysql_const_lex_stringjjjP5TABLEbP4ListI6StringE+0x835)[0x55edf09ca885]
/usr/bin/mysqld(_Z10open_tableP3THDP10TABLE_LISTP18Open_table_context+0xbe4)[0x55edf08a4274]
/usr/bin/mysqld(_Z11open_tablesP3THDRK14DDL_options_stPP10TABLE_LISTPjjP19Prelocking_strategy+0xb3f)[0x55edf08a731f]
/usr/bin/mysqld(_Z20open_and_lock_tablesP3THDRK14DDL_options_stP10TABLE_LISTbjP19Prelocking_strategy+0x3d)[0x55edf08a7b2d]
/usr/bin/mysqld(+0x65c6ba)[0x55edf08f96ba]
/usr/bin/mysqld(_Z21mysql_execute_commandP3THD+0x787e)[0x55edf0908d7e]
/usr/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x229)[0x55edf090b099]
/usr/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1421)[0x55edf090d7c1]
/usr/bin/mysqld(_Z10do_commandP3THD+0x151)[0x55edf090fe21]
/usr/bin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1c6)[0x55edf09f3c26]
/usr/bin/mysqld(handle_one_connection+0x33)[0x55edf09f3d63]
pthread_create.c:0(start_thread)[0x7f91f81804cf]
:0(__GI___clone)[0x7f91f79562d3]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f9188010230): 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=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 * from test2.foo

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            8388608              unlimited            bytes     
Max core file size        unlimited            unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             63399                63399                processes 
Max open files            4190                 4190                 files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       63399                63399                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: |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h

