[Vortex] Bug in vortex_connection on_close_full list handling

Francis Brosnan Blazquez francis at aspl.es
Thu Jan 13 19:55:54 CET 2011


> Hi Francis,

Hi Gernot,

This bug is already fixed in SVN [1]. See revision 4580.

Anyway, thanks for reporting!

Cheers!

[1] https://dolphin.aspl.es/svn/publico/af-arch/trunk/libvortex-1.1/

> Thanks for your prompt answers to my questions. I appreciate the
> support.
> 
>  
> 
> I think I found a bug in vortex-1.1.6.b4526.g4526 that is triggered
> when using the vortex_alive feature.
> 
> __vortex_alive_trigger_failure() calls
> vortex_connection_remove_on_close_full(), which removes the
> on_close_full handler with the connection->handlers_mutex
> 
> held.
> 
>  
> 
> Another thread might be in the process of already shutting down the
> connection, which triggers the code path:
> 
> vortex_connection_shutdown()
> 
> _vortex_connection_set_not_connected()
> 
> _vortex_connection_invoke_on_close()
> 
>  
> 
> _vortex_connection_invoke_on_close() walks the on_close_full list with
> the connection->op_mutex held.
> 
> The same mutex should be used when modifying or traversing the list.
> 
> _vortex_connection_invoke_on_close() should also use the
> connection->handlers_mutex. 
> 
>  
> 
>  
> 
> Best regards
> 
>  
> 
> Gernot Seidler
> Software Architect
> 
> Egenera Inc. | Converge. Unify. Simplify.™
> 
> 508-858-3185 (office)
> 508-481-3114 (fax)
> 
> http://www.egenera.com
> http://blog.egenera.com
> 
>  
> 
> 
> _______________________________________________
> Vortex mailing list
> Vortex at lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex
-- 
Francis Brosnan Blázquez <francis.brosnan at aspl.es>
ASPL
91 134 14 22 - 91 134 14 45 - 91 116 07 57

AVISO LEGAL

Este mensaje se dirige exclusivamente a su destinatario. Los datos
incluidos en el presente correo son confidenciales y sometidos a secreto
profesional, se prohíbe divulgarlos, en virtud de las leyes vigentes. Si
usted no lo es y lo ha recibido por error o tiene conocimiento del mismo
por cualquier motivo, le rogamos que nos lo comunique por este medio y
proceda a destruirlo o borrarlo.

En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL). No obstante, usted puede ejercitar sus derechos de acceso,
rectificación, cancelación y oposición dispuestos en la mencionada Ley
Orgánica, notificándolo por escrito a:
ASPL - Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de
Henares (Madrid).



More information about the Vortex mailing list