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

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


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 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
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 on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201201/31925def/attachment.html>


More information about the llvm-bugs mailing list