[Home]

Summary:ASTERISK-23827: autoservice thread doesn't exit at shutdown
Reporter:Corey Farrell (coreyfarrell)Labels:
Date Opened:2014-06-06 08:53:27Date Closed:2014-06-08 22:45:10
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/PBX
Versions:SVN 1.8.28.0 11.10.0 12.3.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The autoservice thread is never stopped.  This poses a problem when attempting to use the full testsuite with REF_DEBUG.  In Asterisk 11 this causes 37 instances to leak a ast_create_callid, and ao2_ref is always run on callid's hundreds or thousands of times greatly inflating the refs log.
Comments:By: Corey Farrell (coreyfarrell) 2014-06-06 08:54:54.998-0500

I'm working on a patch for this issue, one question though.  I believe void autoservice_shutdown(void) should be handled by ast_register_cleanup, not ast_register_atexit.  Should I ignore 1.8 or backport ast_register_cleanup?