[MDEV-24491] db_name mismatch happens during virtual column computation Created: 2020-12-26 Updated: 2021-01-19 Resolved: 2021-01-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Delete, Storage Engine - InnoDB |
| Affects Version/s: | 10.4.17, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.37, 10.3.28, 10.4.18, 10.5.9, 10.6.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Sebastian Maus | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash, delete, innodb | ||
| Environment: |
Linux x86_64, on an ext4 file system, on RHEL family and Ubuntu 20.04, but probably any. |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
After sending a simple DELETE FROM emails WHERE id=13, "MySQL has gone away". Indeed, the server crashed and left us with a core dump. In its error log, it says this:
And the core dump shows this backtrace:
"Cannot allocate memory" is simply wrong. Modifying hardware parameters or database configuration files does not change anything. You can actually solve the problem by renaming the database to something that does not contain any hyphens. But: MariaDB should not die like this. If it does not like the database's name, operators should be restricted from using such names. If such a database name is used, error messages must not tell tales about memory allocation that lead to wasted time finding the root cause. I tried to reduce the content and structure of the database that exhibits this problem to a minimum case, from 32 MB to 32 kB with only three tables and anonymized content. I really hope you can find this bug, as I guess while it's easy to circumvent, it'll probably hurt a lot in a different context if it doesn't get fixed. Please note that reproducing the problem depends on the correct name of the database, which should resemble cust-a-prj-type. |
| Comments |
| Comment by Elena Stepanova [ 2021-01-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report. Reproducible as described. Here is the essential part of the test case:
Reproducible on 10.2+, debug and non-debug alike. The failure apparently started happening in 10.2 after this commit:
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-01-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you, the fix looks good to me. |