[asterisk-bugs] [JIRA] (ASTERISK-21785) __ao2_ref_debug() logs to /tmp/refs when REF_DEBUG is not defined

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue May 14 11:43:38 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-21785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett updated ASTERISK-21785:
---------------------------------------

    Assignee: Richard Mudgett  (was: abelbeck)
      Status: Triage  (was: Waiting for Feedback)
    
> __ao2_ref_debug() logs to /tmp/refs when REF_DEBUG is not defined
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-21785
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21785
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_xmpp
>    Affects Versions: 11.3.0
>         Environment: Embedded Linux - AstLinux 1.x
>            Reporter: abelbeck
>            Assignee: Richard Mudgett
>         Attachments: asterisk-11-disable-tmp-refs-logging.patch
>
>
> When __ao2_ref_debug() is called, very often when res_xmpp is actively used, the /tmp/refs file grows to 9MB over the course of a few weeks.
> In our embedded environment /tmp is RAM based and defaults to 10MB, the growing /tmp/refs file then causes problems.  We need a way to control this behavior.
> A fix is to only log to /tmp/refs in __ao2_ref_debug() when REF_DEBUG is defined.  Possibly this is too simplistic of a test in general, but works for us.  Patch to follow.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list