[MDEV-24160] date_format() mixed with if() in a computed column causes server segfault Created: 2020-11-07 Updated: 2020-11-11 Resolved: 2020-11-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Virtual Columns |
| Affects Version/s: | 10.4.14 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Jay Fenlason (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Fedora 32 |
||
| Issue Links: |
|
||||||||
| Description |
|
I have a table containing two date fields, a text field and a varchar(128) field. I did a
After I did that, accessing the table (say, by doing a mysqldump of its database) causes the server to segfault. If I remove the date_format() calls or the if(), the server doesn't segfault. |
| Comments |
| Comment by Daniel Black [ 2020-11-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
for completeness can you include the `show create table event` output before the table was altered. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jay Fenlason (Inactive) [ 2020-11-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
CREATE TABLE `event` ( | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2020-11-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
I'm having trouble reproducing this. Maybe its got some element of the data or FK tables related. Can you include the stack trace and a set of data that can reproduce this?
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-11-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Please add error log and your .cnf file(s) | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-11-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
dajt, Could you please take a look at | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jay Fenlason (Inactive) [ 2020-11-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
@Alice It looks to me like You've got a nice elegant reproducer there. Should we close this ticket and track the bug under | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-11-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
@Jay, Thank you, I am glad to hear it! |