We are running MySQL 8.0.25 in a docker container and we observe frequent crashes where the service tries to recover and fails again.. Any clue on these and what might be causing this as it is not clear from the documentation..
2022-08-18T15:07:15.155822Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.25' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
2022-08-19T09:27:32.381153Z 0 [ERROR] [MY-013183] [InnoDB] Assertion failure: os0file.cc:2909 thread 140041250641664
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
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: http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
09:27:32 UTC - mysqld got signal 6 ;
Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware.
Thread pointer: 0x7f5de03d4140
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 = 7f5de4ff8ae8 thread_stack 0x46000
/usr/sbin/mysqld(my_print_stacktrace(unsigned char const*, unsigned long)+0x2e) [0x562c3575c94e]
/usr/sbin/mysqld(handle_fatal_signal+0x31b) [0x562c34b18e3b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7f5dfc69c730]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x10b) [0x7f5dfbd797bb]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x121) [0x7f5dfbd64535]
/usr/sbin/mysqld(+0x359db83) [0x562c35c1eb83]
/usr/sbin/mysqld(os_file_flush_func(int)+0x2f4) [0x562c35adda04]
/usr/sbin/mysqld(Double_write::write_pages(buf_flush_t)+0x250) [0x562c35919190]
/usr/sbin/mysqld(Double_write::enqueue(buf_flush_t, buf_page_t*, file::Block const*, unsigned int)+0x313) [0x562c3591ec93]
/usr/sbin/mysqld(dblwr::write(buf_flush_t, buf_page_t*, bool)+0x1ec) [0x562c3591f1fc]
/usr/sbin/mysqld(buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool)+0x30b) [0x562c359443eb]
/usr/sbin/mysqld(+0x32c49b7) [0x562c359459b7]
/usr/sbin/mysqld(buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, unsigned long*)+0x5f5) [0x562c35946775]
/usr/sbin/mysqld(buf_flush_lists(unsigned long, unsigned long, unsigned long*)+0xaf) [0x562c359474cf]
/usr/sbin/mysqld(+0x32c7546) [0x562c35948546]
/usr/sbin/mysqld(std::thread::_State_impl<std::thread::_Invoker<std::tuple<Runnable, void (*)(unsigned long), unsigned long> > >::_M_run()+0xa9) [0x562c3593c719]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbbb2f) [0x7f5dfc15db2f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7f5dfc691fa3]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f5dfbe3b4cf]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 0
Status: NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
2022-08-19 09:33:47+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.25-1debian10 started.
2022-08-19 09:33:47+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-08-19 09:33:47+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.25-1debian10 started.
2022-09-01 16:09:48+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.25-1debian10 started.
2022-09-01 16:09:49+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-09-01 16:09:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.25-1debian10 started.
information that should help you find out what is causing the crash.
2022-08-19T09:33:48.261472Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.25) starting as process 1