- Fix that the worker mem report with alloc stats does not attempt

to print memory use of forwards and hints if they have been
  deleted already.
This commit is contained in:
W.C.A. Wijngaards 2024-08-01 17:15:07 +02:00
parent 9a6b6765cc
commit 92be76fb89
2 changed files with 8 additions and 3 deletions

View File

@ -160,9 +160,11 @@ worker_mem_report(struct worker* ATTR_UNUSED(worker),
+ sizeof(worker->rndstate)
+ regional_get_mem(worker->scratchpad)
+ sizeof(*worker->env.scratch_buffer)
+ sldns_buffer_capacity(worker->env.scratch_buffer)
+ forwards_get_mem(worker->env.fwds)
+ hints_get_mem(worker->env.hints);
+ sldns_buffer_capacity(worker->env.scratch_buffer);
if(worker->daemon->env->fwds)
me += forwards_get_mem(worker->env.fwds);
if(worker->daemon->env->hints)
me += hints_get_mem(worker->env.hints);
if(worker->thread_num == 0)
me += acl_list_get_mem(worker->daemon->acl);
if(cur_serv) {

View File

@ -4,6 +4,9 @@
to free the tail, specifically in the free of the list since that
picked up the next item in the list for its loop causing invalid
free. Added internal unit test to unbound-dnstap-socket for that.
- Fix that the worker mem report with alloc stats does not attempt
to print memory use of forwards and hints if they have been
deleted already.
31 July 2024: Wouter
- Fix for #1114: Fix that cache fill for forward-host names is