apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43375] New: - Pool integrity check fails for apr threads
Date Thu, 13 Sep 2007 08:32:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43375>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43375

           Summary: Pool integrity check fails for apr threads
           Product: APR
           Version: 1.2.8
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: daniel.tacalau@avira.com


apr_pool_check_integrity will assert at the ownership test  for apr_thread_exit

apr_thread_exit destroys a pool allocated on another thread. This pool is
created in apr_thread_create and is the pool in which the thread resources are
allocated (the pool belongs to the parent thread).

So the thread trying to do destroy in apr_thread_exit does not have
ownership of the pool. apr_thread_exit must be called from the thread
 who wants to exit since it calls pthread_exit.

A solution to fix this would be for apr_thread_exit() to not call
apr_pool_destroy() since it does not own the pool and leave this to the
thread parent. This will comply with apr_pool_check_integrity requirements

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message