[all-commits] [llvm/llvm-project] 2815ed: [ORC] Shut down dispatcher in ExecutorProcessContr...

lhames via All-commits all-commits at lists.llvm.org
Tue Oct 12 13:40:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2815ed57e3c99ab6c42399c3d0cf57cc118eb5df
      https://github.com/llvm/llvm-project/commit/2815ed57e3c99ab6c42399c3d0cf57cc118eb5df
  Author: Lang Hames <lhames at gmail.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp
    M llvm/lib/ExecutionEngine/Orc/SimpleRemoteEPC.cpp

  Log Message:
  -----------
  [ORC] Shut down dispatcher in ExecutorProcessControl implementations.

f3411616896 added a task dispatcher for async handlers, but didn't add a
TaskDispatcher::shutdown call to SelfExecutorProcessControl or SimpleRemoteEPC.
This patch adds the missing call, which ensures that we don't destroy the
dispatcher while tasks are still running.

This should fix the use-after-free crash seen in
https://lab.llvm.org/buildbot/#/builders/5/builds/13063




More information about the All-commits mailing list