[MDEV-23627] Error in /usr/sbin/mysqld: corrupted size vs. prev_size Created: 2020-08-29 Updated: 2023-07-07 Resolved: 2020-10-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | None |
| Fix Version/s: | N/A, 10.6.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Adam Stark (Inactive) | Assignee: | Marko Mäkelä |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | crash, hang, need_feedback | ||
| Environment: |
Static hostname: DB11 NAME="CentOS Linux" CENTOS_MANTISBT_PROJECT="CentOS-7" |
||
| Attachments: |
|
| Description |
|
MariaDB seems to crash and restart itself, giving a massive dump of error logging. This has happened to us on three separate occasions. I unfortunately don't know much else about what's going on. Please let me know what further information I need to provide. Since the error logging was too long to post in the description here I have dumped it to a Pastebin link that can be found here: https://pastebin.com/Yv4fHNF3, I have also attached it to this ticket. |
| Comments |
| Comment by Marko Mäkelä [ 2020-08-31 ] | ||||||||||||||||||||||||||||||||
|
AdamStark, it looks like there is a deadlock between InnoDB threads that leads to an InnoDB watchdog to kill the process. To debug the hang, we would need the stack traces of the process. Please see https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ and especially the section on getting stack traces while the process is running. I would like to see some samples of stack traces already when the server shows the first symptoms of hanging (the first "long semaphore wait" message appears). | ||||||||||||||||||||||||||||||||
| Comment by Adam Stark (Inactive) [ 2020-09-02 ] | ||||||||||||||||||||||||||||||||
|
At the moment it appears that setting innodb_adaptive_hash_index to 0 has resolved the semaphore issue. Since these DB's are crashing in production I am hesitant to install additional debugging and profiling tools. If we experience this again I will install these tools and generate a full stack trace to supply additional details. | ||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-05 ] | ||||||||||||||||||||||||||||||||
|
Feel free to add more information when you have it — we'll reopen the issue then | ||||||||||||||||||||||||||||||||
| Comment by Geza Lucz [ 2021-03-20 ] | ||||||||||||||||||||||||||||||||
|
I got a very similar looking crash on 10.3.28-MariaDB | ||||||||||||||||||||||||||||||||
| Comment by Pramod Mahto [ 2023-06-21 ] | ||||||||||||||||||||||||||||||||
|
Similar crash happen for MariaDB 10.6.9
|