[all-commits] [llvm/llvm-project] 8cb86e: [lldb/test][Darwin] Ask dyld where the real python is

Vedant Kumar via All-commits all-commits at lists.llvm.org
Fri May 8 10:23:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cb86ead77417f889bf32a8f83da299215f78545
      https://github.com/llvm/llvm-project/commit/8cb86ead77417f889bf32a8f83da299215f78545
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-05-08 (Fri, 08 May 2020)

  Changed paths:
    A lldb/test/API/get_darwin_real_python.py
    M lldb/test/API/lldbtest.py

  Log Message:
  -----------
  [lldb/test][Darwin] Ask dyld where the real python is

Summary:
On macOS, we can't do the DYLD_INSERT_LIBRARIES trick with a shim
python binary as the ASan interceptors get loaded too late. Find the
"real" python binary, copy it, and invoke it.

Hopefully this makes the GreenDragon and swift-ci sanitizer bots
happy...

I tested this out by running `../llvm-macosx-x86_64/bin/llvm-lit test
--filter TestNSDictionarySynthetic.py` in an ASanified swift-lldb build
directory and it worked (i.e. no more "interceptors loaded too late"
messages).

Reviewers: JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D79607




More information about the All-commits mailing list