Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with clang under Ubuntu #112

Open
svalat opened this issue Oct 3, 2024 · 0 comments
Open

Issue with clang under Ubuntu #112

svalat opened this issue Oct 3, 2024 · 0 comments

Comments

@svalat
Copy link
Member

svalat commented Oct 3, 2024

Under ubuntu some unit tests are failing when building MALT with clang and running unit tests.

This is seen over :

  • ubuntu 22.04
  • ubuntu 23.04
  • ubuntu 24.04
  • debian 12

Note: it works well under debian 10, 11

The error reported is :

E           [----------] 5 tests from TestSymbolSolver
E           [ RUN      ] TestSymbolSolver.testConstructor
E           [       OK ] TestSymbolSolver.testConstructor (0 ms)
E           [ RUN      ] TestSymbolSolver.testLoadProcMap
E           [       OK ] TestSymbolSolver.testLoadProcMap (0 ms)
E           [ RUN      ] TestSymbolSolver.testSolve
E           MALT : Resolving symbols with addr2line...
E           /mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp:53: Failure
E           Expected equality of these values:
E             "/mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp"
E             file
E               Which is: "??"
E           
E           [  FAILED  ] TestSymbolSolver.testSolve (3 ms)
E           [ RUN      ] TestSymbolSolver.solveBacktraceExe
E           MALT : Resolving symbols with addr2line...
E           /mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp:89: Failure
E           Expected equality of these values:
E             "/mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp"
E             file
E               Which is: "??"
E           
E           /mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp:91: Failure
E           Expected equality of these values:
E             62
E             site->line
E               Which is: 0
E           
E           [  FAILED  ] TestSymbolSolver.solveBacktraceExe (3 ms)
E           [ RUN      ] TestSymbolSolver.solveBacktraceLib
E           MALT : Resolving symbols with addr2line...
E           /mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp:118: Failure
E           Expected: (0) != (site->file), actual: 0 vs 0
E           
E           /mnt/malt-sources/src/lib/core/tests/TestSymbolSolver.cpp:121: Failure
E           Expected equality of these values:
E             19
E             site->line
E               Which is: 0
E           
E           [  FAILED  ] TestSymbolSolver.solveBacktraceLib (2 ms)
E           [----------] 5 tests from TestSymbolSolver (10 ms total)
E           [==========] Running 2 tests from 1 test suite.
E           [----------] Global test environment set-up.
E           [----------] 2 tests from TestNMCmdReader
E           [ RUN      ] TestNMCmdReader.constructor
E           [       OK ] TestNMCmdReader.constructor (0 ms)
E           [ RUN      ] TestNMCmdReader.load
E           nm: DWARF error: invalid or unhandled FORM value: 0x23
E           /mnt/malt-sources/src/lib/tools/tests/TestNMCmdReader.cpp:60: Failure
E           Value of: hasVar(vars, "gblVariable", false)
E             Actual: false
E           Expected: true
E           
E           [  FAILED  ] TestNMCmdReader.load (273 ms)
E           [----------] 2 tests from TestNMCmdReader (273 ms total)

Reported by test script for portability :

./dev/build_and_test_on_distributions.py
========================================================================================================= test session starts ==========================================================================================================
collected 33 items                                                                                                                                                                                                                     

dev/build_and_test_on_distributions.py::test_prep_image[ubuntu:22.04] PASSED                                                                                                                                                     [  3%]
dev/build_and_test_on_distributions.py::test_prep_image[ubuntu:23.04] PASSED                                                                                                                                                     [  6%]
dev/build_and_test_on_distributions.py::test_prep_image[ubuntu:24.04] PASSED                                                                                                                                                     [  9%]
dev/build_and_test_on_distributions.py::test_prep_image[debian:10] PASSED                                                                                                                                                        [ 12%]
dev/build_and_test_on_distributions.py::test_prep_image[debian:11] PASSED                                                                                                                                                        [ 15%]
dev/build_and_test_on_distributions.py::test_prep_image[debian:12] PASSED                                                                                                                                                        [ 18%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:22.04-gcc-debug] PASSED                                                                                                                                         [ 21%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:23.04-gcc-debug] PASSED                                                                                                                                         [ 24%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:24.04-gcc-debug] PASSED                                                                                                                                         [ 27%]
dev/build_and_test_on_distributions.py::test_distribution[debian:10-gcc-debug] PASSED                                                                                                                                            [ 30%]
dev/build_and_test_on_distributions.py::test_distribution[debian:11-gcc-debug] PASSED                                                                                                                                            [ 33%]
dev/build_and_test_on_distributions.py::test_distribution[debian:12-gcc-debug] PASSED                                                                                                                                            [ 36%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:22.04-clang-debug] FAILED                                                                                                                                       [ 39%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:23.04-clang-debug] FAILED                                                                                                                                       [ 42%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:24.04-clang-debug] FAILED                                                                                                                                       [ 45%]
dev/build_and_test_on_distributions.py::test_distribution[debian:10-clang-debug] PASSED                                                                                                                                          [ 48%]
dev/build_and_test_on_distributions.py::test_distribution[debian:11-clang-debug] PASSED                                                                                                                                          [ 51%]
dev/build_and_test_on_distributions.py::test_distribution[debian:12-clang-debug] FAILED                                                                                                                                          [ 54%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:22.04-gcc-release] PASSED                                                                                                                                       [ 57%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:23.04-gcc-release] PASSED                                                                                                                                       [ 60%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:24.04-gcc-release] PASSED                                                                                                                                       [ 63%]
dev/build_and_test_on_distributions.py::test_distribution[debian:10-gcc-release] PASSED                                                                                                                                          [ 66%]
dev/build_and_test_on_distributions.py::test_distribution[debian:11-gcc-release] PASSED                                                                                                                                          [ 69%]
dev/build_and_test_on_distributions.py::test_distribution[debian:12-gcc-release] PASSED                                                                                                                                          [ 72%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:22.04-clang-release] FAILED                                                                                                                                     [ 75%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:23.04-clang-release] FAILED                                                                                                                                     [ 78%]
dev/build_and_test_on_distributions.py::test_distribution[ubuntu:24.04-clang-release] FAILED                                                                                                                                     [ 81%]
dev/build_and_test_on_distributions.py::test_distribution[debian:10-clang-release] FAILED                                                                                                                                        [ 84%]
dev/build_and_test_on_distributions.py::test_distribution[debian:11-clang-release] FAILED                                                                                                                                        [ 87%]
dev/build_and_test_on_distributions.py::test_distribution[debian:12-clang-release] FAILED                                                                                                                                        [ 90%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant