Re: [PATCH] fix unregister/callback race in conn.c

"Alexander Malysh" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

as of sooo many positive votes, commited to cvs :)

Am 25.10.2006, 22:40 Uhr, schrieb Alexander Malysh <[email protected]>:

> patch fixes race condition in unregister/callback usage/destroy of  
> callback data.
> The race is as follow, spotted with help of http.c:
> 	1 Thread				2 Thread
> 1) http:conn_pool_get			1) http:check_pool_conn
> 2)	conn = XYZ
> 3)	conn_unregister
> 		in conn_unregister
> 		destroy callbackdata
> 						2) dict_get(conn_pool, key) -> crash because connback data already  
> destroyed



-- 
Thanks,
Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.