1
0
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:
monty@mysql.com
2005-12-03 18:13:06 +02:00
parent f5804869e3
commit 88eee63d8c
4 changed files with 8 additions and 6 deletions

View File

@@ -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 */