mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-28124 Server crashes in Explain_aggr_filesort::print_json_members
SHOW EXPLAIN/ANALYZE FORMAT=JSON tries to access items that have already been freed by a call to free_items() during THD::cleanup_after_query(). The solution is to disallow APC calls including SHOW EXPLAIN/ANALYZE just before the call to free_items().
This commit is contained in:
committed by
Sergei Petrunia
parent
a0475cb9ca
commit
02c3babdec
@ -2575,6 +2575,11 @@ void log_slow_statement(THD *thd)
|
||||
|
||||
end:
|
||||
delete_explain_query(thd->lex);
|
||||
DBUG_EXECUTE_IF("log_slow_statement_end",
|
||||
if (dbug_user_var_equals_str(thd, "show_explain_probe_query",
|
||||
thd->query()))
|
||||
dbug_serve_apcs(thd, 1);
|
||||
);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user