<html>
<head>
<base href="https://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 --- - crashlog.py leads to a segfault"
href="https://llvm.org/bugs/show_bug.cgi?id=27563">27563</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>crashlog.py leads to a segfault
</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>antonio.frighetto@studenti.unitn.it
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Let's say a crash dump has an unspecified stack frame, like the following:
5 ??? 0x00007fff9a51076f objc_exception_throw + 432
Then, once set up lldb and imported crashlog.py script (alternatively via
PYTHONPATH=/path/to/LLDB.framework/Resources/Python ./crashlog.py
~/Library/Logs/DiagnosticReports/a.crash), after being loaded, line 867:
images = crash_log.find_images_with_identifier (ident)
seems to lead to a segmentation fault. Tested on multiple crashes. Looks like
as if a little fix may be as follows:
...
for ident in crash_log.idents:
if ident != "???":
images = crash_log.find_images_with_identifier(ident)
if images:
...
Bye, Antonio.</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>