Mantis - Resin
Viewing Issue Advanced Details
4529 minor always 04-29-11 10:04 05-17-11 10:01
ferg  
ferg  
normal  
closed  
fixed  
none    
none 4.0.19  
0004529: mod_caucho threading issue
(rep by remkodev)

See http://forum.caucho.com/showthread.php?t=27741 [^]


The thread's last resin function is cse_free_lock

cse_free_lock(config_t *config, void *vlock)
{
apr_thread_mutex_destroy(vlock);
}

After some research, it appears that apr_thread_mutex_destroy(vlock); is not thread safe.

(https://www.securecoding.cert.org/co...read%27s+mutex) [^]

We figured that because our webservers uses multiple resin servers (around 6) in each vhost/apache instance these will cause the race condition over the thread_mutex_destroy method.

Today I altered the configuration of the most busy app ( Note: 0000090% off the hits) to be proxied to a seprate webserver with only 1 resin host configured. This setup did not cause a single hanging process for over 4 hours.


There are no notes attached to this issue.