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

Bug 890485

Summary: net-dns/dnsmasq-2.86-r2 segfaults when external interface goes down
Product: Gentoo Linux Reporter: Vadim <lvd.mhm>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 890575    
Bug Blocks:    

Description Vadim 2023-01-11 14:36:21 UTC
Config file: https://dpaste.com/6RX6QMY4V
emerge --info net-dns/dnsmasq: http://dpaste.com/EDRVYTXJC
(the emerge now tells about 2.87, same was for 2.86-r2)

When the internet-looking interface goes down, any attempt to pass DNS request through the dnsmasq (request comes from any of the local NATed nets, go to some public DNS servers) results in segfault.

dnsmasq compiled from here https://thekelleys.org.uk/dnsmasq/dnsmasq-2.86.tar.xz 
segfaults too.

Going to ~amd64 (2.87 as of now) or trying https://thekelleys.org.uk/dnsmasq/dnsmasq-2.87.tar.xz fixes the problem.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-12 04:20:10 UTC
Thank you.

*** This bug has been marked as a duplicate of bug 873700 ***
Comment 2 Larry the Git Cow gentoo-dev 2023-01-12 04:22:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f760ca8d672081ad179e7aae150c57a9615b37

commit c2f760ca8d672081ad179e7aae150c57a9615b37
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-12 04:21:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-12 04:21:21 +0000

    net-dns/dnsmasq: add 2.88
    
    Bug: https://bugs.gentoo.org/890485
    Closes: https://bugs.gentoo.org/873700
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/dnsmasq/Manifest            |   1 +
 net-dns/dnsmasq/dnsmasq-2.88.ebuild | 224 ++++++++++++++++++++++++++++++++++++
 2 files changed, 225 insertions(+)