Crash in isc_mem_checkdestroyed() with PKCS#11
PKCS#11 job with SoftHSM 2.6 on Fedora 33 asserted failure on main
with the following output:
I:pkcs11:exit status: 0
I:pkcs11:stopping servers
I:pkcs11:Core dump(s) found: pkcs11/ns1/core.22627
D:pkcs11:backtrace from pkcs11/ns1/core.22627:
D:pkcs11:--------------------------------------------------------------------------------
D:pkcs11:Core was generated by `/builds/isc-projects/bind9/bin/named/.libs/lt-named -D pkcs11-ns1 -X named.lock'.
D:pkcs11:Program terminated with signal SIGABRT, Aborted.
D:pkcs11:#0 0x00007f70b07779d5 in raise () from /lib64/libc.so.6
D:pkcs11:#0 0x00007f70b07779d5 in raise () from /lib64/libc.so.6
D:pkcs11:#1 0x00007f70b07608a4 in abort () from /lib64/libc.so.6
D:pkcs11:#2 0x000000000041d679 in assertion_failed (file=<optimized out>, line=<optimized out>, type=isc_assertiontype_insist, cond=0x7f70b12310f2 "0") at main.c:259
D:pkcs11:#3 0x00007f70b11fc40e in isc_assertion_failed (file=file@entry=0x7f70b122eef1 "mem.c", line=line@entry=2092, type=type@entry=isc_assertiontype_insist, cond=cond@entry=0x7f70b12310f2 "0") at assertions.c:46
D:pkcs11:#4 0x00007f70b120d89e in isc_mem_checkdestroyed (file=0x7f70b08ff440 <_IO_2_1_stderr_>) at mem.c:2092
D:pkcs11:#5 0x000000000041f736 in main (argc=16, argv=0x7fff9f83ca58) at main.c:1626
D:pkcs11:--------------------------------------------------------------------------------
D:pkcs11:full backtrace from pkcs11/ns1/core.22627 saved in pkcs11/ns1/core.22627-backtrace.txt
D:pkcs11:core dump pkcs11/ns1/core.22627 archived as pkcs11/ns1/core.22627.gz
R:pkcs11:FAIL
named.run
:
17-Feb-2021 08:40:25.955 exiting
context: 0x179a180 (zonemgr-pool): 2 references
Dump of all outstanding memory allocations:
ptr 0x7f709c4b3020 size 214 file diff.c line 67
ptr 0x7f709c497f48 size 214 file diff.c line 67
mem.c:2092: INSIST(0) failed
Full backtrace:
[New LWP 22627]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/builds/isc-projects/bind9/bin/named/.libs/lt-named -D pkcs11-ns1 -X named.lock'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f70b07779d5 in raise () from /lib64/libc.so.6
Thread 1 (Thread 0x7f70b0382d80 (LWP 22627)):
#0 0x00007f70b07779d5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007f70b07608a4 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x000000000041d679 in assertion_failed (file=<optimized out>, line=<optimized out>, type=isc_assertiontype_insist, cond=0x7f70b12310f2 "0") at main.c:259
tracebuf = {0x11, 0x7f70b1258f17 <_dl_fixup+215>, 0x5, 0x0, 0x7fff9f83c960, 0x7f70b11b94b0, 0x7fff9f83c8b0, 0x7f70b126056e <_dl_runtime_resolve_xsavec+126>, 0x0, 0x7f70b12310f2, 0x2, 0x82c, 0x7f70b122eef1, 0x0, 0x7fff9f83a5f6, 0x7f70b126056e <_dl_runtime_resolve_xsavec+126>, 0x0, 0x114a010, 0x1, 0xffff00001f80, 0x7f70b08ff440 <_IO_2_1_stderr_>, 0x7f709c1ba000, 0x7fff9f83c700, 0x7f70b07afd26 <fflush+134>, 0x7f70b03420e0, 0x1, 0x7fff9f83c800, 0xffff00001f80, 0x481a10 <dns_modules+400>, 0x1158a38, 0x1158968, 0x0, 0x0, 0x45dc61, 0x7f70b0341020, 0x7fff9f83c790, 0x2525252525252525, 0x2525252525252525, 0xffffffffffffff00, 0x0, 0xffffffffffffff00, 0x0, 0x475f4300, 0x0, 0x43006f666e497465, 0x746f6c537465475f, 0x5a5a5a5a5a5a5a5a, 0x5a5a5a5a5a5a5a5a, 0x2020202020202020, 0x2020202020202020, 0x0, 0x0, 0xa, 0x6165726874702828, 0x0, 0x0, 0x20202020, 0x2000202020202020, 0x0 <repeats 18 times>, 0x3535392e35323a, 0x0, 0x0, 0x0, 0x2, 0x800000000000000e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x800000000000000e, 0x0, 0xbe57a377d9ca5100, 0x0, 0xbe57a377d9ca5100, 0x7f704800a030, 0x7fff9f83c8c0, 0x7f70b08ff440 <_IO_2_1_stderr_>, 0x7f70b122e220, 0xab0, 0x7f70b08498e3 <__fprintf_chk+163>, 0x3000000030, 0x7fff9f83c888, 0x7fff9f83c7c0, 0xbe57a377d9ca5100, 0xd68, 0x7f70b07baf86 <new_do_write+102>, 0x179a180, 0x7f709c497f48, 0xd6, 0x7f70b114f01a, 0x7f70b0900320 <__GI__IO_file_jumps>, 0x2c, 0x2c, 0x7f70b07bc36e <__GI__IO_file_xsputn+366>, 0x173c990, 0x7f70b08ff440 <_IO_2_1_stderr_>, 0x2c, 0x2c, 0x1, 0x7f70b122e1f0, 0x7f70b0900320 <__GI__IO_file_jumps>, 0x7f70b07b0c11 <fwrite+193>, 0x0, 0x7f70b08ff440 <_IO_2_1_stderr_>, 0x7fff9f83c8c0, 0x7f70b08ff440 <_IO_2_1_stderr_>, 0x7f70b122f19c, 0x7f70b120a656 <print_active+137>}
nframes = 32624
result = <optimized out>
logsuffix = <optimized out>
#3 0x00007f70b11fc40e in isc_assertion_failed (file=file@entry=0x7f70b122eef1 "mem.c", line=line@entry=2092, type=type@entry=isc_assertiontype_insist, cond=cond@entry=0x7f70b12310f2 "0") at assertions.c:46
No locals.
#4 0x00007f70b120d89e in isc_mem_checkdestroyed (file=0x7f70b08ff440 <_IO_2_1_stderr_>) at mem.c:2092
No locals.
#5 0x000000000041f736 in main (argc=16, argv=0x7fff9f83ca58) at main.c:1626
result = <optimized out>
Core file: core.22627.gz