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

abelbeck (JIRA) noreply at issues.asterisk.org
Tue May 14 12:36:38 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206385#comment-206385 ] 

abelbeck commented on ASTERISK-21785:
-------------------------------------

Richard, your jira_asterisk_21785_v11.patch fixes the problem for us.  /tmp/refs is no longer created with res_xmpp .

Same results as with my original patch, but clearly your patch more elegantly solves it.

Thanks!
                
> __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, 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