[lldb-dev] [Bug 34483] New: Crash in CreateTarget(..) in vim 8.0 python

via lldb-dev lldb-dev at lists.llvm.org
Tue Sep 5 13:15:55 PDT 2017


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

            Bug ID: 34483
           Summary: Crash in CreateTarget(..) in vim 8.0 python
           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: vasko.tim at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19105
  --> https://bugs.llvm.org/attachment.cgi?id=19105&action=edit
Crash trace for LLDB when running through VIM 8 via Python27 interpreter

This happens with system-installed lldb (Xcode and toolset), as well as with
freshly compiled lldb on master.

The included python llvm vim-plugin works fine from standalone python
interpreter (excluding vim imports), but crashes when running through Vim. VIM
was built against system-installed Python 2.7.10 (I'm on Sierra 10.12.6).
3rd-party vim 8 installs suffer same/worse issues. It is unclear what is
different about python when running through vim rather than python interpreter;
regardless, crash occurs in lldb.

Behold, code sample:

>>> import lldb
>>> dbg = lldb.SBDebugger.Create()
>>> target = dbg.CreateTarget("/Users/owl/git/bravo/bin/bravo") # custom executable, crashes with any executable really as long as it's a real executable

This code works perfectly when executed from standalone python interpreter. In
vim, it crashes lldb, causing vim to crash. Attached is the crash report, along
with full debug stack trace - source names line numbers, should be enough to
diagnose.

Can't tell yet if problem with swig bindings or not, but looks like there is an
operation on null PythonObject to get it's type.

-- 
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/20170905/10988b75/attachment.html>


More information about the lldb-dev mailing list