We're talking about a very narrow window of opportunity here that seems to be 100% reproducible?
I'm still a bit sceptical. But you could just try to make a copy of the file and change the source code for the unbound.conf to point to that one that is not touched...These theories are very easy to test when you can reproduce. If not it's impossible.
2023-10-18T11:00:00 Informational unbound 24371 [24371:1] info: generate keytag query _ta-4f66. NULL IN 2023-10-18T11:00:00 Informational unbound 24371 [24371:0] info: start of service (unbound 1.18.0). 2023-10-18T11:00:00 Notice unbound 24371 [24371:0] notice: init module 2: iterator 2023-10-18T11:00:00 Notice unbound 24371 [24371:0] notice: init module 1: validator 2023-10-18T11:00:00 Notice unbound 24378 daemonize unbound dhcpd watcher. 2023-10-18T11:00:00 Notice unbound 24371 [24371:0] notice: init module 0: python 2023-10-18T10:52:02 Notice unbound 23736 [23736:0] notice: init module 2: iterator 2023-10-18T10:52:02 Notice unbound 23736 [23736:0] notice: init module 1: validator 2023-10-18T10:52:02 Notice unbound 23743 daemonize unbound dhcpd watcher. 2023-10-18T10:52:02 Notice unbound 23736 [23736:0] notice: init module 0: python
2023-10-18T10:52:02 Notice kernel <6>pid 23736 (unbound), jid 0, uid 59: exited on signal 11
https://github.com/opnsense/core/commit/845fbd384fe# opnsense-patch 845fbd384fe
2023-11-01T16:06:07 Notice unbound 17147 [17147:0] notice: init module 0: python2023-11-01T16:03:33 Informational unbound 15198 [15198:0] info: service stopped (unbound 1.18.0). 2023-11-01T15:53:34 Informational unbound 15198 [15198:1] info: generate keytag query _ta-4f66. NULL IN
2023-11-01T16:06:07 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : webgui_configure_do(,opt1)) 2023-11-01T16:06:07 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : vxlan_configure_do()) 2023-11-01T16:03:32 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : unbound_configure_do(,opt1)) 2023-11-01T16:03:32 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : openssh_configure_do(,opt1)) 2023-11-01T16:03:32 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : opendns_configure_do()) 2023-11-01T16:03:32 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : ntpd_configure_do()) 2023-11-01T16:03:32 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : dnsmasq_configure_do()) 2023-11-01T16:03:32 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (,opt1)
I do have Flush DNS Cache during reload enabled, which I now wonder if that exacerbated this issue.
HA update and reconfigure backup
devfs on /var/unbound/dev (devfs)