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

            Bug ID: 48342
           Summary: LLDB crashes when inspecting an object created using
                    ni::type_hierarchy
           Product: lldb
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev@lists.llvm.org
          Reporter: hbu...@fender.com
                CC: jdevliegh...@apple.com, llvm-b...@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
12. 

Here is the issue filed against the matchine library:
https://github.com/NativeInstruments/matchine/issues/1

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.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to