Bug #110805 Subquery assertion error
Submitted: 25 Apr 2023 14:05 Modified: 25 Apr 2023 14:52
Reporter: Pedro Ferreira Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S6 (Debug Builds)
Version:8.0.33 OS:Ubuntu (22.04)
Assigned to: CPU Architecture:x86 (x86_64)
Tags: having

[25 Apr 2023 14:05] Pedro Ferreira
Description:
Run these queries:

CREATE TABLE t0 (c0 INT);
SELECT 1 FROM t0 HAVING 1 = ((SELECT 1) ORDER BY t0.c0);

The SELECT query will trigger an assertion error at sql/item.cc:8012
assert(context->query_block == thd->lex->current_query_block());

The compilation parameters are the same as issue 108148:

-DWITH_DEBUG=1 -DWITH_ASAN=ON -DWITH_UBSAN=ON and boost library version 1.77

How to repeat:
Run the queries above.
[25 Apr 2023 14:52] MySQL Verification Team
Hello Pedro Ferreira,

Thank you for the report and feedback.
Observed that 8.0.33 debug build is affected.

regards,
Umesh