]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Work around Debian cyrus-sasl2 leak in t_kdb.py 1406/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 30 Dec 2024 01:30:56 +0000 (20:30 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 8 Jan 2025 22:32:36 +0000 (17:32 -0500)
A Debian patch to cyrus-sasl2 causes a memory leak in the DIGEST-MD5
plugin.  To avoid CI failures in the asan build, suppress leak
detection during the DIGEST-MD5 tests for now.

src/tests/t_kdb.py

index 5211cbc7ca4ffd2498d4aedbf35dc637d9e4d222..c1a717b998a0e42a9f7b2f63d838ea66af1b1ef4 100755 (executable)
@@ -591,6 +591,9 @@ dbmod['ldap_kdc_sasl_authcid'] = 'digestuser'
 dbmod['ldap_kadmind_sasl_authcid'] = 'digestuser'
 dbmod['ldap_service_password_file'] = ldap_pwfile
 realm = K5Realm(create_kdb=False, kdc_conf=conf)
+# Work around https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091694
+if runenv.asan == 'yes':
+    realm.env['ASAN_OPTIONS'] = 'detect_leaks=false'
 input = admin_pw + '\n' + admin_pw + '\n'
 realm.run([kdb5_ldap_util, 'stashsrvpw', 'digestuser'], input=input)
 realm.run([kdb5_ldap_util, 'create', '-s', '-P', 'master'])