[MDEV-22580] MariaDB crashes on startup Created: 2020-05-15 Updated: 2023-03-12 Resolved: 2023-03-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 10.11.3, 10.4.29, 10.5.20, 10.6.13, 10.8.8, 10.9.6, 10.10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Georgi Sinapov | Assignee: | Sergei Golubchik |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.7 latest. |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Hello, Please, advise. |
| Comments |
| Comment by Elena Stepanova [ 2020-05-15 ] | ||||||||
|
Were all hosts upgraded from the same version, and if so, which is it? If they were upgraded from different ones, then maybe it's the difference? | ||||||||
| Comment by Georgi Sinapov [ 2020-05-15 ] | ||||||||
|
1. All host had been upgraded from the same version - CentOS stock 5.5.65-1. HTH | ||||||||
| Comment by Elena Stepanova [ 2020-05-15 ] | ||||||||
|
Just to clarify, what's the actual chain of events were? So, you had 5.5.65 running, then you upgraded to 10.4.13 (I guess uninstalled CentOS-made 5.5 packages and installed MariaDB's 10.4.13), it started, then you ran mysql_upgrade manually, it succeeded, but after restart the servers crashed and continued crashing? | ||||||||
| Comment by Georgi Sinapov [ 2020-05-15 ] | ||||||||
|
The upgrade was done on a running 5.5.65. It might not be a recommended approach, but I do it like that for all applications. Then, if the server could start, mysql_upgrade had to be run manually. After that - no problems, whatsoever. If the server didn't start, nothing could have been done, except trying to start it manually and collect crash info. | ||||||||
| Comment by Elena Stepanova [ 2020-05-15 ] | ||||||||
|
Okay. Could you please include in the log excerpt the last 5.5 session before the upgrade? That is, from the same instance, one of the problematic ones, Your attachment currently contains 10.4 part, but not the 5.5 part. If you have any instance where the data isn't confidential (e.g. a testing box), it would be helpful if you could provide the contents of <datadir>/mysql folder. If the data is confidential, then at least .frm files from there – they are just table structures, don't contain any data. You can pack them and upload to our ftp.askmonty.org/private. | ||||||||
| Comment by Georgi Sinapov [ 2020-05-16 ] | ||||||||
|
Nothing weird on 5.5.65 startup. This is a box, which was unsuccessfully upgraded to 10.4 and then rolled back. Had to delete the following files first. aria_log.00000001 200516 11:13:39 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended 200516 11:14:38 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended I also managed to save a core dump and uploaded it here. This site doesn't work for me. | ||||||||
| Comment by Elena Stepanova [ 2020-05-21 ] | ||||||||
|
Stack trace from the coredump (all threads are attached, just in case):
| ||||||||
| Comment by Elena Stepanova [ 2020-05-21 ] | ||||||||
|
Could you please paste or attach configuration file(s) from one of the boxes where the crash happened? | ||||||||
| Comment by Georgi Sinapov [ 2020-05-22 ] | ||||||||
|
Attached. It is very simple and practically, the same. | ||||||||
| Comment by Daniel Black [ 2022-11-01 ] | ||||||||
|
Belatedly, it looks like the mysql.host table contained a db column with an entry, when retrieved, wasn't null terminated, possibly because it was right at the maximum length of the db column. | ||||||||
| Comment by Georgi Sinapov [ 2022-11-03 ] | ||||||||
|
Hello, | ||||||||
| Comment by Sergei Golubchik [ 2023-03-10 ] | ||||||||
|
This is likely the same bug as in | ||||||||
| Comment by Georgi Sinapov [ 2023-03-12 ] | ||||||||
|
Unfortunately, the problem is still there. | ||||||||
| Comment by Sergei Golubchik [ 2023-03-12 ] | ||||||||
|
Still where? You have attached mariadb_10_4_28_crash_log.txt
while the bug was fixed in 10.4.29 (see Fix Version/s field above) in the commit 8145b308b02ee7ee657851c1faee49c7b7ebf511 (see the [Git Commits] tab of the linked bug). As a workaround you can try
|