[Lldb-commits] [lldb] [lldb] Fix DIL error diagnostics output (PR #187680)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 1 07:39:40 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 33386 tests passed
* 519 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### lldb-api
<details>
<summary>lldb-api.commands/dwim-print/TestDWIMPrint.py</summary>
```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/dwim-print -p TestDWIMPrint.py
--
Exit Code: -6
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 714170cc17737966879f7dfdd266532a1ab5ee91)
clang revision 714170cc17737966879f7dfdd266532a1ab5ee91
llvm revision 714170cc17737966879f7dfdd266532a1ab5ee91
--
Command Output (stderr):
--
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_direct_child_access_dsym (TestDWIMPrint.TestCase.test_direct_child_access_dsym) (test case does not fall in any category of interest for this run)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_direct_child_access_dwarf (TestDWIMPrint.TestCase.test_direct_child_access_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_direct_child_access_dwo (TestDWIMPrint.TestCase.test_direct_child_access_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_display_flags_dsym (TestDWIMPrint.TestCase.test_display_flags_dsym) (test case does not fall in any category of interest for this run)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_display_flags_dwarf (TestDWIMPrint.TestCase.test_display_flags_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_display_flags_dwo (TestDWIMPrint.TestCase.test_display_flags_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_dummy_target_expressions_dsym (TestDWIMPrint.TestCase.test_dummy_target_expressions_dsym) (test case does not fall in any category of interest for this run)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_dummy_target_expressions_dwarf (TestDWIMPrint.TestCase.test_dummy_target_expressions_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_dummy_target_expressions_dwo (TestDWIMPrint.TestCase.test_dummy_target_expressions_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_empty_expression_dsym (TestDWIMPrint.TestCase.test_empty_expression_dsym) (test case does not fall in any category of interest for this run)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_empty_expression_dwarf (TestDWIMPrint.TestCase.test_empty_expression_dwarf)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_empty_expression_dwo (TestDWIMPrint.TestCase.test_empty_expression_dwo)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_expression_language_dsym (TestDWIMPrint.TestCase.test_expression_language_dsym) (test case does not fall in any category of interest for this run)
python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:36: lldb_private::dil::DILDiagnosticError::DILDiagnosticError(llvm::StringRef, const std::string &, uint32_t, uint16_t): Assertion `err_len != 0' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
#0 0x0000797e3fd1da18 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
#1 0x0000797e3fd1a9c8 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
#2 0x0000797e3fd1e831 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
#3 0x0000797e46485330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#4 0x0000797e464deb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
#5 0x0000797e4648527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
#6 0x0000797e464688ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
#7 0x0000797e4646881b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
#8 0x0000797e4647b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
#9 0x0000797e3f7d35cc _M_create /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.tcc:144:2
#10 0x0000797e3f7d35cc _M_assign /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.tcc:288:24
#11 0x0000797e3f7d35cc assign /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:1608:8
#12 0x0000797e3f7d35cc operator= /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:814:15
#13 0x0000797e3f7d35cc lldb_private::dil::DILDiagnosticError::DILDiagnosticError(llvm::StringRef, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, unsigned short) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:49:20
#14 0x0000797e3f7d79d2 BailOut /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:707:3
#15 0x0000797e3f7d79d2 lldb_private::dil::DILParser::ParsePrimaryExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:343:3
#16 0x0000797e3f7d60b4 _M_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:199:51
#17 0x0000797e3f7d60b4 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:470:21
#18 0x0000797e3f7d60b4 operator bool /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:487:16
#19 0x0000797e3f7d60b4 lldb_private::dil::DILParser::ParsePostfixExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:267:10
#20 0x0000797e3f7d5311 lldb_private::dil::DILParser::ParseUnaryExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:0:10
#21 0x0000797e3f7d4dd7 lldb_private::dil::DILParser::ParseCastExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:0:12
#22 0x0000797e3f7d53e8 _M_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:199:51
#23 0x0000797e3f7d53e8 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:470:21
#24 0x0000797e3f7d53e8 operator bool /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:487:16
#25 0x0000797e3f7d53e8 lldb_private::dil::DILParser::ParseUnaryExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:235:12
#26 0x0000797e3f7d4dd7 lldb_private::dil::DILParser::ParseCastExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:0:12
#27 0x0000797e3f7d4b04 _M_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:199:51
#28 0x0000797e3f7d4b04 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:470:21
#29 0x0000797e3f7d4b04 operator bool /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:487:16
#30 0x0000797e3f7d4b04 lldb_private::dil::DILParser::ParseAdditiveExpression() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:159:12
#31 0x0000797e3f7d3eb2 Run /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:134:3
#32 0x0000797e3f7d3eb2 lldb_private::dil::DILParser::Parse(llvm::StringRef, lldb_private::dil::DILLexer, std::shared_ptr<lldb_private::StackFrame>, lldb::DynamicValueType, unsigned int) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/ValueObject/DILParser.cpp:112:30
#33 0x0000797e3f6d9196 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
#34 0x0000797e3f6d9196 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
#35 0x0000797e3f6d9196 lldb_private::StackFrame::DILGetValueForVariableExpressionPath(llvm::StringRef, lldb::DynamicValueType, unsigned int, std::shared_ptr<lldb_private::Variable>&, lldb_private::Status&, lldb::DILMode) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Target/StackFrame.cpp:553:7
#36 0x0000797e3f6d8f26 lldb_private::StackFrame::GetValueForVariableExpressionPath(llvm::StringRef, lldb::DynamicValueType, unsigned int, std::shared_ptr<lldb_private::Variable>&, lldb_private::Status&, lldb::DILMode) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Target/StackFrame.cpp:532:12
#37 0x0000797e42ecb61e CommandObjectFrameVariable::DoExecute(lldb_private::Args&, lldb_private::CommandReturnObject&) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Commands/CommandObjectFrame.cpp:616:32
#38 0x0000797e3f5dd09c Cleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Interpreter/CommandObject.cpp:267:3
#39 0x0000797e3f5dd09c lldb_private::CommandObjectParsed::Execute(char const*, lldb_private::CommandReturnObject&) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Interpreter/CommandObject.cpp:0:0
#40 0x0000797e3f5ca8a9 ~ElapsedTime /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/include/lldb/Target/Statistics.h:88:36
#41 0x0000797e3f5ca8a9 lldb_private::CommandInterpreter::HandleCommand(char const*, lldb_private::LazyBool, lldb_private::CommandReturnObject&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Interpreter/CommandInterpreter.cpp:2301:3
#42 0x0000797e3f26f664 lldb::SBCommandInterpreter::HandleCommand(char const*, lldb::SBExecutionContext&, lldb::SBCommandReturnObject&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/API/SBCommandInterpreter.cpp:0:21
#43 0x0000797e3f26f420 lldb::SBCommandInterpreter::HandleCommand(char const*, lldb::SBCommandReturnObject&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/API/SBCommandInterpreter.cpp:176:10
#44 0x0000797e3f3b3059 _wrap_SBCommandInterpreter_HandleCommand__SWIG_1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/bindings/python/LLDBWrapPython.cpp:16915:42
#45 0x0000797e3f3b3059 _wrap_SBCommandInterpreter_HandleCommand(_object*, _object*) /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/bindings/python/LLDBWrapPython.cpp:17074:18
#46 0x0000000000581ec0 (/usr/bin/python3.12+0x581ec0)
#47 0x000000000054b11c PyObject_Call (/usr/bin/python3.12+0x54b11c)
#48 0x00000000005db0ba _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5db0ba)
#49 0x000000000054caad (/usr/bin/python3.12+0x54caad)
#50 0x00000000005db0ba _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5db0ba)
#51 0x000000000054a7c2 _PyObject_Call_Prepend (/usr/bin/python3.12+0x54a7c2)
#52 0x00000000005a3458 (/usr/bin/python3.12+0x5a3458)
#53 0x0000000000548f75 _PyObject_MakeTpCall (/usr/bin/python3.12+0x548f75)
#54 0x00000000005d6f09 _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5d6f09)
#55 0x000000000054caad (/usr/bin/python3.12+0x54caad)
#56 0x00000000005db0ba _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5db0ba)
#57 0x000000000054a7c2 _PyObject_Call_Prepend (/usr/bin/python3.12+0x54a7c2)
#58 0x00000000005a3458 (/usr/bin/python3.12+0x5a3458)
#59 0x0000000000548f75 _PyObject_MakeTpCall (/usr/bin/python3.12+0x548f75)
#60 0x00000000005d6f09 _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5d6f09)
#61 0x000000000054caad (/usr/bin/python3.12+0x54caad)
#62 0x00000000005db0ba _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5db0ba)
#63 0x000000000054a7c2 _PyObject_Call_Prepend (/usr/bin/python3.12+0x54a7c2)
#64 0x00000000005a3458 (/usr/bin/python3.12+0x5a3458)
#65 0x0000000000548f75 _PyObject_MakeTpCall (/usr/bin/python3.12+0x548f75)
#66 0x00000000005d6f09 _PyEval_EvalFrameDefault (/usr/bin/python3.12+0x5d6f09)
#67 0x00000000005d543b PyEval_EvalCode (/usr/bin/python3.12+0x5d543b)
#68 0x00000000006085d2 (/usr/bin/python3.12+0x6085d2)
#69 0x00000000006b4d03 (/usr/bin/python3.12+0x6b4d03)
#70 0x00000000006b4a6a _PyRun_SimpleFileObject (/usr/bin/python3.12+0x6b4a6a)
#71 0x00000000006b489f _PyRun_AnyFileObject (/usr/bin/python3.12+0x6b489f)
#72 0x00000000006bc905 Py_RunMain (/usr/bin/python3.12+0x6bc905)
#73 0x00000000006bc3ed Py_BytesMain (/usr/bin/python3.12+0x6bc3ed)
#74 0x0000797e4646a1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#75 0x0000797e4646a28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#76 0x00000000006576c5 _start (/usr/bin/python3.12+0x6576c5)
Fatal Python error: Aborted
Current thread 0x0000797e4643f080 (most recent call first):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.12/dist-packages/lldb/__init__.py", line 4053 in HandleCommand
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/dwim-print/TestDWIMPrint.py", line 16 in _run_cmd
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/dwim-print/TestDWIMPrint.py", line 47 in _expect_cmd
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/dwim-print/TestDWIMPrint.py", line 111 in test_expression_language
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2034 in test_method
File "/usr/lib/python3.12/unittest/case.py", line 589 in _callTestMethod
File "/usr/lib/python3.12/unittest/case.py", line 634 in run
File "/usr/lib/python3.12/unittest/case.py", line 690 in __call__
File "/usr/lib/python3.12/unittest/suite.py", line 122 in run
File "/usr/lib/python3.12/unittest/suite.py", line 84 in __call__
File "/usr/lib/python3.12/unittest/suite.py", line 122 in run
File "/usr/lib/python3.12/unittest/suite.py", line 84 in __call__
File "/usr/lib/python3.12/unittest/runner.py", line 240 in run
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/dotest.py", line 1181 in run_suite
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py", line 8 in <module>
Extension modules: lldb.native._lldb (total: 1)
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/187680
More information about the lldb-commits
mailing list