HomePhabricator

[lldb/test][Darwin] Ask dyld where the real python is

Authored by vsk on Thu, May 7, 4:07 PM.

Description

[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

Details

Committed
vskFri, May 8, 10:22 AM
Differential Revision
D79607: [lldb/test][Darwin] Ask dyld where the real python is
Parents
rG78a43f10c701: AMDGPU: Don't assert on unknown address spaces
Branches
Unknown
Tags
Unknown