Skip to content

MDEV-35816 ASAN use-after-poison in st_select_lex::print #3993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 10.11
Choose a base branch
from

Conversation

DaveGosselin-MariaDB
Copy link
Member

Semi-joins with CTEs as the derived table will leave dangling pointers to the JOIN instance, from the corresponding SELECT_LEX instance, after first execution has completed. Clean these up during statement reinitialization, before subsequent executions occur.

Semi-joins with CTEs as the derived table will leave dangling pointers
to the JOIN instance, from the corresponding SELECT_LEX instance, after
first execution has completed.  Clean these up during statement
reinitialization, before subsequent executions occur.
@DaveGosselin-MariaDB DaveGosselin-MariaDB force-pushed the 10.11-mdev-35816-asan-print branch from e4a466d to 2014c34 Compare April 23, 2025 13:15
// should have already been destroyed by this point. There's no way
// to assert that because it will result in EXC_BAD_ACCESS.
for (SELECT_LEX *sl= unit->first_select(); sl; sl= sl->next_select())
sl->join= nullptr;
Copy link
Member Author

@DaveGosselin-MariaDB DaveGosselin-MariaDB Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need to recursively call this new function cleanup_joins from here? Just in case we have nested semi-joins with CTEs inside of those, and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants