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 43876] - Thread pooling has thread safety/race condition errors
Date Fri, 16 Nov 2007 19:47:49 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=43876>.
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=43876





------- Additional Comments From Joe.Mudd@sas.com  2007-11-16 11:47 -------
I think there is a chance for a race condition w/o trim_threads() holding the 
lock until the element list entries are marked w/TH_STOP.

The race condition would be when a timed wait idle thread wakes up after its 
element descriptor is UNSPLICED but before it is marked w/TH_STOP.  This would 
allow the waking thread to get back around to the top of the thread_pool_func() 
loop and possibly crash on the APR_RING_REMOVE.

Thanks for your help and review.

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