| Issue |
177666
|
| Summary |
[lldb] TestScriptedFrameProvider.py fails on 32-bit Arm
|
| Labels |
lldb
|
| Assignees |
|
| Reporter |
luporl
|
```
FAIL: lldb-api :: functionalities/scripted_frame_provider/TestScriptedFrameProvider.py (1 of 1)
******************** TEST 'lldb-api :: functionalities/scripted_frame_provider/TestScriptedFrameProvider.py' FAILED ********************
Script:
--
/usr/bin/python3.10 /home/leandro.lupori/git/ci/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/leandro.lupori/git/ci/build/./lib --env LLVM_INCLUDE_DIR=/home/leandro.lupori/git/ci/build/include --env LLVM_TOOLS_DIR=/home/leandro.lupori/git/ci/build/./bin --arch armv8l --build-dir /home/leandro.lupori/git/ci/build/lldb-test-build.noindex --lldb-module-cache-dir /home/leandro.lupori/git/ci/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/leandro.lupori/git/ci/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/leandro.lupori/git/ci/build/./bin/lldb --compiler /home/leandro.lupori/git/ci/build/./bin/clang --dsymutil /home/leandro.lupori/git/ci/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/leandro.lupori/git/ci/build/./bin --lldb-obj-root /home/leandro.lupori/git/ci/build/tools/lldb --lldb-libs-dir /home/leandro.lupori/git/ci/build/./lib --cmake-build-type Release /home/leandro.lupori/git/ci/llvm-project/lldb/test/API/functionalities/scripted_frame_provider -p TestScriptedFrameProvider.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git ([email protected]:luporl/llvm-project.git revision 17b01bbc67c484068e174d9e9a80089102bea0e8)
clang revision 17b01bbc67c484068e174d9e9a80089102bea0e8
llvm revision 17b01bbc67c484068e174d9e9a80089102bea0e8
Skipping the following test categories: libc++, msvcstl, dsym, pdb, gmodules, debugserver, objc
--
Command Output (stderr):
--
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_append_frames (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_applies_to_thread (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
FAIL: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_chained_frame_providers (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_circular_dependency_fix (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_prepend_frames (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_python_source_frames (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_remove_frame_provider_by_id (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_replace_all_frames (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_scripted_frame_objects (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
PASS: LLDB (/home/leandro.lupori/git/ci/build/bin/clang-arm) :: test_valid_pc_no_module_frames (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
======================================================================
FAIL: test_chained_frame_providers (TestScriptedFrameProvider.ScriptedFrameProviderTestCase)
Test that multiple frame providers chain together.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/leandro.lupori/git/ci/llvm-project/lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py", line 709, in test_chained_frame_providers
self.assertEqual(frame0.GetPC(), 0xBAD)
AssertionError: 2988 != 2989
Config=arm-/home/leandro.lupori/git/ci/build/bin/clang
----------------------------------------------------------------------
```
Instead of 0xBAD PC is 0xBAC on Arm. It looks like the least significant bit is being discarded, possibly because PC must always be at least 16-bit aligned.
This happens since the introduction of the new test_chained_frame_providers test by #172849, breaking the https://lab.llvm.org/buildbot/#/builders/18/builds/24088 bot.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs