[MDEV-27020] Maria DB Engine crashes and displays a message related to bug Created: 2021-11-10  Updated: 2022-05-12

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.4.16
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Francisco Ortiz B. Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Red Hat Enterprise Linux Server release 7.7 (Maipo)


Attachments: File mariadb_a.err.gz    
Issue Links:
Blocks
blocks MDEV-24378 Crashes on Semaphore wait > 600 seconds Closed

 Description   

Our productive platform on a daily basis is suffering falls, making mention of the appearance of a bug:

END OF INNODB MONITOR OUTPUT
============================
InnoDB: ###### Diagnostic info printed to the standard error stream
2021-11-10 16:45:51 0 [ERROR] [FATAL] InnoDB: Semaphore wait has lasted > 600 seconds. We intentionally crash the server because it appears to be hung.
211110 16:45:51 [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.16-MariaDB-log
key_buffer_size=7516192768
read_buffer_size=67108864
max_used_connections=12
max_threads=1002
thread_count=15
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 138698903 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
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 = 0x0 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x5595d5d89f7e]
/usr/sbin/mysqld(handle_fatal_signal+0x30f)[0x5595d581b97f]
/lib64/libpthread.so.0(+0xf630)[0x7fa0dca3b630]
/lib64/libc.so.6(gsignal+0x37)[0x7fa0dad0c377]
/lib64/libc.so.6(abort+0x148)[0x7fa0dad0da68]
/usr/sbin/mysqld(+0xbc1cd0)[0x5595d5b12cd0]
/usr/sbin/mysqld(+0xb7a2c2)[0x5595d5acb2c2]
/lib64/libpthread.so.0(+0x7ea5)[0x7fa0dca33ea5]
/lib64/libc.so.6(clone+0x6d)[0x7fa0dadd48cd]
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ 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:
Fatal signal 11 while backtracing
2021-11-10 16:46:01 0 [Note] mysqld: Aria engine: starting recovery
recovered pages: 0% 12% 24% 37% 49% 62% 74% 87% 99% 100% (0.0 seconds); tables to flush: 1 0
(0.0 seconds);
2021-11-10 16:46:01 0 [Note] mysqld: Aria engine: recovery done
2021-11-10 16:46:01 0 [Note] InnoDB: Using Linux native AIO
2021-11-10 16:46:01 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-11-10 16:46:01 0 [Note] InnoDB: Uses event mutexes
2021-11-10 16:46:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2021-11-10 16:46:01 0 [Note] InnoDB: Number of pools: 1
2021-11-10 16:46:01 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-11-10 16:46:01 0 [Note] InnoDB: Initializing buffer pool, total size = 50G, instances = 50, chunk size = 128M
2021-11-10 16:46:04 0 [Note] InnoDB: Completed initialization of buffer pool
2021-11-10 16:46:04 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-11-10 16:46:04 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=16639977754157
2021-11-10 16:46:05 0 [Note] InnoDB: Ignoring data file './DMPSTRIAD/LOGSP.ibd' with space ID 3648, since the redo log references ./DMPSTRIAD/LOGSP.ibd with space ID 3521.



 Comments   
Comment by Kent Hoover [ 2022-05-12 ]

I'm seeing what looks like the same problem with Maria 10.5.11 and 10.5.15 .

I have just tried the workaround by disabling, innodb_stats_persistent and innodb_stats_auto_recalc .
Too early to tell if this mediates my problem.

Comment by Francisco Ortiz B. [ 2022-05-12 ]

Hi Kent,

The problem was solved by upgrading from version 10.4.16 to version 10.6.5 of Maria DB.

Regards,

Francisco.

----Mensaje original----
De: Kent Hoover (Jira) jira@mariadb.org
Enviado el: jueves, 12 de mayo de 2022 12:02
Para: Ortiz Benavides, Francisco Javier <Francisco.Ortiz@sonda.com>
Asunto: [JIRA] (MDEV-27020) Maria DB Engine crashes and displays a message related to bug

[ https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjira.mariadb.org%2Fbrowse%2FMDEV-27020%3Fpage%3Dcom.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel%26focusedCommentId%3D223610%23comment-223610&amp;data=05%7C01%7Cfrancisco.ortiz%40sonda.com%7Cbeaa29ecc20c4d8050f308da3430c707%7Cf149d0bc0eb54f9a9e8224a76eacf8de%7C0%7C1%7C637879681349688611%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=S1xPKHR3gDg0e%2Fp3yGvdOBYyF5xmUozr0rEBojWoMno%3D&amp;reserved=0 ]

Kent Hoover commented on MDEV-27020:
------------------------------------

I'm seeing what looks like the same problem with Maria 10.5.11 and 10.5.15 .

I have just tried the workaround by disabling, innodb_stats_persistent and innodb_stats_auto_recalc .
Too early to tell if this mediates my problem.


This message was sent by Atlassian Jira
(v8.13.13#813013)

Generated at Thu Feb 08 09:49:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.