[MDEV-10419] crash in mariadb 10.1.16-MariaDB-1~trusty Created: 2016-07-22 Updated: 2016-09-02 Resolved: 2016-07-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1.16, 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.51, 10.1.17, 10.0.27, 10.2.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sander Pilon | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | 10.2.2-3 |
| Description |
|
After an upgrade to 10.1.16, MariaDB started crashing (again) ... a lot.
For my config, see Downgrading to 10.1.14 solved the crashing. |
| Comments |
| Comment by Elena Stepanova [ 2016-07-22 ] | |||||||||||||||||||||||||||||||||||||
|
What exactly do you mean by started again? Did I think at some point you enabled general_log, do you still have it enabled? If so, can you find there the last query from connection 478 right before the crash? | |||||||||||||||||||||||||||||||||||||
| Comment by Sander Pilon [ 2016-07-22 ] | |||||||||||||||||||||||||||||||||||||
|
Hi Elena, We have been crash-free for a while now. I mean, a few months. I think you yourself found the offending query in I'm afraid that I can't replicate this bug for you at the moment. By that I mean that I have no resources to replicate a server, and that the crashing is immediate and severe so I daren't upgrade to 10.1.16 again at the moment. Nothing changed, all I did was an "apt-get upgrade" and after that it started crashing immediately. Really nothing changed since the end of 2016, as far as server setup and config files goes. | |||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-22 ] | |||||||||||||||||||||||||||||||||||||
|
CrewOne, thanks for clarification. Regarding downgrade, for future, our mirrors usually have repos for several previous versions. E.g. if you normally use repo I can't promise it applies to all mirrors, but it should work for most. | |||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-23 ] | |||||||||||||||||||||||||||||||||||||
|
Would you be able to provide the schemata dump (structures only, no data)? Something like mysqldump -A -d -R --triggers – it shouldn't be too big. Also, could you please attach the error log or at least check yourself if there is anything else there after the Connection ID line? There has been a change recently so that the server might print something more useful than invalid pointer. It might look strange or even corrupted, but it's better to have it anyway. | |||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-28 ] | |||||||||||||||||||||||||||||||||||||
|
CrewOne, thank you very much for the dump, I found the view and was able to reproduce the problem. The culprit was the view which have a specific definition with a subquery and references a non-existing function. It is not an excuse for a crash of course, it should just throw a warning. The problem appeared in 5.5 tree (and was later merged up) with the following revision:
| |||||||||||||||||||||||||||||||||||||
| Comment by Sander Pilon [ 2016-07-28 ] | |||||||||||||||||||||||||||||||||||||
|
Ok... so which view/function should we delete and would you say it's safe to upgrade after we remove them? | |||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-28 ] | |||||||||||||||||||||||||||||||||||||
|
The view that I found and used was `Manpo`.`Boeken_in_ramsj`, and the missing function was `calc_prijs`. But I see that some other views reference a function of the same name (although maybe from a different schema) as well, and in general the schema has hundreds of views, with complicated structure and lots of referenced objects. If one is missing, I suppose it's possible that some others are missing, or can gone missing during the operation. So, I don't really think it's safe to upgrade after removing this view alone. If there is no pressing need to upgrade, and 10.1.14 works well for you, I'd rather wait. If you do need to upgrade asap, I can try to see which views are affected in the dump, but there will be no guarantee that some other views won't become affected if yet another object is dropped later. | |||||||||||||||||||||||||||||||||||||
| Comment by Sander Pilon [ 2016-07-28 ] | |||||||||||||||||||||||||||||||||||||
|
Elena, Thanks. I'll wait | |||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2016-07-29 ] | |||||||||||||||||||||||||||||||||||||
|
revision-id: b5327887096f9f98a87d724163402748ca4f1fb8 (mariadb-5.5.50-15-gb532788)
Fixed initialization and usage of THD reference in subselect engines. — | |||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2016-07-30 ] | |||||||||||||||||||||||||||||||||||||
|
sanja, ok to push |