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 42728] - mod_ssl thread detaching not releasing handles
Date Wed, 19 Sep 2007 14:57:42 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=42728>.
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=42728





------- Additional Comments From beau.croteau@ca.com  2007-09-19 07:57 -------
Calling apr_os_thread_current() causes a duplication of the Handle, so when the
thread detaches that handle turns in to a dangling pointer.

The problem is the mod_ssl code overwrites the default behavior for
ssl_util_thr_id which, when called in the case mentioned, will leak the handle.

It is not limited to APR thread creation/destruction, it can be any method you
choose to create/destroy threads and the leak will still occur.  If you use the
standard _beginthread API or CreateThread API, the same thing occurs.  It's
because the thread is detaching and there's nothing to clean up the duplicate
handle after it's detached.

-- 
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