<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - PythonAPI debugger.SetOutputFileHandle() causes crash"
href="http://llvm.org/bugs/show_bug.cgi?id=22730">22730</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PythonAPI debugger.SetOutputFileHandle() causes crash
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kevin.kirkup@cisco.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13961" name="attach_13961" title="Python LLDB script">attachment 13961</a> <a href="attachment.cgi?id=13961&action=edit" title="Python LLDB script">[details]</a></span>
Python LLDB script
Using a Python script in LLDB to redirect the debugger output to a file causes
lldb to crash.
Steps to Reproduce:
===============
1) Start lldb with an executable
2) Load the attached python script
lldb) command script import ~/Desktop/po.py
3) Create a breakpoint somewhere interesting
4) Run the executable
5) At the breakpoint, write some frame data using the Python script
lldb) print_to_file fr v param.blah
6) Re-run the previous command or dump another frame variable
lldb) print_to_file fr v param.blah
7) Core Dump - "segmentation fault (core dump) lldb <executable path>"</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>