Bug ID 34483
Summary Crash in CreateTarget(…) in vim 8.0 python
OS MacOS X
Component All Bugs
Created attachment 19105 [details] 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.