]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: fix a race in the dnstap regression tests
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Aug 2024 11:37:23 +0000 (13:37 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Aug 2024 11:50:38 +0000 (13:50 +0200)
commit7a1c5761ac13325ceae4962c5f525618d49fae37
treef345f3209022b35798a3e522e0e07fd39a90021a
parentb69f97caf24d205367d1848f522a3e4468e5e88d
rec: fix a race in the dnstap regression tests

A test might finish "too early". In that case not all workers are
fully setup yet, and leak sanitizer crashes due to a stack out of
bounds.

One case fixed by introducing a sleep (for a test to see if the
dnstap queue is empty), and one actually querying an existing
out-of-band domain, which was enough for me to get all threads
properly setup. Previously it would check a domain and get
connnection refused, as this test does not setup auths at all.
The assumption is that that causes a "too fast exit" of rec.
regression-tests.recursor-dnssec/test_RecDnstap.py