[MDEV-28940] SEGV after upgrade to 10.8.3-MariaDB Created: 2022-06-24 Updated: 2022-08-15 Resolved: 2022-08-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.8.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Muhammad Baqir | Assignee: | Vladislav Vaintroub |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | bug, galera, galera_recovery | ||
| Environment: |
Centos-release-7-9.2009.1.el7.centos.x86_64 |
||
| Description |
|
I've run upgrade on my VPS server and i've got SEGV error and MariaDB won't start again. mariadb.err :
journalctl -xe :
systemctl status mariadb.service :
|
| Comments |
| Comment by Muhammad Baqir [ 2022-06-24 ] | ||
|
Solved by downgrading Centos 7 kernel, this is the affected kernel information from my vps :
| ||
| Comment by Sergei Golubchik [ 2022-07-04 ] | ||
|
Your main problem is this error message:
May be you didn't have /var/run/mariadb/ or perhaps selinux or something didn't allow to write to it. The crash is clearly a bug that we need to fix, but it happened after the server failed to create a file and was aborting the startup. When we fix the crash, your server will (or would, on the new kernel) still fail to start with the same error. | ||
| Comment by Sergei Golubchik [ 2022-07-04 ] | ||
|
wlad, please, take a look, may be you'll be able to see why such an early abort would cause the thread pool to crash. | ||
| Comment by Vladislav Vaintroub [ 2022-07-04 ] | ||
|
serg, it is not an early startup, It is very late in the startup sequence, after the server is already accessible via network. Innodb recovery is probably already done at that stage. The stacktrace is partially damaged, tpool::task_group::execute would usually execute a callback function, which Innodb provides. It would definitely not execute any introsort_loop. If I try to start the server with invalid path in --pid-file, it ends with
and no signs of crash. | ||
| Comment by Muhammad Baqir [ 2022-07-12 ] | ||
|
Sorry for late reply, this is production server and we couldn't afford downtime to reproduce this bug again. Is there any chance to reproduce full stack trace without downtime? | ||
| Comment by Vladislav Vaintroub [ 2022-07-12 ] | ||
|
Yes, there is a chance. There is probably a core file in /var/lib/mysql . If there is, then you just follow the instructions in https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/#analyzing-a-core-file-with-gdb-on-linux, that describe how to debug the core file, rather than the active process. |