[MDEV-22897] mariadb server crashed on 2 instances at the same time (buffer overflow detected) Created: 2020-06-15  Updated: 2022-01-24  Resolved: 2022-01-24

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.4.13
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Maurice Gasco Assignee: Jan Lindström (Inactive)
Resolution: Incomplete Votes: 0
Labels: None
Environment:

CentOS Linux release 8.1.1911
MariaDb 10.4.13-MariaDB, for Linux on x86_64
Galera cluster


Issue Links:
Relates
relates to MDEV-18935 Galera test mysql-wsrep#198 sporaric ... Closed
relates to MDEV-22222 Assertion `state() == s_executing || ... Closed
relates to MDEV-24912 Assertion `state() == s_executing || ... Closed

 Description   

We have a Galera cluster with 3 nodes on CentOS 8.1, MariaDB 10.4.13, Galera 4

2 of the 3 nodes crashed at one second interval. Here is the logged information :

mysqld: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.4.13/wsrep-lib/src/transaction.cpp:419: int wsrep::transaction::before_commit(): Assertion `state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying' failed.
200612  2:24:00 [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.13-MariaDB
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=7
max_threads=4002
thread_count=15
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8938292 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x7f0cf4000c08
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 = 0x7f0d07ffdcc8 thread_stack 0x49000
*** buffer overflow detected ***: /usr/sbin/mysqld terminated



 Comments   
Comment by Jan Lindström (Inactive) [ 2021-12-23 ]

mgasco To further analyze this we need more information. Can you provide full stack trace, error logs and node configuration. You better try this with more recent version of MariaDB server and Galera libary.

Comment by Maurice Gasco [ 2021-12-23 ]

@Jan Lindström, I cannot provide the requested information as we stopped using Galera because of too many problems like this one. We switched to standard MariaDB replication.

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