Segmentation fault in BN_num_bits
BIND Version: 9.18.0
Build Options:
running on Linux x86_64 5.13.4-1.el7.elrepo.x86_64 #1 SMP Wed Jul 21 23:02:00 EDT 2021
built by make with '--prefix=/opt/vijay' '--enable-dependency-tracking' '--enable-warn-error' '--enable-dnstap' '--enable-singletrace' '--enable-querytrace' '--disable-auto-validation' '--enable-dnsrps-dl' '--enable-dnsrps' '--enable-full-report' '--with-tuning=large' '--enable-fixed-rrset' '--with-libidn2' '--with-lmdb' '--with-json-c' '--with-jemalloc=detect' '--with-maxminddb=yes' '--with-openssl=/opt/vijay' '--enable-largefile' '--enable-threads'
compiled by GCC 4.8.5 20150623 (Red Hat 4.8.5-44)
compiled with OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
linked to OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
compiled with libuv version: 1.42.0
linked to libuv version: 1.42.0
compiled with libnghttp2 version: 1.33.0
linked to libnghttp2 version: 1.33.0
compiled with json-c version: 0.11
linked to json-c version: 0.11
compiled with zlib version: 1.2.7
linked to zlib version: 1.2.7
linked to maxminddb version: 1.2.0
compiled with protobuf-c version: 1.0.2
linked to protobuf-c version: 1.0.2
threads support is enabled
Stacktrace:
Program terminated with signal 11, Segmentation fault.
#0 0x00007fb603f163d1 in BN_num_bits () from /opt/vijay/lib/libcrypto.so.1.1
Missing separate debuginfos, use: debuginfo-install glibc-2.17-323.el7_9.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-50.el7.x86_64 libattr-2.4.46-13.el7.x86_64 libcom_err-1.42.9-19.el7.x86_64 libselinux-2.5-15.el7.x86_64 openssl-libs-1.0.2k-21.el7_9.x86_64 pcre-8.32-17.el7.x86_64 sssd-client-1.16.5-10.el7_9.7.x86_64 zlib-1.2.7-19.el7_9.x86_64
(gdb) l
1364 main.c: No such file or directory.
(gdb) bt
#0 0x00007fb603f163d1 in BN_num_bits () from /opt/vijay/lib/libcrypto.so.1.1
#1 0x00007fb6040102ed in RSA_size () from /opt/vijay/lib/libcrypto.so.1.1
#2 0x00007fb6072d2638 in opensslrsa_sign (dctx=0x7fb5fdc631c0, sig=0x7fb6007ee200) at opensslrsa_link.c:167
#3 0x00007fb60727b0d4 in dns_dnssec_sign (name=name@entry=0x7fb5fd4bd1d8, set=set@entry=0x7fb6007ee9b0, key=<optimized out>, inception=inception@entry=0x7fb6007eee78, expire=expire@entry=0x7fb6007eee80, mctx=mctx@entry=0x7fb602334000,
buffer=buffer@entry=0x7fb6007ee970, sigrdata=sigrdata@entry=0x7fb6007ee940) at dnssec.c:349
#4 0x00007fb6073a55ed in add_sigs (db=db@entry=0x7fb5fd49f900, ver=ver@entry=0x7fb5fdbf3e80, name=name@entry=0x7fb5fd4bd1d8, zone=zone@entry=0x7fb5feee3e00, type=48, diff=0x7fb6007ef070, keys=keys@entry=0x7fb6007ef3a0, nkeys=nkeys@entry=2, mctx=0x7fb602334000,
inception=inception@entry=1646219277, expire=expire@entry=1648814876, check_ksk=check_ksk@entry=true, keyset_kskonly=keyset_kskonly@entry=true) at zone.c:7273
#5 0x00007fb6073a5d98 in dns__zone_updatesigs (diff=diff@entry=0x7fb6007ef050, db=db@entry=0x7fb5fd49f900, version=version@entry=0x7fb5fdbf3e80, zone_keys=zone_keys@entry=0x7fb6007ef3a0, nkeys=2, zone=zone@entry=0x7fb5feee3e00, inception=inception@entry=1646219277,
expire=expire@entry=1648814877, keyexpire=keyexpire@entry=1648814876, now=now@entry=1646222877, check_ksk=check_ksk@entry=true, keyset_kskonly=keyset_kskonly@entry=true, zonediff=zonediff@entry=0x7fb6007ef040) at zone.c:8444
#6 0x00007fb6072501cd in sign_apex (zonediff=0x7fb6007ef040, diff=0x7fb6007ef050, now=1646222877, ver=0x7fb5fdbf3e80, db=0x7fb5fd49f900, zone=0x7fb5feee3e00) at zone.c:20587
#7 zone_rekey (zone=zone@entry=0x7fb5feee3e00) at zone.c:21804
#8 0x00007fb6073a7780 in zone_maintenance (zone=<optimized out>) at zone.c:11414
#9 zone_timer (task=<optimized out>, event=0x7fb5fe82e9b0) at zone.c:15103
#10 0x00007fb607685be4 in task_run (task=0x7fb60235f080) at task.c:820
#11 isc_task_run (task=0x7fb60235f080) at task.c:900
#12 0x00007fb60764fb9d in isc__nm_async_task (ev0=ev0@entry=0x7fb5fe82a880, worker=0x7fb602027cb0) at netmgr/netmgr.c:837
#13 0x00007fb607655f08 in process_netievent (worker=worker@entry=0x7fb602027cb0, ievent=0x7fb5fe82a880) at netmgr/netmgr.c:916
#14 0x00007fb6076566c9 in process_queue (worker=worker@entry=0x7fb602027cb0, type=type@entry=NETIEVENT_TASK) at netmgr/netmgr.c:1010
#15 0x00007fb607656e13 in process_all_queues (worker=0x7fb602027cb0) at netmgr/netmgr.c:756
#16 async_cb (handle=0x7fb602028010) at netmgr/netmgr.c:785
#17 0x00007fb605644293 in uv__async_io () from /opt/vijay/lib/libuv.so.1
#18 0x00007fb6056575e3 in uv__io_poll () from /opt/vijay/lib/libuv.so.1
#19 0x00007fb605644ac0 in uv_run () from /opt/vijay/lib/libuv.so.1
#20 0x00007fb607656788 in nm_thread (worker0=0x7fb602027cb0) at netmgr/netmgr.c:691
#21 0x00007fb60768cd85 in isc__trampoline_run (arg=0xbdddf0) at trampoline.c:187
#22 0x00007fb604bd4ea5 in start_thread () from /usr/lib64/libpthread.so.0
#23 0x00007fb6048fd9fd in clone () from /usr/lib64/libc.so.6