Running LLDB in a container

I’m trying to test the LLDB libc++ dataformatters in the libc++ precommit CI. This runs inside a Docker image here I run into the same personality set failed: Function not implemented issue.

When manually running LLDB either of these solutions solves the issue:

  • echo 'settings set target.disable-aslr false' >~/.lldbinit
  • Using lldb -O 'settings set target.disable-aslr false' a.out.

When I build the check-lldb-api-functionalities-data-formatter-data-formatter-stl-libcxx target it does not use the ~/.lldbinit.
Configuring CMake using -DLLDB_TEST_USER_ARGS="-O 'settings set target.disable-aslr false'" also does not solve the issue.

Any suggestions how to fix this when running the LLDB tests in a Docker image?