From 4d50ec1c2ee53fa0690010de3b1726eaacaa33ed Mon Sep 17 00:00:00 2001 From: mio Date: Sat, 28 Mar 2026 22:01:14 +0000 Subject: [PATCH] community/py3-lmdb: skip test on some arches Skip `test_close` test on 32-bit arm and ppc64le. Previously known to segfault on loongarch64. Error found on the builders. ``` tests/env_test.py::CloseTest::test_close Fatal Python error: Segmentation fault Current thread 0xf7f77f40 [python3] (most recent call first): File "/home/buildozer/aports/community/py3-lmdb/src/py-lmdb-py-lmdb_1.8.1/lmdb/cffi.py", line 553 in _mvstr File "/home/buildozer/aports/community/py3-lmdb/src/py-lmdb-py-lmdb_1.8.1/lmdb/cffi.py", line 1799 in item File "/home/buildozer/aports/community/py3-lmdb/src/py-lmdb-py-lmdb_1.8.1/lmdb/cffi.py", line 1815 in _iter File "/home/buildozer/aports/community/py3-lmdb/src/py-lmdb-py-lmdb_1.8.1/tests/env_test.py", line 286 in File "/usr/lib/python3.14/unittest/case.py", line 247 in handle File "/usr/lib/python3.14/unittest/case.py", line 813 in assertRaises File "/home/buildozer/aports/community/py3-lmdb/src/py-lmdb-py-lmdb_1.8.1/tests/env_test.py", line 286 in test_close [...] Current thread's C stack trace (most recent call first): Extension modules: _cffi_backend, lmdb_cffi (total: 2) Segmentation fault ``` --- community/py3-lmdb/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community/py3-lmdb/APKBUILD b/community/py3-lmdb/APKBUILD index 57f3fdf5040..58f495c3ad5 100644 --- a/community/py3-lmdb/APKBUILD +++ b/community/py3-lmdb/APKBUILD @@ -32,8 +32,8 @@ check() { local skipped_tests="not testNextNodupAfterDeletePutSingleKey and not testPrevNodupAfterDeletePutSingleKey" case "$CARCH" in - # Test test_close segfaults on loongarch64 - loongarch64) + # Test test_close segfaults on arm*, loongarch64, ppc64le + arm*|loongarch64|ppc64le) .testenv/bin/python3 -m pytest -v -k "$skipped_tests and not test_close" ;; *) .testenv/bin/python3 -m pytest -v -k "$skipped_tests";;