<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash in CreateTarget(..) in vim 8.0 python"
href="https://bugs.llvm.org/show_bug.cgi?id=34483">34483</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in CreateTarget(..) in vim 8.0 python
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vasko.tim@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19105" name="attach_19105" title="Crash trace for LLDB when running through VIM 8 via Python27 interpreter">attachment 19105</a> <a href="attachment.cgi?id=19105&action=edit" title="Crash trace for LLDB when running through VIM 8 via Python27 interpreter">[details]</a></span>
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:
<span class="quote">>>> 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</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>