Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602254

Summary: net-dns/dnsmasq-2.76-r1 segfault in added patch
Product: Gentoo Linux Reporter: Marinus Schraal <fosero>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED FIXED    
Severity: major CC: conardcox, conikost, erik.badman, james05+gentoo, marduk, slashbeast
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Upstream fix

Description Marinus Schraal 2016-12-10 14:42:12 UTC
Since upgrade to r1. The error in the added patch, the version without the patch is fine.

Backtrace:

dnsmasq: started, version 2.76 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-scripts no-TFTP no-conntrack ipset no-auth DNSSEC loop-detect inotify

Program received signal SIGSEGV, Segmentation fault.
0x0000000000427f15 in check_servers () at network.c:1520
1520		  serv->sfd->used = 1;
(gdb) bt
#0  0x0000000000427f15 in check_servers () at network.c:1520
#1  0x000000000042b752 in main (argc=4, argv=0x7fffffffe088) at dnsmasq.c:874
(gdb)

serv->sfd is Null

[ebuild   R    ] net-dns/dnsmasq-2.76::gentoo  USE="dbus dhcp dnssec inotify ipv6 nls -auth-dns -conntrack -dhcp-tools -idn -lua -script (-selinux) -static -tftp" LINGUAS="-de -es -fi -fr -id -it -no -pl -pt_BR -ro" 0 KiB
Comment 1 Conrad Kostecki gentoo-dev 2016-12-10 14:58:46 UTC
+1 same problem here. Please revert. It affects all my gentoo machines with DNSMasq.
Comment 2 Felix Janda 2016-12-10 16:28:06 UTC
Created attachment 455758 [details, diff]
Upstream fix
Comment 3 Conrad Kostecki gentoo-dev 2016-12-10 16:36:06 UTC
(In reply to Felix Janda from comment #2)
> Created attachment 455758 [details, diff] [details, diff]
> Upstream fix

Thanks! Works for me, DNSMasq no longer crashes.
Comment 4 jorgicio 2016-12-11 20:02:01 UTC
(In reply to Felix Janda from comment #2)
> Created attachment 455758 [details, diff] [details, diff]
> Upstream fix

The patch works for me too, thanks.
Comment 5 Søren Dalby Larsen 2016-12-12 16:39:10 UTC
+1 Just confirming
Comment 6 Piotr Karbowski (RETIRED) gentoo-dev 2016-12-12 16:46:07 UTC
So... we got a update in portage to dnsmasq, that does crash on startup, it's been 2 days and still not fixed.

Did anyone tested it above building the code?
Comment 7 Jeff Kowalczyk 2016-12-12 19:02:11 UTC
I was about to file a bug that dnsmasq-2.76-r1 prevented app-emulation/lxd from assigning ipv4 and ipv6 addresses to containers. Downgrading to dnsmasq-2.76 works fine.

Reading through this bug, it seems that dnsmasq-2.76-r1 is simply crashing, and lxd is not reporting that at the top level container info.
Comment 8 Piotr Karbowski (RETIRED) gentoo-dev 2016-12-12 19:18:40 UTC
Adding to CC author of this happy change, as bug wranglers did not assigned this bug to anyone.
Comment 9 Patrick McLean gentoo-dev 2016-12-12 21:45:59 UTC
I reverted the change, bug #601920 can wait for upstream to make a new release
Comment 10 Patrick McLean gentoo-dev 2016-12-15 18:27:30 UTC
This was fixed since I reverted the change.