Sandy McArthur Jr
2014-May-13 17:14 UTC
Bug: more than one Port line in host file crashes tincd
I found a tincd crash caused by having two "Port" statements in a host's file. I realize this is a bug in an old version of tinc that may be fixed but I spent the past few hours tracking it down so I'm sharing it in hopes others can make use of this info. I was "cleaning" up my Tinc VPN of a collection of OpenWrt routers and tincd started crashing with "Got fatal signal 11 (Segmentation fault)" in the log file. Below is an trimmed and anonymized host config fragments that would crash my version of tincd. # cat ..../netname/hosts/ExampleHost Address = host.example.org Port = 656 Subnet = 192.168.123.0/24 -----BEGIN RSA PUBLIC KEY----- [removed] -----END RSA PUBLIC KEY----- Address = host.example.org Port = 656 Subnet = 192.168.123.0/24 # tincd --version tinc version 1.0.19 (built Mar 14 2013 12:15:52, protocol 17) Simply eliminating the duplicate info from the host's config would fix things for me. I'm not sure if the non-standard port bit is relevant. Hope that info helps someone else out. -- Sandy McArthur, Jr. "No nation could preserve its freedom in the midst of continual warfare." - Letters and Other Writings of James Madison (1865), Vol. IV, p. 491 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20140513/038077b6/attachment.html>
Guus Sliepen
2014-May-14 08:43 UTC
Bug: more than one Port line in host file crashes tincd
On Tue, May 13, 2014 at 01:14:24PM -0400, Sandy McArthur Jr wrote:> I found a tincd crash caused by having two "Port" statements in a host's > file. > > I realize this is a bug in an old version of tinc that may be fixed but I > spent the past few hours tracking it down so I'm sharing it in hopes others > can make use of this info. > > I was "cleaning" up my Tinc VPN of a collection of OpenWrt routers and > tincd started crashing with "Got fatal signal 11 (Segmentation fault)" in > the log file. Below is an trimmed and anonymized host config fragments that > would crash my version of tincd.I tried to recreate the problem, but I cannot reproduce the crash, neither with 1.0.19 or 1.0.24. Could you send me a copy of your tinc.conf and all hosts/ config files, and the output of tincd -n <netname> -d5 -D? -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20140514/927c7909/attachment.sig>