UBSAN error in isc_buffer_reserve
[==========] Running 9 test(s).
[ RUN ] dnsbuffer_generic_test
[ OK ] dnsbuffer_generic_test
[ RUN ] dnsbuffer_resize_alloc_test
[ OK ] dnsbuffer_resize_alloc_test
[ RUN ] dnsbuffer_be_test
[ OK ] dnsbuffer_be_test
[ RUN ] dnsasm_sequence_test
[ OK ] dnsasm_sequence_test
[ RUN ] dnsasm_multiple_messages_test
../../lib/isc/include/isc/buffer.h:1153:3: runtime error: null pointer passed as argument 2, which is declared to never be null
../../tests/unit-test-driver.sh: line 36: 5524 Aborted (core dumped) "${TEST_PROGRAM}"
I:dnsstream_utils_test:Core dump found: ./core.5524
D:dnsstream_utils_test:backtrace from ./core.5524 start
[New LWP 5524]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/builds/isc-projects/bind9/tests/isc/.libs/dnsstream_utils_test'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007ff619963e7c in __pthread_kill_implementation () from /lib64/libc.so.6
Thread 1 (Thread 0x7ff618ed65c0 (LWP 5524)):
#0 0x00007ff619963e7c in __pthread_kill_implementation () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007ff619913aa6 in raise () from /lib64/libc.so.6
No symbol table info available.
#2 0x00007ff6198fd7fc in abort () from /lib64/libc.so.6
No symbol table info available.
#3 0x00007ff619ad4f1f in __sanitizer::Abort() () from /lib64/libubsan.so.1
No symbol table info available.
#4 0x00007ff619ae15c1 in __sanitizer::Die() () from /lib64/libubsan.so.1
No symbol table info available.
#5 0x00007ff619abf38f in __ubsan::ScopedReport::~ScopedReport() () from /lib64/libubsan.so.1
No symbol table info available.
#6 0x00007ff619ac1a0e in handleNonNullArg(__ubsan::NonNullArgData*, __ubsan::ReportOptions, bool) () from /lib64/libubsan.so.1
No symbol table info available.
#7 0x00007ff619ac46e4 in __ubsan_handle_nonnull_arg () from /lib64/libubsan.so.1
No symbol table info available.
#8 0x0000000000406575 in isc_buffer_reserve (size=30, dbuf=0x7ffed6f8d130) at ../../lib/isc/include/isc/buffer.h:1153
old_base = 0x0
len = 512
len = <optimized out>
old_base = <optimized out>
#9 isc_buffer_putmem (b=b@entry=0x7ffed6f8d130, base=base@entry=0x4164c0 <request> "", length=length@entry=30) at ../../lib/isc/include/isc/buffer.h:982
result = ISC_R_NOMEMORY
#10 0x0000000000412337 in run_test_dnsasm_multiple_messages_test (state=<optimized out>) at dnsstream_utils_test.c:386
dnsasm = 0x616000000f80
dnsbuf = <optimized out>
cbdata = <optimized out>
verified = <optimized out>
#11 0x00007ff61a0edc0c in cmocka_run_one_test_or_fixture () from /lib64/libcmocka.so.0
No symbol table info available.
#12 0x00007ff61a0ee2f3 in _cmocka_run_group_tests () from /lib64/libcmocka.so.0
No symbol table info available.
#13 0x00000000004145c8 in main () at dnsstream_utils_test.c:647
r = <optimized out>
D:dnsstream_utils_test:backtrace from ./core.5524 end
FAIL dnsstream_utils_test (exit status: 134)