[lldb-dev] [Bug 48342] New: LLDB crashes when inspecting an object created using ni::type_hierarchy

via lldb-dev lldb-dev at lists.llvm.org
Mon Nov 30 16:09:08 PST 2020


            Bug ID: 48342
           Summary: LLDB crashes when inspecting an object created using
           Product: lldb
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: hbursk at fender.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

When using the Native Instruments open source library matchine, the
ni::type_hierarchy objects crash the LLDB RPC Server when inspected using Xcode

Here is the issue filed against the matchine library:

Here is an example that crashes LLDB. It requires the matchine library which
has a dependency on boost. 

#include <iostream>
#include <ni/type_hierarchy.h>

struct EventBase {
    EventBase() = default;
    virtual ~EventBase() = default;

using Event = ni::type_hierarchy::from_base<EventBase>;

NI_SUB_TYPE(struct TestEvent, Event)
    int value = 0;
    TestEvent(int value_)
    : value( value_ )

int main(int argc, const char * argv[]) {
    TestEvent testEvent(100);

    // insert breakpoint here to inspect testEvent
    // inpecting testEvent will crash LLDB
    TestEvent testEvent2(200);

    return 0;

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/20201201/08d22edb/attachment.html>

More information about the lldb-dev mailing list