mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Fix core dumps in ExitActor (#8382)
This commit is contained in:
parent
57544b1ff9
commit
a593fde606
1 changed files with 8 additions and 2 deletions
|
@ -1917,7 +1917,10 @@ void CoreWorker::HandleCancelTask(const rpc::CancelTaskRequest &request,
|
|||
if (options_.log_dir != "") {
|
||||
RayLog::ShutDownRayLog();
|
||||
}
|
||||
exit(1);
|
||||
// NOTE(hchen): Use `_Exit()` to force-exit this process without doing cleanup.
|
||||
// `exit()` will destruct static objects in an incorrect order, which will lead to
|
||||
// core dumps.
|
||||
_Exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1953,7 +1956,10 @@ void CoreWorker::HandleKillActor(const rpc::KillActorRequest &request,
|
|||
if (options_.log_dir != "") {
|
||||
RayLog::ShutDownRayLog();
|
||||
}
|
||||
exit(1);
|
||||
// NOTE(hchen): Use `_Exit()` to force-exit this process without doing cleanup.
|
||||
// `exit()` will destruct static objects in an incorrect order, which will lead to
|
||||
// core dumps.
|
||||
_Exit(1);
|
||||
} else {
|
||||
Exit(/*intentional=*/true);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue