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@lists.llvm.org
Reporter: thomas.goodfel...@gmail.com
CC: jdevliegh...@apple.com, llvm-b...@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.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev