[lldb-dev] [Bug 43742] New: Nesting "command source" scripts asserts when target already created
via lldb-dev
lldb-dev at lists.llvm.org
Mon Oct 21 03:37:40 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43742
Bug ID: 43742
Summary: Nesting "command source" scripts asserts when target
already created
Product: lldb
Version: 9.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: thomas.goodfellow at gmail.com
CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org
Created attachment 22697
--> https://bugs.llvm.org/attachment.cgi?id=22697&action=edit
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 bug 39954.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20191021/4082e882/attachment.html>
More information about the lldb-dev
mailing list