[MDEV-25560] Creating table with certain generated column crashes server Created: 2021-04-28 Updated: 2021-07-23 Resolved: 2021-07-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Create Table, Server, Virtual Columns |
| Affects Version/s: | 10.4.17, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.3.31, 10.4.21, 10.5.12, 10.6.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Christopher Granahan | Assignee: | Nikita Malyavin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash | ||
| Environment: |
Windows 10, InnoDB |
||
| Description |
|
Consider the following table definition: CREATE TABLE crash_test_1 ( On creating or selecting from this table, I receive the following warning:
So, as per the documentation, I tried using RPAD: CREATE TABLE crash_test_2 ( Here is the real problem. Attempting to create crash_test_2 causes the server to crash. Some info from the error log:
|
| Comments |
| Comment by Alice Sherepa [ 2021-04-29 ] | ||||||||||||||||||||||||||||||||||
|
Thank you for the report! I repeated as described on 10.3-10.5:
| ||||||||||||||||||||||||||||||||||
| Comment by Nikita Malyavin [ 2021-06-26 ] | ||||||||||||||||||||||||||||||||||
|
Hello novog and thanks for a submission! I will soon submit the fix for a review. Until then, you can work around the problem by passing ' ' (a space) as a third argument – the bug was that we did not handle a possibility of two argument input in one place (sql mode dependancies computation) | ||||||||||||||||||||||||||||||||||
| Comment by Nikita Malyavin [ 2021-06-28 ] | ||||||||||||||||||||||||||||||||||
|
Patch for review is: b2965aa554 |