[MDEV-18015] Assertion `global_status_var.global_memory_used == 0' failed when using window functions and views Created: 2018-12-14 Updated: 2019-06-05 Resolved: 2019-06-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.2.25, 10.3.16, 10.4.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Varun Gupta (Inactive) | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The mtr test case is:
Warnings are generated on shutdown. |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2018-12-14 ] | ||||||||||||||||||
|
Here is the stack trace when i run the test with Valgrind
| ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2018-12-15 ] | ||||||||||||||||||
|
Patch | ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2018-12-18 ] | ||||||||||||||||||
|
Review suggestions provided by psergey | ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2018-12-19 ] | ||||||||||||||||||
|
Patch | ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-05-01 ] | ||||||||||||||||||
|
A test case not involving UDF's
| ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-05-01 ] | ||||||||||||||||||
|
Also check this test case, pointed by alice in
| ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-05-13 ] | ||||||||||||||||||
|
The issue here is that we are not freeing the GROUP_BOUND_TRACKER for window functions, the group_bound_tracker is used mostly for partition by clause, also used by order by clause of window function | ||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-05-13 ] | ||||||||||||||||||
|
Patch | ||||||||||||||||||
| Comment by Igor Babaev [ 2019-05-29 ] | ||||||||||||||||||
|
Ok to push into 10.2 |