[MDEV-32569] Failure when executing PS for query using IN subquery Created: 2023-10-24 Updated: 2024-01-19 Resolved: 2023-11-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 10.4.33, 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The following test case fails if the server is built with -DWITH_PROTECT_STATEMENT_MEMROOT:BOOL=ON
An assertion failure happens when trying to allocate an Item_direct_ref_to_item at the second execution of the PS. |
| Comments |
| Comment by Igor Babaev [ 2023-10-24 ] | ||||||||||||
|
See also the test case for
| ||||||||||||
| Comment by Igor Babaev [ 2023-10-30 ] | ||||||||||||
|
The following patch fixes this problem.
It also fixes all assertion failures in the function Type_std_attributes::agg_item_set_converter() for all test cases from the main test suite. | ||||||||||||
| Comment by Igor Babaev [ 2023-10-31 ] | ||||||||||||
|
Please review this patch. You've already checked it. | ||||||||||||
| Comment by Rex Johnston [ 2023-10-31 ] | ||||||||||||
|
Looks good to me. OK to push. | ||||||||||||
| Comment by Igor Babaev [ 2023-11-01 ] | ||||||||||||
|
A fix for this bug was pushed into 10.4. It has to be merged upstream as it is. |