Segfault in journal_seek()
I was running the checkds
system test from !8357 (merged) (based on the main
branch) in a tight loop to make sure I fixed !8357 (comment 424109) and after a few iterations I found ns10 segfaulted in the journal code:
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:Core was generated by `/home/newman/isc/ws/bind9/bin/named/.libs/named -D checkds_tmp_1tlf7zdq-ns10 -m'.
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:Program terminated with signal SIGSEGV, Segmentation fault.
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#0 0x00007fb1f684c29c in __fseeko (fp=0xdededededededede, offset=offset@entry=0, whence=whence@entry=0) at fseeko.c:39
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:Downloading source file /usr/src/debug/glibc-2.38-14.fc39.x86_64/libio/fseeko.c...
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:39 _IO_acquire_lock (fp);
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:[Current thread is 1 (Thread 0x7fb1ddff4680 (LWP 1169410))]
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#0 0x00007fb1f684c29c in __fseeko (fp=0xdededededededede, offset=offset@entry=0, whence=whence@entry=0) at fseeko.c:39
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#1 0x00007fb1f7ad1139 in isc_stdio_seek (f=<optimized out>, offset=offset@entry=0, whence=whence@entry=0) at stdio.c:51
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#2 0x00007fb1f786c8e9 in journal_seek (j=0x7fb1efbc0e00, offset=0) at journal.c:419
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#3 0x00007fb1f786f9e0 in dns_journal_commit (j=0x7fb1efbc0e00) at journal.c:1393
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#4 0x00007fb1f794c489 in ixfr_end_transaction (xfr=<optimized out>) at xfrin.c:496
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#5 ixfr_end_transaction (xfr=0x7fb1efb01a00) at xfrin.c:490
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#6 ixfr_apply_one (data=0x7fb1efa15f50, xfr=0x7fb1efb01a00) at xfrin.c:521
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#7 ixfr_apply (arg=0x7fb1efa0b020) at xfrin.c:561
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#8 0x00007fb1f7ad88eb in isc__work_cb (req=<optimized out>) at work.c:30
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#9 0x00007fb1f756fd89 in worker (arg=0x0) at /usr/src/debug/libuv-1.47.0-3.fc39.x86_64/src/threadpool.c:122
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#10 0x00007fb1f6857897 in start_thread (arg=<optimized out>) at pthread_create.c:444
2023-12-15 12:29:49 INFO:checkds D:/home/newman/isc/ws/bind9/bin/tests/system/checkds_tmp_1tlf7zdq:#11 0x00007fb1f68de6fc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Complete ns10/
directory: ns10.tar.xz