acts
acts copied to clipboard
bug: pytest segfault LCG107 clang19
What happened?
After migrating the pytests also to the LCG test matrix the combination LCG107+clang19 introduced some segfaults. This is odd, because other LCG107-jobs work fine and also clang19 ist tested without problems on LCG108.
Failing tests
Examples/Python/tests/test_detectors.py::test_odd
Examples/Python/tests/test_writer.py::test_root_material_writer
Examples/Python/tests/test_examples.py::test_truth_tracking_kalman[odd-0.0]
Examples/Python/tests/test_geometry.py::test_geometry_example[odd]
Examples/Python/tests/test_examples.py::test_geant4
Reproduce
For the threadripper, I used these commands to run the setup inside the source-directory:
export LCG_PLATFORM="el9"
export COMPILER="clang19"
export LCG_VERSION="107"
source /cvmfs/sft.cern.ch/lcg/views/LCG_${LCG_VERSION}/x86_64-${LCG_PLATFORM}-${COMPILER}-opt/setup.sh
python3 -m venv venv-107 --system-site-packages
source venv-107/bin/activate
python3 -m pip install -r Examples/Python/tests/requirements.txt
export ACTS_SEQUENCER_DISABLE_FPEMON=true
cmake -B build-107 -S . --preset=gitlab-ci-lcg -DCMAKE_INSTALL_PREFIX="install-107"
cmake --build build-107/ -j 128
ctest --test-dir build-107/ -j$(nproc)
cmake --install build-107/ > install.log
source build-107/this_acts_withdeps.sh
An then the tests separately with
pytest Examples/Python/tests/test_detectors.py::test_odd
pytest Examples/Python/tests/test_writer.py::test_root_material_writer
pytest Examples/Python/tests/test_examples.py::test_truth_tracking_kalman[odd-0.0]
pytest Examples/Python/tests/test_geometry.py::test_geometry_example[odd]
pytest Examples/Python/tests/test_examples.py::test_geant4
Or all pytests as:
pytest -rfExw -k "not exatrkx" -v -n1
Error message
After for example running
$ pytest Examples/Python/tests/test_detectors.py::test_odd
I get:
======================================================================== test session starts =========================================================================
platform linux -- Python 3.11.9, pytest-8.3.2, pluggy-1.5.0
CTEST_FULL_OUTPUT
rootdir: <src-dir>
configfile: pytest.ini
plugins: anyio-3.7.1, asdf-3.5.0, hypothesis-5.3.0, mimesis-14.0.0, cov-4.1.0, xdist-3.3.1, typeguard-2.13.3, GaudiTesting-1.0.0, timeout-2.3.1, repeat-0.9.4, check-2.5.3
collected 1 item
Examples/Python/tests/test_detectors.py Fatal Python error: Segmentation fault
Current thread 0x00007ff927202740 (most recent call first):
File "<src-dir>/build-107/python/acts/_adapter.py", line 14 in wrapped
File "<src-dir>/build-107/python/acts/examples/odd.py", line 112 in getOpenDataDetector
File "<src-dir>/Examples/Python/tests/test_detectors.py", line 62 in test_odd
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/python.py", line 159 in pytest_pyfunc_call
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/python.py", line 1627 in runtest
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/runner.py", line 174 in pytest_runtest_call
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/runner.py", line 242 in <lambda>
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/runner.py", line 341 in from_call
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/runner.py", line 241 in call_and_report
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/runner.py", line 132 in runtestprotocol
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/runner.py", line 113 in pytest_runtest_protocol
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/main.py", line 362 in pytest_runtestloop
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/main.py", line 337 in _main
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/main.py", line 283 in wrap_session
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/main.py", line 330 in pytest_cmdline_main
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_callers.py", line 103 in _multicall
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/pluggy/_hooks.py", line 513 in __call__
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/config/__init__.py", line 175 in main
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/lib/python3.11/site-packages/_pytest/config/__init__.py", line 201 in console_main
File "/cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-clang19-opt/bin/pytest", line 8 in <module>
Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, libcppyy, libROOTPythonizations, lz4._version, lz4.frame._frame, zstandard.backend_c, regex._regex, pyarrow.lib, pyarrow._hdfsio (total: 21)
Segmentation fault (core dumped)