llvm / llvm/llvm-project

[lldb] ScriptedFrameProviders are failing on arm32 bots.

Open
#170,412 11 comments 0 reactions 0 assignees View on GitHub
lldb test-suite
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

The scripted frame providers tests that landed as part of #170236 fail on arm32 bots: https://lab.llvm.org/buildbot/#/builders/18/builds/23010/steps/6/logs/stdio

[stdio.txt](https://github.com/user-attachments/files/23894604/stdio-2.txt)

```
FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang-arm) :: test_circular_dependency_with_function_replacement (TestFrameProviderCircularDependency.FrameProviderCircularDependencyTestCase)
======================================================================
FAIL: test_circular_dependency_with_function_replacement (TestFrameProviderCircularDependency.FrameProviderCircularDependencyTestCase)
Test the circular dependency fix with a provider that replaces function names.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_frame_provider/circular_dependency/TestFrameProviderCircularDependency.py", line 83, in test_circular_dependency_with_function_replacement
self.assertEqual(
AssertionError: 0 != 6 : Frame count should be unchanged (replacement, not addition)
Config=arm-/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang
----------------------------------------------------------------------
Ran 1 test in 0.478s

FAILED (failures=1)

...

FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang-arm) :: test_scripted_frame_objects (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
======================================================================
FAIL: test_scripted_frame_objects (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
Test that provider can return ScriptedFrame objects.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py", line 153, in test_scripted_frame_objects
self.assertEqual(
AssertionError: 0 != 5 : Should have 5 custom scripted frames
Config=arm-/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang
----------------------------------------------------------------------
Ran 7 tests in 11.317s

FAILED (failures=1)

--
```

It looks like the frame provider isn't loaded.

Contributor guide

Open the contributing guide

Research direction

Start with the arm32 buildbot stdio log and the failing tests in lldb/test/API/functionalities/scripted_frame_provider/circular_dependency/TestFrameProviderCircularDependency.py and lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py. Trace why the frame provider is not loaded on arm32, then rerun both named tests and confirm their expected frame counts pass on that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.