> while :; do gdb -ex "set pagination 0" -ex "thread apply all bt" --batch -p $(pidof mariadbd) 2>&1 | grep -A15 fdatasync ; done
0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6

Thread 5 (Thread 0x7febbbdff6c0 (LWP 11167) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf892fd4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x000055711e20c2f8 in ?? ()
#3  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#4  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#5  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7febdcad26c0 (LWP 11163) "mariadbd"):
#0  0x00007febdf911a8d in syscall () from /lib64/libc.so.6
#1  0x000055711e257fbf in tpool::aio_linux::getevent_thread_routine(tpool::aio_linux*) ()
#2  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#3  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#4  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6
--
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e14a269 in ?? ()
#4  0x000055711e14a2ef in ?? ()
#5  0x000055711e1f4331 in ?? ()
#6  0x000055711da7023f in ?? ()
#7  0x000055711da5e4a5 in ?? ()
#8  0x000055711da64ace in ?? ()
#9  0x000055711e0f8ba9 in ?? ()
#10 0x000055711de95dbe in ha_initialize_handlerton(st_plugin_int*) ()
#11 0x000055711dc51e88 in ?? ()
#12 0x000055711dc569e5 in plugin_init(int*, char**, int) ()
#13 0x000055711db1b51b in ?? ()
#14 0x000055711db266af in mysqld_main(int, char**) ()
#15 0x00007febdf82c5b0 in __libc_start_call_main () from /lib64/libc.so.6
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e215d3a in ?? ()
#4  0x000055711e226255 in ?? ()
#5  0x000055711da7124b in ?? ()
#6  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#7  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#8  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7febdcad26c0 (LWP 11163) "mariadbd"):
#0  0x00007febdf911a8d in syscall () from /lib64/libc.so.6
#1  0x000055711e257fbf in tpool::aio_linux::getevent_thread_routine(tpool::aio_linux*) ()
#2  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#3  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#4  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6
0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6

Thread 17 (Thread 0x7feb997fa6c0 (LWP 11220) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf8932e7 in pthread_cond_clockwait@GLIBC_2.30 () from /lib64/libc.so.6
#2  0x000055711e2583e1 in tpool::thread_pool_generic::wait_for_tasks(std::unique_lock<std::mutex>&, tpool::worker_data*) ()
#3  0x000055711e2586f0 in tpool::thread_pool_generic::get_task(tpool::worker_data*, tpool::task**) ()
#4  0x000055711e25969e in tpool::thread_pool_generic::worker_main(tpool::worker_data*) ()
#5  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#6  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#7  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 16 (Thread 0x7feb99ffb6c0 (LWP 11219) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf8932e7 in pthread_cond_clockwait@GLIBC_2.30 () from /lib64/libc.so.6
#2  0x000055711e2583e1 in tpool::thread_pool_generic::wait_for_tasks(std::unique_lock<std::mutex>&, tpool::worker_data*) ()
--
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e215d3a in ?? ()
#4  0x000055711e226255 in ?? ()
#5  0x000055711e1f5ef6 in ?? ()
#6  0x000055711da6599d in ?? ()
#7  0x000055711e0f8ba9 in ?? ()
#8  0x000055711de95dbe in ha_initialize_handlerton(st_plugin_int*) ()
#9  0x000055711dc51e88 in ?? ()
#10 0x000055711dc569e5 in plugin_init(int*, char**, int) ()
#11 0x000055711db1b51b in ?? ()
#12 0x000055711db266af in mysqld_main(int, char**) ()
#13 0x00007febdf82c5b0 in __libc_start_call_main () from /lib64/libc.so.6
#14 0x00007febdf82c679 in __libc_start_main_impl () from /lib64/libc.so.6
#15 0x000055711dadfb75 in _start ()
0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6

Thread 17 (Thread 0x7feb997fa6c0 (LWP 11220) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf8932e7 in pthread_cond_clockwait@GLIBC_2.30 () from /lib64/libc.so.6
#2  0x000055711e2583e1 in tpool::thread_pool_generic::wait_for_tasks(std::unique_lock<std::mutex>&, tpool::worker_data*) ()
#3  0x000055711e2586f0 in tpool::thread_pool_generic::get_task(tpool::worker_data*, tpool::task**) ()
#4  0x000055711e25969e in tpool::thread_pool_generic::worker_main(tpool::worker_data*) ()
#5  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#6  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#7  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 16 (Thread 0x7feb99ffb6c0 (LWP 11219) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf8932e7 in pthread_cond_clockwait@GLIBC_2.30 () from /lib64/libc.so.6
#2  0x000055711e2583e1 in tpool::thread_pool_generic::wait_for_tasks(std::unique_lock<std::mutex>&, tpool::worker_data*) ()
--
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e14a269 in ?? ()
#4  0x000055711e14a2ef in ?? ()
#5  0x000055711e1cde1a in ?? ()
#6  0x000055711dad3c0b in ?? ()
#7  0x000055711e1d18f2 in ?? ()
#8  0x000055711da661ce in ?? ()
#9  0x000055711e0f8ba9 in ?? ()
#10 0x000055711de95dbe in ha_initialize_handlerton(st_plugin_int*) ()
#11 0x000055711dc51e88 in ?? ()
#12 0x000055711dc569e5 in plugin_init(int*, char**, int) ()
#13 0x000055711db1b51b in ?? ()
#14 0x000055711db266af in mysqld_main(int, char**) ()
#15 0x00007febdf82c5b0 in __libc_start_call_main () from /lib64/libc.so.6
0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6

Thread 19 (Thread 0x7febdc0866c0 (LWP 11260) "mariadbd"):
#0  0x00007febdf84375a in sigtimedwait () from /lib64/libc.so.6
#1  0x000055711db151c3 in signal_hand ()
#2  0x000055711e063ba4 in ?? ()
#3  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#4  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 18 (Thread 0x7febdc0d16c0 (LWP 11259) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf892cd0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x000055711dc22950 in handle_manager ()
#3  0x000055711e063ba4 in ?? ()
#4  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#5  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6
--
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e14a269 in ?? ()
#4  0x000055711e14a2ef in ?? ()
#5  0x000055711e1cde1a in ?? ()
#6  0x000055711dad3c0b in ?? ()
#7  0x000055711e1d18f2 in ?? ()
#8  0x000055711e21aecc in ?? ()
#9  0x000055711e108d2b in ?? ()
#10 0x000055711dea2a7f in handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) ()
#11 0x000055711dea341a in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*, bool) ()
#12 0x000055711dce4756 in ?? ()
#13 0x000055711dce4e67 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) ()
#14 0x000055711dcf6b19 in Sql_cmd_create_table_like::execute(THD*) ()
#15 0x000055711dc2dbb8 in mysql_execute_command(THD*, bool) ()
0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6

Thread 19 (Thread 0x7febdc0866c0 (LWP 11260) "mariadbd"):
#0  0x00007febdf84375a in sigtimedwait () from /lib64/libc.so.6
#1  0x000055711db151c3 in signal_hand ()
#2  0x000055711e063ba4 in ?? ()
#3  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#4  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 18 (Thread 0x7febdc0d16c0 (LWP 11259) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf892cd0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x000055711dc22950 in handle_manager ()
#3  0x000055711e063ba4 in ?? ()
#4  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#5  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6
--
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711da73e4c in ?? ()
#4  0x000055711da7401b in ?? ()
#5  0x000055711da7669b in ?? ()
#6  0x000055711da7839c in ?? ()
#7  0x000055711e22e270 in ?? ()
#8  0x000055711e22ee7a in ?? ()
#9  0x000055711e1d2257 in ?? ()
#10 0x000055711e206d57 in ?? ()
#11 0x000055711e170ed1 in ?? ()
#12 0x000055711e18b89b in ?? ()
#13 0x000055711e0fdd1f in ?? ()
#14 0x000055711e1081a4 in ?? ()
#15 0x000055711dea2a7f in handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) ()
0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6

Thread 19 (Thread 0x7febdc0866c0 (LWP 11260) "mariadbd"):
#0  0x00007febdf84375a in sigtimedwait () from /lib64/libc.so.6
#1  0x000055711db151c3 in signal_hand ()
#2  0x000055711e063ba4 in ?? ()
#3  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#4  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 18 (Thread 0x7febdc0d16c0 (LWP 11259) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf892cd0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x000055711dc22950 in handle_manager ()
#3  0x000055711e063ba4 in ?? ()
#4  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#5  0x00007febdf91a380 in clone3 () from /lib64/libc.so.6
--
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e14a269 in ?? ()
#4  0x000055711e14a2ef in ?? ()
#5  0x000055711e1cde1a in ?? ()
#6  0x000055711dad3c0b in ?? ()
#7  0x000055711e1d18f2 in ?? ()
#8  0x000055711e22011c in ?? ()
#9  0x000055711e108e52 in ?? ()
#10 0x000055711dea2a7f in handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) ()
#11 0x000055711dea341a in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*, bool) ()
#12 0x000055711dce4756 in ?? ()
#13 0x000055711dce4e67 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) ()
#14 0x000055711dcf6b19 in Sql_cmd_create_table_like::execute(THD*) ()
#15 0x000055711dc2dbb8 in mysql_execute_command(THD*, bool) ()
#0  0x00007febdf90ea9a in fdatasync () from /lib64/libc.so.6
#1  0x000055711e156cb1 in ?? ()
#2  0x000055711e14a1d0 in ?? ()
#3  0x000055711e215d3a in ?? ()
#4  0x000055711e229368 in ?? ()
#5  0x000055711e15611f in ?? ()
#6  0x000055711e259508 in tpool::task_group::execute(tpool::task*) ()
#7  0x000055711e2596cc in tpool::thread_pool_generic::worker_main(tpool::worker_data*) ()
#8  0x00007febdfae0983 in ?? () from /lib64/libstdc++.so.6
#9  0x00007febdf89398d in start_thread () from /lib64/libc.so.6
#10 0x00007febdf91a380 in clone3 () from /lib64/libc.so.6

Thread 13 (Thread 0x7feb9affd6c0 (LWP 11217) "mariadbd"):
#0  0x00007febdf890006 in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007febdf8932e7 in pthread_cond_clockwait@GLIBC_2.30 () from /lib64/libc.so.6
#2  0x000055711e2583e1 in tpool::thread_pool_generic::wait_for_tasks(std::unique_lock<std::mutex>&, tpool::worker_data*) ()

