build test problems with landlock
- tracker-miners 3.7 Beta
- Debian or Ubuntu 24.04 LTS
When tracker-miners is built with landlock support, several build tests fail on the official Debian and Ubuntu builders.
The tests pass once I build tracker-miners with -Dlandlock=disabled
Build log excerpt
=================================== 77/79 ====================================
test: tracker-miners:extractor+malice / net-access
start time: 21:43:08
duration: 10.95s
result: exit status 1
command: MALLOC_PERTURB_=31 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1
UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1
PYTHONPATH=/usr/lib/x86_64-linux-gnu/tracker-3.0/ TRACKER_EXTRACT_DEADLINE=5
TRACKER_FUNCTIONAL_TEST_CONFIG=/builds/jbicha/tracker-miners/debian/output/source_dir/obj-x86_64-linux-gnu
/tests/functional-tests/config/configuration.json /usr/bin/python3
/builds/jbicha/tracker-miners/debian/output/source_dir/tests/functional-tests/test_misbehavior_generic.py
/builds/jbicha/tracker-miners/debian/output/source_dir/tests/functional-tests/test-extractor-modules
/builds/jbicha/tracker-miners/debian/output/source_dir/obj-x86_64-linux-gnu/tests/functional-tests/
test-extractor-modules/malice/net-access
----------------------------------- stderr -----------------------------------
test_misbehavior (__main__.MisbehaviorTest.test_misbehavior) ... (tracker-miner-fs-3:10285):grinning:
libupower-glib-WARNING **: 21:43:08.777: Couldn't connect to proxy: Could not connect: No such file or directory
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:08.778: Unable to connect to UPower
(tracker-miner-fs-3:10285): libupower-glib-WARNING **: 21:43:08.898: Couldn't connect to proxy: Could not connect: No such file or directory
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:08.899: Unable to connect to UPower
(tracker-miner-fs-3:10303): Tracker-CRITICAL **: 21:43:09.147: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:09.218: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10314): Tracker-CRITICAL **: 21:43:10.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:10.085: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10325): Tracker-CRITICAL **: 21:43:11.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:11.063: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10336): Tracker-CRITICAL **: 21:43:12.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:12.083: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10347): Tracker-CRITICAL **: 21:43:13.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:13.084: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10358): Tracker-CRITICAL **: 21:43:14.002: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:14.077: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10369): Tracker-CRITICAL **: 21:43:15.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:15.083: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10380): Tracker-CRITICAL **: 21:43:16.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:16.063: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10391): Tracker-CRITICAL **: 21:43:17.007: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:17.091: Extractor subprocess died unexpectedly: Child process killed by signal 6
(tracker-miner-fs-3:10402): Tracker-CRITICAL **: 21:43:18.006: Could not get landlock supported ABI: Function not implemented
(tracker-miner-fs-3:10285): Tracker-WARNING **: 21:43:18.091: Extractor subprocess died unexpectedly: Child process killed by signal 6
Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/tracker-3.0/trackertestutils/storehelper.py", line 139, in timeout_cb
raise AwaitTimeoutException(
trackertestutils.storehelper.AwaitTimeoutException: Timeout (10s) awaiting insert of resource matching:
a nfo:FileDataObject; nie:url
'file:///builds/jbicha/tracker-miners/debian/output/source_dir/debian/.debhelper/generated/_source/
home/tracker-tests/tmppnw6eicw/test-monitored/file1.txt' ; tracker:extractorHash ?hash
ERROR
======================================================================
ERROR: test_misbehavior (__main__.MisbehaviorTest.test_misbehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/jbicha/tracker-miners/debian/output/source_dir/tests/
functional-tests/test_misbehavior_generic.py", line 55, in setUp
self.tracker.ensure_resource(
File "/usr/lib/x86_64-linux-gnu/tracker-3.0/trackertestutils/storehelper.py", line 455, in ensure_resource
with await_ctx_mgr as resource:
File "/usr/lib/x86_64-linux-gnu/tracker-3.0/trackertestutils/storehelper.py", line 152, in __exit__
self.loop.run_checked()
File "/usr/lib/x86_64-linux-gnu/tracker-3.0/trackertestutils/mainloop.py", line 61, in run_checked
raise self._exception
File "/usr/lib/x86_64-linux-gnu/tracker-3.0/trackertestutils/storehelper.py", line 139, in timeout_cb
raise AwaitTimeoutException(
trackertestutils.storehelper.AwaitTimeoutException: Timeout (10s) awaiting insert of resource matching:
a nfo:FileDataObject; nie:url
'file:///builds/jbicha/tracker-miners/debian/output/source_dir/debian/.debhelper/generated/_source/
home/tracker-tests/tmppnw6eicw/test-monitored/file1.txt' ; tracker:extractorHash ?hash
----------------------------------------------------------------------
Ran 1 test in 10.777s
FAILED (errors=1)
…
Summary of Failures:
67/79 tracker-miners:extractor+misbehavior / exit FAIL 10.82s exit status 1
68/79 tracker-miners:extractor+misbehavior / no-data FAIL 11.05s exit status 1
69/79 tracker-miners:extractor+misbehavior / no-error FAIL 11.37s exit status 1
70/79 tracker-miners:extractor+misbehavior / stall FAIL 10.90s exit status 1
71/79 tracker-miners:extractor+misbehavior / wrong-sparql FAIL 10.96s exit status 1
72/79 tracker-miners:extractor+malice / dbus-access FAIL 10.63s exit status 1
73/79 tracker-miners:extractor+malice / exec FAIL 11.04s exit status 1
74/79 tracker-miners:extractor+malice / fs-read FAIL 11.56s exit status 1
75/79 tracker-miners:extractor+malice / fs-read-trunc FAIL 10.79s exit status 1
76/79 tracker-miners:extractor+malice / fs-write FAIL 11.43s exit status 1
77/79 tracker-miners:extractor+malice / net-access FAIL 10.95s exit status 1
Full build log
https://salsa.debian.org/jbicha/tracker-miners/-/jobs/5350780