[MDEV-25442] Lateral derived optimization causes signal 11 crash in CTE query and sometimes reports index corruption. Created: 2021-04-17 Updated: 2021-05-13 Resolved: 2021-05-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.3.11, 10.3.28, 10.4.18, 10.5.9 |
| Fix Version/s: | 10.3.29, 10.4.19, 10.5.10, 10.6.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Juan | Assignee: | Sergei Petrunia |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | split_materialized | ||
| Environment: |
CentOS 7.7, CentOS 7.9 |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Running the attached query on the attached data set results in a signal 11 crash when "split_materialized=on" (default). split_materialized=off stops the crashing immediately. When the query is run with split_materialized=off, and split_materialized is turned on again, the query sometimes runs once or twice without crashing, and then proceeds to crash as before. This behaviour is identical across all versions tested, implying some asynchronous process like flushing contributes to the crash. Particularly noteworthy is that per the user this (theoretically non-updating) query causes index corruption that propagates to slaves with row-based replication. Backtrace also attached. Note that the crash only happens with certain additional configurations. In the enclosed unencrypted test configuration (cs0280391-server.cnf), removing the persistent statistics section of the configuration stops the crash. |
| Comments |
| Comment by Alice Sherepa [ 2021-04-19 ] | |||||||||||||||||||||||||||||||||||||||||
|
This is a duplicate of
| |||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-05-12 ] | |||||||||||||||||||||||||||||||||||||||||
|
Ok, I was able to reproduce. The crash goes away when I apply the patch for | |||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-05-12 ] | |||||||||||||||||||||||||||||||||||||||||
|
Closing as Duplicate of |