bryancall opened a new pull request, #14119:
URL: https://github.com/apache/trafficserver/pull/14119

   `DereferContinuation::dieEvent` decremented the reference count twice and 
ignored the first result. Its only user is 
`LogObjectManager::unmanage_api_object()`, reached from 
`TSTextLogObjectDestroy()`. Each log configuration that manages a plugin text 
log object holds one reference to it, and `unmanage_api_object()` hands its 
reference to `new_Derefer()`. Dropping two references made the count go 
negative, so the object leaked. When a config reload had left an older log 
configuration still holding it, the count reached zero early and the object was 
deleted while that configuration still pointed at it.
   
   This drops one reference. The new test_Freer checks both cases and fails 
without the fix. It tests the reference counting directly; the reload sequence 
itself was not reproduced.
   
   Found from a Coverity Scan report on the ignored return value.
   
   Tested with ASAN in the fedora:45 CI image: all 1420 unit tests, and the 
Uranium tests for regex_revalidate, jax_fingerprint, lua and prefetch (61 
passed).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to