mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Set thread_stack after return from end_thread()
Fixes core dump when reusing thread when running debug binary
This commit is contained in:
@@ -1182,6 +1182,7 @@ end_thread:
|
||||
or this thread has been schedule to handle the next query
|
||||
*/
|
||||
thd= current_thd;
|
||||
thd->thread_stack= (char*) &thd;
|
||||
} while (!(test_flags & TEST_NO_THREADS));
|
||||
/* The following is only executed if we are not using --one-thread */
|
||||
return(0); /* purecov: deadcode */
|
||||
|
||||
Reference in New Issue
Block a user