[MDEV-22684] 10.4.13 crashes when creating CHECK constraint Created: 2020-05-24 Updated: 2020-05-26 Resolved: 2020-05-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.4.13 |
| Fix Version/s: | 10.5.4, 10.4.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Petr Skoda | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The following sample SQL code crashes MariaDB using offical docker image mariadb:10.4.13, it worked fine with mariadb:10.4.12.
The same problem pops up with mariadb:10.5.3 sometimes too, but it does not seem to be fully reproducible. I am using OSX docker, but my colleagues managed to reproduce it in Linux too. mariadb:10.3.23 is working fine. |
| Comments |
| Comment by Elena Stepanova [ 2020-05-24 ] | ||||||||||||||||||||||||
|
Is there a coredump or a failure report in the log with any parts of a stack trace at all? And if so, do they resemble this in any way?
I got the above using your test case on a local build of 10.4.13 with release configuration + ASAN enabled, which makes me think you are encountering the problem reported in | ||||||||||||||||||||||||
| Comment by Petr Skoda [ 2020-05-24 ] | ||||||||||||||||||||||||
|
This is what the "docker logs" says:
Is there anywhere else I can look for logs? Or is there any build I could test in relation to I'll attach SQL with real commands that triggered the problem originally for multiple people in our company. In any case thanks for the feedback. | ||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-05-24 ] | ||||||||||||||||||||||||
|
Thanks, this is sufficient. The stack trace in your log is clearly the same, and I've also checked that at least on my build the patch for Yes, it would be great if you could check it on your side as well. Unfortunately, we don't seem to have OSX builds, but if you or your colleagues can check on Linux or build from sources, you can find the source tarball and the variety of Linux binaries here: http://hasky.askmonty.org/archive/10.4/build-32907/ | ||||||||||||||||||||||||
| Comment by Petr Skoda [ 2020-05-24 ] | ||||||||||||||||||||||||
|
Thanks Elena, I'll find somebody to test it on Linux today. | ||||||||||||||||||||||||
| Comment by Petr Skoda [ 2020-05-25 ] | ||||||||||||||||||||||||
|
I can confirm MariaDB built using "git checkout 10.4" now appears to work again, thanks a lot, I think this issue can be closed now. | ||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-05-25 ] | ||||||||||||||||||||||||
|
Thanks for checking. Closing as fixed by the patch for | ||||||||||||||||||||||||
| Comment by Dave dV [ 2020-05-26 ] | ||||||||||||||||||||||||
|
Sorry for piggybacking on this issue, but it seems related, so I was hoping someone could check whether it's been fixed with this or I need to log a new issue: I am getting crashes on 10.4.13+maria~stretch whenever trying to alter columns of a table that contains a CHECK constraint. The alter command seems to go through, and the modification is there when the DB is back up:
Using Docker versions, I confirmed I get a crash (of the whole container, actually) with 10.4.13, but 10.5 seems OK. | ||||||||||||||||||||||||
| Comment by Petr Skoda [ 2020-05-26 ] | ||||||||||||||||||||||||
|
Hi Dave, the statements from your comment executed fine for me with the patch present. | ||||||||||||||||||||||||
| Comment by Dave dV [ 2020-05-26 ] | ||||||||||||||||||||||||
|
Petr, thanks for checking! Any chance you could confirm that you do get the crash with the same version pre-patch (just so I can rule out some exotic platform-related issue). | ||||||||||||||||||||||||
| Comment by Petr Skoda [ 2020-05-26 ] | ||||||||||||||||||||||||
|
yes, crashing without the patch:
|