<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 - Nesting "command source" scripts asserts when target already created"
href="https://bugs.llvm.org/show_bug.cgi?id=43742">43742</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Nesting "command source" scripts asserts when target already created
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</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@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>thomas.goodfellow@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22697" name="attach_22697" title="Pair of trivial scripts demonstrating bug">attachment 22697</a> <a href="attachment.cgi?id=22697&action=edit" title="Pair of trivial scripts demonstrating bug">[details]</a></span>
Pair of trivial scripts demonstrating bug
With a Debug build of the current (post-9.0 release) lldb sourcing a command
script from another command script crashes, e.g. where "a.script" contains just
"command source b.script" (also as attached files) then this crashes:
$ lldb -f test_executable -s a.script
(lldb) target create "test_executable"
Current executable set to './test_executable' (x86_64).
(lldb) command source a.script
Executing commands in './a.script'.
(lldb) command source b.script
lldb:
/space/user/thomasg/led/llvm-project/lldb/source/Interpreter/CommandObject.cpp:144:
bool
lldb_private::CommandObject::CheckRequirements(lldb_private::CommandReturnObject&):
Assertion `!m_exe_ctx.GetTargetPtr()' failed.
The assert() only trips if the target creation has occurred, i.e. changing the
above invocation to "lldb -f test_executable -S a.script" succeeds.
It's clearly similar though not obviously identical to <a class="bz_bug_link
bz_status_NEW "
title="NEW - stop-hook-threads.test fails on Linux"
href="show_bug.cgi?id=39954">bug 39954</a>.</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>