[lldb-dev] [Bug 39750] New: lldb built with cmake on macOS fails to debug applications

via lldb-dev lldb-dev at lists.llvm.org
Thu Nov 22 02:03:52 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39750

            Bug ID: 39750
           Summary: lldb built with cmake on macOS fails to debug
                    applications
           Product: lldb
           Version: 7.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: alexandru.croitor at qt.io
                CC: llvm-bugs at lists.llvm.org

Created attachment 21141
  --> https://bugs.llvm.org/attachment.cgi?id=21141&action=edit
lldb stacktrace

Hi,

I'm trying to build lldb master from sources using cmake on macOS 10.14.1, and
the build finishes successfully, but debugging does not work. 
Using the same sources with xcodebuild, lldb can successfully debug
applications.

Initially I thought the issue might be due to code signing, but then I saw that
the xcodebuild lldb is not code signed at all (although the debugserver is)

Nevertheless I tried building both with -DLLDB_CODESIGN_IDENTITY="" and
DLLDB_CODESIGN_IDENTITY="lldb_codesign", but it didn't make a difference.

I also have SIP and gatekeeper disabled, and I followed the steps for creating
a code sign cert from the docs.


The issue specifically is that after running 
$ lldb ./my-app
(lldb) r

the application is not launched, and lldb freezes.
If I press Ctrl-C 3 times, lldb quits, and the application gets launched.

Attaching the stacktrace of lldb, as well as the log file.
Judging from the log and trace, it looks like lldb expects some event to happen
when launching the app, but it doesn't.


lldb version 8.0.0 (http://llvm.org/git/lldb.git revision
0d6a8ba20fb9eb76c7cce62f18a9764c743f4e52)
  clang revision 2d5099826365b50ff253e48c0832255600e68202
  llvm revision 498b7f9b57123ce661e075ae584876be72852506

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20181122/00f148d2/attachment.html>


More information about the lldb-dev mailing list