Random crashes after sighup

Guus Sliepen guus at tinc-vpn.org
Thu Jun 1 08:38:32 CEST 2006


On Thu, May 18, 2006 at 12:43:30AM +0200, Gaël Roualland wrote:

> I noticed some random crashes after sending SIGHUP to the daemon
> (especially when some connections are continually failling).
> Playing around with gdb, it seems that after SIGHUP, all the "outgoing"
> information of the connections is being cleared, but later on it is
> being used in other places while still equal to NULL.
> 
> The attached patch tries to fix this by avoiding these conditions. It
> works for me, although it might not be the best way to fix it, since I'm
> not yet very familiar with tinc's data structures.

Thanks! I'll look if there is a better way to fix it, otherwise I'll
just apply your patch.

-- 
Met vriendelijke groet / with kind regards,
    Guus Sliepen <guus at sliepen.eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://brouwer.uvt.nl/pipermail/tinc-devel/attachments/20060601/645776d2/attachment.pgp


More information about the tinc-devel mailing list