[Vortex] Threaded vortex_connection_new causes segfaults

Francis Brosnan Blazquez francis at aspl.es
Mon Apr 25 15:51:52 CEST 2011


> Hi

Hi Wimpie,

> I think I found a bug in vortex_connection_new. Using this function with
> an OnConnected handler always gives me segfaults.
> 
> It looks like the problem is that vortex_connection_new passes a pointer
> to Options to vortex_connection_new_full which passes the same pointer
> to the thread. However, Options is a local struct variable in
> vortex_connection_new that goes out of scope before the thread can use
> it. Then later the thread tries to free the invalid pointer, which
> causes the segfault.
> 
> The attached program shows the problem. It should be used with
> vortex-simple-listener.

Thanks for reporting. I think the issue is solved in SVN [1]. Checktout
latest version to see it works now. 

Cheers!

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

> Regards
> Wimpie
> _______________________________________________
> 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