[MDEV-21424] Dead loop in Mariadb version of mysql Created: 2020-01-06 Updated: 2020-12-13 Resolved: 2020-02-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.5.0 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Yongheng Chen | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Description |
|
With the following SQL queries, mysql gets stuck in MariaDB-server but not in MySQL-server and the CPU is occupied 100 %.
|
| Comments |
| Comment by Elena Stepanova [ 2020-01-12 ] | |
|
Do you expect v0 inside the CTE definition to refer to the temporary table? If so, why do you expect that, is it somehow specified by standard?
So, it runs until max_recursive_iterations is exceeded, which is 4294967295 by default in MariaDB. Which version of MySQL did you try and what does it return? 8.0.18 crashes for me while trying to execute it (a debug build, at least). |