[Lldb-commits] [lldb] [lldb] Handle an empty SBMemoryRegionInfo from scripted process (PR #115963)

LLVM Continuous Integration via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 15 00:41:47 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `lldb` at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/7002

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test) failure: build (failure)
...
UNSUPPORTED: lldb-api :: functionalities/ptrauth_diagnostics/LDRAA_error/TestPtrauthLDRAADiagnostic.py (561 of 2829)
UNSUPPORTED: lldb-api :: functionalities/ptrauth_diagnostics/brkC47x_code/TestPtrauthBRKc47xDiagnostic.py (562 of 2829)
UNSUPPORTED: lldb-api :: functionalities/ptrauth_diagnostics/brkC47x_x16_invalid/TestPtrauthBRKc47xX16Invalid.py (563 of 2829)
PASS: lldb-api :: functionalities/rerun/TestRerun.py (564 of 2829)
PASS: lldb-api :: functionalities/rerun_and_expr/TestRerunAndExpr.py (565 of 2829)
UNSUPPORTED: lldb-api :: functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py (566 of 2829)
PASS: lldb-api :: functionalities/scripted_process/TestScriptedProcess.py (567 of 2829)
UNSUPPORTED: lldb-api :: functionalities/scripted_process/TestStackCoreScriptedProcess.py (568 of 2829)
PASS: lldb-api :: functionalities/return-value/TestReturnValue.py (569 of 2829)
UNSUPPORTED: lldb-api :: functionalities/set-data/TestSetData.py (570 of 2829)
FAIL: lldb-api :: functionalities/scripted_process_empty_memory_region/TestScriptedProcessEmptyMemoryRegion.py (571 of 2829)
******************** TEST 'lldb-api :: functionalities/scripted_process_empty_memory_region/TestScriptedProcessEmptyMemoryRegion.py' FAILED ********************
Script:
--
/usr/bin/python3.10 /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin --arch armv8l --build-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/lldb --compiler /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/clang --dsymutil /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/dsymutil --make /usr/bin/make --llvm-tools-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin --lldb-obj-root /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/tools/lldb --lldb-libs-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./lib /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_process_empty_memory_region -p TestScriptedProcessEmptyMemoryRegion.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision a1a1a4ced9d4ecba428175c45a24da476bdc55f4)
  clang revision a1a1a4ced9d4ecba428175c45a24da476bdc55f4
  llvm revision a1a1a4ced9d4ecba428175c45a24da476bdc55f4
Skipping the following test categories: ['libc++', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
error: failed to launch or debug process
Traceback (most recent call last):
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_process_empty_memory_region/dummy_scripted_process.py", line 15, in __init__
    self.threads[0] = DummyScriptedThread(self, None)
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_process_empty_memory_region/dummy_scripted_process.py", line 65, in __init__
    super().__init__(process, args)
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/local/lib/python3.10/dist-packages/lldb/plugins/scripted_process.py", line 273, in __init__
    self.get_register_info()
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/local/lib/python3.10/dist-packages/lldb/plugins/scripted_process.py", line 364, in get_register_info
    raise ValueError("Unknown architecture", self.originating_process.arch)
ValueError: ('Unknown architecture', 'arm')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_process_empty_memory_region/dummy_scripted_process.py", line 108, in __lldb_init_module
    debugger.HandleCommand(
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/local/lib/python3.10/dist-packages/lldb/__init__.py", line 4878, in HandleCommand
    return _lldb.SBDebugger_HandleCommand(self, command)
SystemError: <built-in function SBDebugger_HandleCommand> returned a result with an exception set
FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang-arm) :: test_scripted_process_empty_memory_region (TestScriptedProcessEmptyMemoryRegion.ScriptedProcessEmptyMemoryRegion)

```

</details>

https://github.com/llvm/llvm-project/pull/115963


More information about the lldb-commits mailing list