named dumps core when "-u" and "--with-pkcs11" are used together
pkcs11 9.11 job failed due to aborted named
, when -u
option was used:
I:runtime:verifying that named switches UID (11)
tests.sh: line 147: 23248 Aborted (core dumped) $NAMED -u nobody -c named-alt9.conf -d 99 -g -U 4 >> named9.run 2>&1
named9.run
:
20-Nov-2019 12:31:20.594 starting BIND 9.11.12 (Extended Support Version) <id:3e74637>
20-Nov-2019 12:31:20.594 running on Linux x86_64 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)
20-Nov-2019 12:31:20.594 built with '--disable-maintainer-mode' '--enable-developer' '--with-randomdev=/dev/urandom' '--with-libtool' '--with-geoip2=auto' '--disable-static' '--with-cmocka' '--with-libxml2' '--with-json' '--prefix=/root/.local' '--without-make-clean' '--enable-native-pkcs11' '--with-pkcs11=/usr/lib/softhsm/libsofthsm2.so' 'CC=gcc' 'CFLAGS=-Wall -Wextra -O2 -g'
20-Nov-2019 12:31:20.594 running as: named -u nobody -c named-alt9.conf -d 99 -g -U 4
20-Nov-2019 12:31:20.594 compiled by GCC 9.2.1 20191109
20-Nov-2019 12:31:20.594 compiled with libxml2 version: 2.9.4
20-Nov-2019 12:31:20.594 linked to libxml2 version: 20904
20-Nov-2019 12:31:20.594 compiled with libjson-c version: 0.13.1
20-Nov-2019 12:31:20.594 linked to libjson-c version: 0.13.1
20-Nov-2019 12:31:20.594 compiled with zlib version: 1.2.11
20-Nov-2019 12:31:20.594 linked to zlib version: 1.2.11
20-Nov-2019 12:31:20.594 threads support is enabled
20-Nov-2019 12:31:20.594 ----------------------------------------------------
20-Nov-2019 12:31:20.594 BIND 9 is maintained by Internet Systems Consortium,
20-Nov-2019 12:31:20.594 Inc. (ISC), a non-profit 501(c)(3) public-benefit
20-Nov-2019 12:31:20.594 corporation. Support and training for BIND 9 are
20-Nov-2019 12:31:20.594 available at https://www.isc.org/support
20-Nov-2019 12:31:20.594 ----------------------------------------------------
20-Nov-2019 12:31:20.594 found 8 CPUs, using 8 worker threads
20-Nov-2019 12:31:20.594 using 4 UDP listeners per interface
20-Nov-2019 12:31:20.594 using up to 4096 sockets
20-Nov-2019 12:31:20.594 Registering DLZ_dlopen driver
20-Nov-2019 12:31:20.594 Registering SDLZ driver 'dlopen'
20-Nov-2019 12:31:20.594 Registering DLZ driver 'dlopen'
20-Nov-2019 12:31:20.594 Registering DLZ filesystem driver.
20-Nov-2019 12:31:20.594 Registering SDLZ driver 'filesystem'
20-Nov-2019 12:31:20.594 Registering DLZ driver 'filesystem'
20-Nov-2019 12:31:20.596 md5.c:95: fatal error:
20-Nov-2019 12:31:20.596 RUNTIME_CHECK(pk11_get_session(ctx, OP_DIGEST, 1, 0, 0, ((void *)0), 0) == 0) failed
20-Nov-2019 12:31:20.596 exiting (due to fatal error in library)
core
file is to be found in the CI job above.