From: Alex Rousskov Date: Mon, 13 Jun 2016 23:25:45 +0000 (-0600) Subject: Destructed objects that were never born are not alive. X-Git-Tag: SQUID_4_0_12~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e6046b6961fab5c67f2676a8fe817bce32b32d6;p=thirdparty%2Fsquid.git Destructed objects that were never born are not alive. Such objects are typical in partial logs that are missing some construction events. --- diff --git a/scripts/find-alive.pl b/scripts/find-alive.pl index 21438bc4e9..6cccebf579 100755 --- a/scripts/find-alive.pl +++ b/scripts/find-alive.pl @@ -97,8 +97,12 @@ while () { } elsif (my @deIds = (/$reDestructor/)) { my $id = join(':', @deIds); - #warn("unborn: $_") unless $AliveCount{$id}; - $AliveImage{$id} = undef() unless --$AliveCount{$id}; + if ($AliveCount{$id}) { + $AliveImage{$id} = undef() unless --$AliveCount{$id}; + } else { + #warn("unborn: $_"); + # do nothing; we are probably looking at a partial log + } } }