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-...@lists.llvm.org
Reporter: vasko....@gmail.com
CC: llvm-bugs@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 on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs