[all-commits] [llvm/llvm-project] 1c499a: [ORC] Remove EDU from dependants list of dependenc...

Lang Hames via All-commits all-commits at lists.llvm.org
Mon Sep 23 23:43:08 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c499a7200692e9428111829a4e323b452823825
      https://github.com/llvm/llvm-project/commit/1c499a7200692e9428111829a4e323b452823825
  Author: Lang Hames <lhames at gmail.com>
  Date:   2024-09-24 (Tue, 24 Sep 2024)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/Core.cpp

  Log Message:
  -----------
  [ORC] Remove EDU from dependants list of dependencies before destroying.

Dependant lists hold raw pointers back to EDUs that depend on them. We need to
remove these entries before destroying the EDU or we'll be left with a dangling
reference that can result in use-after-free bugs.

No testcase: This has only been observed in multi-threaded setups that
reproduce the issue inconsistently.

rdar://135403614
(cherry picked from commit 7034ec491251e598d2867199f89fefa3eb16a1a0)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list