I this was because of a change in llvm which broke codesigning of debugserver: https://reviews.llvm.org/D64965
On Fri, Jul 19, 2019 at 10:36 AM Gábor Márton via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Actually, it is embarrassing (perhaps for macOS and not for me) that after > a reboot the problem is gone. > Perhaps after "sudo /usr/sbin/DevToolsSecurity --enable" a reboot is > required, but could not find anything official about that. > > On Fri, Jul 19, 2019 at 7:20 PM Gábor Márton <martongab...@gmail.com> > wrote: > >> This might not be related to the debugserver, I just realized that I get >> "error: process exited with status -1 (Error 1)" >> even with the simplest main.c. >> This may be some kind of security issue on mac OS... >> Though I've checked and I have SIP disabled and I have executed "sudo >> /usr/sbin/DevToolsSecurity --enable". >> >> On Fri, Jul 19, 2019 at 4:46 PM Gábor Márton <martongab...@gmail.com> >> wrote: >> >>> Hi Stefan, >>> >>> Since the commit >>> "[CMake] Always build debugserver on Darwin and allow tests to use the >>> system's one" >>> I cannot use the system debugserver for testing. >>> I receive the following error message from lldb when I execute "ninja >>> check-lldb": >>> ``` >>> runCmd: run >>> runCmd failed! >>> error: process exited with status -1 (Error 1) >>> ``` >>> >>> I do set up "-DLLDB_USE_SYSTEM_DEBUGSERVER=ON" with cmake so I see >>> ``` >>> -- LLDB tests use out-of-tree debugserver: >>> /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Resources/debugserver >>> ``` >>> >>> Also, I have inspected the following test output >>> ``` >>> Command invoked: /usr/bin/python >>> /Users/egbomrt/llvm2/git/llvm/tools/lldb/test/dotest.py -q --arch=x86_64 -s >>> /Users/egbomrt/llvm2/build/release_assert/lldb-test-traces --build-dir >>> /Users/egbomrt/llvm2/build/release_assert/lldb-test-build.noindex -S nm -u >>> CXXFLAGS -u CFLAGS --executable >>> /Users/egbomrt/llvm2/build/release_assert/./bin/lldb --dsymutil >>> /Users/egbomrt/llvm2/build/release_assert/./bin/dsymutil --filecheck >>> /Users/egbomrt/llvm2/build/release_assert/./bin/FileCheck -C >>> /Users/egbomrt/llvm2/build/release_assert/bin/clang --codesign-identity - >>> --out-of-tree-debugserver --arch x86_64 -t --env TERM=vt100 -p >>> TestCModules.py --results-port 49931 -S nm --inferior -p TestCModules.py >>> /Users/egbomrt/llvm2/git/llvm/tools/lldb/packages/Python/lldbsuite/test/lang/c/modules >>> --event-add-entries worker_index=0:int >>> 1 out of 736 test suites processed - TestCModules.py >>> ``` >>> so it seems like the argument for --out-of-tree-debugserver is missing... >>> >>> Could you please advise? >>> >>> Thank you, >>> Gabor >>> >> _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev >
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev