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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Jun 10 16:31:21 CDT 2013


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

Matt Jordan updated ASTERISK-21785:
-----------------------------------

    Target Release Version/s: 11.5.0
    
> __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
>      Target Release: 11.5.0
>
>         Attachments: asterisk-11-disable-tmp-refs-logging.patch, jira_asterisk_21785_v11.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