[Lldb-commits] [lldb] Ensure that the executable module is ModuleList[0] (PR #78360)
Petr Hosek via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 17 00:16:57 PST 2024
petrhosek wrote:
`lldb-api :: functionalities/executable_first/TestExecutableFirst.py` is failing on our Linux builders with the following error:
```
Script:
--
/b/s/w/ir/x/w/lldb_install/python3/bin/python3 /b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env ARCHIVER=/b/s/w/ir/x/w/cipd/bin/llvm-ar --env OBJCOPY=/b/s/w/ir/x/w/cipd/bin/llvm-objcopy --env LLVM_LIBS_DIR=/b/s/w/ir/x/w/llvm_build/./lib --env LLVM_INCLUDE_DIR=/b/s/w/ir/x/w/llvm_build/include --env LLVM_TOOLS_DIR=/b/s/w/ir/x/w/llvm_build/./bin --libcxx-include-dir /b/s/w/ir/x/w/llvm_build/include/c++/v1 --libcxx-include-target-dir /b/s/w/ir/x/w/llvm_build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /b/s/w/ir/x/w/llvm_build/./lib/x86_64-unknown-linux-gnu --arch x86_64 --build-dir /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex --lldb-module-cache-dir /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /b/s/w/ir/x/w/llvm_build/./bin/lldb --compiler /b/s/w/ir/x/w/llvm_build/./bin/clang --dsymutil /b/s/w/ir/x/w/llvm_build/./bin/dsymutil --llvm-tools-dir /b/s/w/ir/x/w/llvm_build/./bin --lldb-libs-dir /b/s/w/ir/x/w/llvm_build/./lib /b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/functionalities/executable_first -p TestExecutableFirst.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 18.0.0git (https://llvm.googlesource.com/a/llvm-project revision a4cd99ea8736eda2b8b4de34453f55008bcf9c30)
clang revision a4cd99ea8736eda2b8b4de34453f55008bcf9c30
llvm revision a4cd99ea8736eda2b8b4de34453f55008bcf9c30
Skipping the following test categories: ['dsym', 'gmodules', 'debugserver', 'objc']
This is the first test, this one succeeds
--
Command Output (stderr):
--
FAIL: LLDB (/b/s/w/ir/x/w/llvm_build/bin/clang-x86_64) :: test_executable_is_first_before_run (TestExecutableFirst.TestExecutableIsFirst)
FAIL: LLDB (/b/s/w/ir/x/w/llvm_build/bin/clang-x86_64) :: test_executable_is_first_during_run (TestExecutableFirst.TestExecutableIsFirst)
======================================================================
FAIL: test_executable_is_first_before_run (TestExecutableFirst.TestExecutableIsFirst)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/functionalities/executable_first/TestExecutableFirst.py", line 32, in test_executable_is_first_before_run
self.assertEqual(module, first_module, "This executable is the first module")
AssertionError: (x86_64) /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/functionalities/executable_first/TestExecutableFirst.test_executable_is_first_before_run/a.out != (x86_64) /b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/functionalities/executable_first/TestExecutableFirst.test_executable_is_first_before_run/libbar.so : This executable is the first module
Config=x86_64-/b/s/w/ir/x/w/llvm_build/bin/clang
======================================================================
FAIL: test_executable_is_first_during_run (TestExecutableFirst.TestExecutableIsFirst)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/functionalities/executable_first/TestExecutableFirst.py", line 43, in test_executable_is_first_during_run
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/lldbutil.py", line 1009, in run_to_source_breakpoint
return run_to_breakpoint_do_run(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/b/s/w/ir/x/w/llvm-llvm-project/lldb/packages/Python/lldbsuite/test/lldbutil.py", line 906, in run_to_breakpoint_do_run
test.fail(
AssertionError: Test process is not stopped at breakpoint: state: exited, exit code: 127, stdout: '/b/s/w/ir/x/w/llvm_build/lldb-test-build.noindex/functionalities/executable_first/TestExecutableFirst.test_executable_is_first_during_run/a.out: error while loading shared libraries: libbar.so: cannot open shared object file: No such file or directory
'
Config=x86_64-/b/s/w/ir/x/w/llvm_build/bin/clang
----------------------------------------------------------------------
Ran 2 tests in 0.298s
RESULT: FAILED (0 passes, 2 failures, 0 errors, 0 skipped, 0 expected failures, 0 unexpected successes)
--
```
Do you know what might be the issue?
https://github.com/llvm/llvm-project/pull/78360
More information about the lldb-commits
mailing list