FS#60366 - [dnsmasq] configuration-dependent segfault
Attached to Project:
Arch Linux
Opened by Daniel Hogan (dhogan) - Wednesday, 10 October 2018, 01:58 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 27 September 2023, 06:13 GMT
Opened by Daniel Hogan (dhogan) - Wednesday, 10 October 2018, 01:58 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 27 September 2023, 06:13 GMT
|
Details
Description:
I use dnsmasq as a DNS-based ad blocker, using StevenBlack's list of ad-serving domains. His list is available at https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts and is then processed into a dnsmasq compatible format. One of these hosts causes dnsmasq to segfault when added to the configuration file. The configuration file passes dnsmasq's internal configuration check ('dnsmasq --test'). The configuration did not cause previous versions to segfault, and the regression was introduced between versions 2.79-1 and 2.79-3. Additional info: dnsmasq 2.79-3 Steps to reproduce: Add the line 'address=/r6---sn-5ualdne7.c.2mdn.net/0.0.0.0/' to /etc/dnsmasq.conf Start dnsmasq.service Dnsmasq segfaults |
This task depends upon
Closed by Toolybird (Toolybird)
Wednesday, 27 September 2023, 06:13 GMT
Reason for closing: Upstream
Additional comments about closing: This look a bit old and stale. If still happening, please report to upstream mailing list as mentioned in the comments.
Wednesday, 27 September 2023, 06:13 GMT
Reason for closing: Upstream
Additional comments about closing: This look a bit old and stale. If still happening, please report to upstream mailing list as mentioned in the comments.
dnsmasq version 2.80.
I guess it would be better to report this upstream, but I'm not sure which bugtracker to use. The thekelleys.org.uk/dnsmasq repo has no tracking and the github mirror seems unmaintained...
And when running it manually I can also not reproduce it.
[jelle@helium][~]%sudo dnsmasq -C /etc/dnsmasq.conf
dnsmasq: bad option at line 680 of /etc/dnsmasq.conf
Does
echo 'address=/hm--test2.vergic.com/#' | dnsmasq -C -
work for you?
The end of you comment sounds like you also have the bug (although with slightly other wording of the error message).
I get "dnsmasq: error at line 1 of stdin".
The same happens with 'dnsmaq --test'.
I'm still on version 2.80 and there is no newer version updtream, as far as I can tell.
Cheers,
Tasnad
My guess is that it's related to arg parsing, since it appears when double dashes are in the URLs.
Any suggestions where to report it?
echo 'address=/hm\-\-test2.vergic.com/#' | dnsmasq -C -