Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602254 - net-dns/dnsmasq-2.76-r1 segfault in added patch
Summary: net-dns/dnsmasq-2.76-r1 segfault in added patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major with 2 votes (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-10 14:42 UTC by Marinus Schraal
Modified: 2016-12-15 18:27 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream fix (patch,729 bytes, patch)
2016-12-10 16:28 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.