[Dnsmasq-discuss] Floating point exception

Simon Kelley simon at thekelleys.org.uk
Sat Feb 13 17:48:41 GMT 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The condition that causes it is having the start address all zeros and
the end address all ones. Dnsmasq calculates the size of the range, in
this case ffffffffffffff - 0 and then adds one to it, overflowing the
64-bit variable back to zero. It then divides by that zero, and falls
over in a big heap.

I've just pushed a patch to fix this. Thanks for reporting it.


Cheers.


Simon.




On 12/02/16 16:32, BENDEL, Laurent (ext.) wrote:
> Hi all, new to dnsmasq and ipv6 so maybe I miss something. But I
> get a floating exception error when I launch dnsmasqd as follows :
> 
> dnsmasq -d -q -F 20:20::,20:20::FFFF:FFFF:FFFF:FFFF --enable-ra -l
> lease.dhcp
> 
> the exptions happens as soon as a client makes a request. Any other
> range I've tried is OK, just this one is problematic.
> 
> Is there anything particular with the host address
> FFFF:FFFF:FFFF:FFFF in ipv6 ?
> 
> I'm running openwrt on a broadcom chip.
> 
> Thanks, Laurent
> 
> ############
> 
> root at HOSTNAME:~# dnsmasq -d -q -F
> 20:20::,20:20::FFFF:FFFF:FFFF:FFFF --enable-ra -l lease2.dhcp 
> dnsmasq: started, version 2.68 cachesize 150 dnsmasq: compile time
> options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua
> TFTP no-conntrack ipset auth dnsmasq-dhcp: DHCPv6, IP range 20:20::
> -- 20:20::ffff:ffff:ffff:ffff, lease time 1h dnsmasq-dhcp: router
> advertisement on 20:20:: dnsmasq-dhcp: IPv6 router advertisement
> enabled dnsmasq: reading /etc/resolv.conf dnsmasq: using nameserver
> 192.168.220.252#53 dnsmasq: using nameserver 192.168.220.252#53 
> dnsmasq: read /etc/hosts - 1 addresses dnsmasq-dhcp:
> RTR-ADVERT(bvi1) 20:20:: dnsmasq-dhcp: RTR-ADVERT(bvi1) 20:20:: 
> dnsmasq-dhcp: RTR-ADVERT(bvi1) 20:20:: dnsmasq-dhcp:
> DHCPRELEASE(bvi1) 00:03:00:06:54:ee:75:17:40:3d dnsmasq-dhcp:
> DHCPSOLICIT(bvi1) 00:03:00:06:54:ee:75:17:40:3d Floating point
> exception
> 
> 
> 
> 
> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWv2x5AAoJEBXN2mrhkTWiPgUP/3Sc+FQ9eYNbiw2nB9jkkPSV
WQSJxvurJMXS8O/0cgj68p/GKwFK8Kz1Gw1kz66tBS9u5Kne53cXXbln5C5C6D/M
CULoIoZyisqNaynON2yutQOpTBW/MaW0+LYRo/ypKN6IMH+CsPGdUjAV2BP0I4QX
/ck4+Hb+ZJBfSINQj4DUIbcytG7ESJ2jFS2t9LnY2sgsiS7QJ+FPP0vPtWOwbfwE
1I5pNAjrXT3Vq43r/w8jFkWOQaDJsrivhw+BtE90PcGl0Wk/JeRWn8l/7CIiPgQ+
2gndS+uxambdFM+BVzQ28/Utel0aOH7r0HPnhNzllX3qLfT5ac98E+c4CvZxWvCm
Q9f80LL5X3raleruSxoYnO+Tkq+YlmYMyMUY4B20kktALB5e0VTrq5CZrrcwHpxK
maAjilo67YjfgSq49ThlE6cVB4b0/y8iZWrZkDEymRciiF5NFVhL6h55x70TumW5
3tUGxRSv1A8iUuMBCp8V5G1FGLrmVvfCcCtdEv2kLyUT63u039AHvAnQc/a1xENU
0sU17qtJkLN9diPqAkEDj+1xw2eO1o/l0Drfq1r2icGoHegJy4Q73tq6aDZU3Phi
kb9Ei5oE4yIB6KgV/J+IQsAgrmDKFg0LSMAydN8uhDvZ6tu37xc67pRtMqNBYANc
f/5tbBPxq6L2RwDXbn8O
=9Jro
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list