<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 --- - expression interpreter fails after the inferior has crashed"
href="http://llvm.org/bugs/show_bug.cgi?id=15784">15784</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>expression interpreter fails after the inferior has crashed
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>ashok.thirumurthi@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When expression evaluation is performed after a crash, and the expression can
be handled by the expression interpreter, lldb fails with
error: warning: expression result unused
error: Interpreting the expression locally failed: Result of expression is in
bad memory
To reproduce, build test/functionalities/inferior-crashing and run
lldb a.out
run
p argc
Note that the automated test, test_inferior_expr shows the expected result and
can be run using:
python dotest.py --executable <path-to-lldb>
functionalities/inferior-crashing
Note that the above test fails because ClangExpressionParser::ParseAST fails:
runCmd: p argc
error: use of undeclared identifier 'argc'
error: 1 errors parsing expression
The following stack frame shows the expected context for the call:
#1 0x00007ffff1474b93 in lldb_private::ClangUserExpression::Parse
(this=0x102d410, error_stream=..., exe_ctx=...,
execution_policy=lldb_private::eExecutionPolicyNever,
keep_result_in_memory=true) at
/home/athirumu/dev/lldb/tools/lldb/source/Expression/ClangUserExpression.cpp:453
To reproduce the above failure manually, use:
lldb a.out
run
p argc
p argc
Reproduced using Ubuntu 12.04 with clang using r179749. Also reproduces using
gcc 4.6.3 and icc 13.1.0. Cannot reproduce manually using gcc in place of
lldb.</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>