apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56944] New: Prevent endless loop on pool cleanup
Date Wed, 10 Sep 2014 18:38:25 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56944

            Bug ID: 56944
           Summary: Prevent endless loop on pool cleanup
           Product: APR
           Version: HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: tc+asf@travislists.com

Created attachment 31985
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31985&action=edit
Prevent endless loop on pool cleanup

Greetings,

The attached patch, which applies cleanly to APR HEAD, addresses an issue we
experienced in using APR with the FreeSWITCH project.  We've been running this
patch in FreeSWITCH's version of APR for years and would like to see it
included upstream if possible.  Please let us know your thoughts and if any
changes are appropriate we'll be happy to make them and propose a revised
patch.

The patch series being proposed here is also available on the master branch of
this repository:

  https://github.com/traviscross/apr/

Author: Anthony Minessale <anthm@freeswitch.org>
Date:   Thu Mar 13 04:01:01 2014 +0500

    Prevent endless loop on pool cleanup

    When APR_POOL_DEBUG is set, we check up to three levels deep for a
    kind of corruption of the cleanup lists where a node is duplicated
    causing an endless loop and abort.

    If we hit this class of corruption when not debugging, however, we'd
    prefer to just ignore it in preference to looping infinitely or
    aborting.

    With this change, we check for immediate duplicates and simply stop
    processing the cleanup list at that point potentially leaking
    resources.

    Signed-off-by: Anthony Minessale <anthm@freeswitch.org>
    Signed-off-by: Travis Cross <tc@traviscross.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message