[asterisk-bugs] [JIRA] (ASTERISK-24881) ast_register_atexit should only be used when absolutely needed

Corey Farrell (JIRA) noreply at issues.asterisk.org
Sun Mar 15 05:34:34 CDT 2015


Corey Farrell created ASTERISK-24881:
----------------------------------------

             Summary: ast_register_atexit should only be used when absolutely needed
                 Key: ASTERISK-24881
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24881
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/General
    Affects Versions: 13.2.0, 11.16.0, SVN
            Reporter: Corey Farrell
            Severity: Minor


We've had many issues related to {{core stop now}} or {{core restart now}} causing segmentation faults.  The solution to this is to change almost everything to use {{ast_register_cleanup}}.

Exceptions:
CDR: Flush records.
res_musiconhold: Kill external applications.
AstDB: Close the DB.
canary_exit: Kill canary process.

Although some changes from ast_register_atexit to ast_register_cleanup are not strictly necessary, the point is for nothing to use ast_register_atexit except where required.  For this reason the change is across the board.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list