CPUThread: fix ASAN use-after-free
This commit is contained in:
@@ -729,8 +729,14 @@ void cpu_thread::operator()()
|
|||||||
{
|
{
|
||||||
if (_this)
|
if (_this)
|
||||||
{
|
{
|
||||||
sys_log.warning("CPU Thread '%s' terminated abnormally!", name);
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
|
auto log_thread = named_thread("CPU Thread Cleanup Logger", [name = name]()
|
||||||
|
{
|
||||||
|
sys_log.warning("CPU Thread '%s' terminated abnormally!", name);
|
||||||
|
});
|
||||||
|
|
||||||
|
log_thread();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} cleanup;
|
} cleanup;
|
||||||
|
|||||||
Reference in New Issue
Block a user