Re: [Dnsmasq-discuss] dnsmasq crash - no core dump generated

2018-12-28 Thread Arvind Nagarajan
Thanks Simon. Yes I am able to generate coredump with your suggestion.

Date: Fri, 28 Dec 2018 09:59:29 +
From: Simon Kelley 
To: dnsmasq-discuss@lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] dnsmasq crash - no core dump generated
Message-ID: 8980a6c8-59db-1c76-2afe-7eac1096d...@thekelleys.org.uk
Content-Type: text/plain; charset=utf-8

This code is relevant, in src/dnsmasq.c


  if (option_bool(OPT_DEBUG))
prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);



Cheers,

Simon.

On Thu, Dec 27, 2018 at 7:40 PM Arvind Nagarajan
 wrote:
>
> Hi All,
>
> When dnsmasq crashes due to segfault (SIGSEGV) I am not getting a core
> file generated.
> Is this expected?
> dnsmasq is managed by systemd and started using
> systemctl start dnsmasq.
> The dnsmasq service file starts dnsmasq with '-k' option - keep in
> foreground mode.
>
> Howerver If I run the dnsmasq in debug mode using '-d' mode the core
> dump is getting generated.
>
> Do I need to add any signal handling code/any config knob to generate
> core dump in -k' mode.
> Any pointers regarding this will be helpful.
>
> Thanks,
> Arvind

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Infinite loop in IPv4 + IPv6 DHCP setup with 2.80 on aarch64

2018-12-28 Thread Noel Kuntze
Hello list,

I am encountering an issue with dnsmasq 2.80 on aarch64 (armv8 64 bit) wherein 
dnsmasq
infinitely loops sending its RAs. The configuration file and logs are following 
below this message.
The logs are produced when allowing dnsmasq to run for one second.

Kind regards

Noel Kuntze

--
domain-needed
bogus-priv
conf-file=/usr/share/dnsmasq/trust-anchors.conf
dnssec
dnssec-check-unsigned
filterwin2k
strict-order
server=/.lan/192.168.178.48
server=/168.192.in-addr.arpa/192.168.178.48

interface=aps
domain=thermicorp-aps.lan
dhcp-range=192.168.182.10,192.168.182.200,12h
dhcp-range=fd62:3d70:c86f:73c7::, ra-names, 12h

dhcp-option=option:router,192.168.182.1
dhcp-option=option6:dns-server,[fd62:3d70:c86f:73c7::1]
dhcp-option=option6:information-refresh-time,6h
dhcp-option=option:domain-search,thermicorp.lan,thermicorp-aps.lan
dhcp-leasefile=/mnt/dnsmasq/dnsmasq.leases
dhcp-authoritative
dhcp-rapid-commit

cache-size=1000

no-negcache

log-dhcp

dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore

--
Started A lightweight DHCP and caching DNS server.
started, version 2.80 cachesize 1000
compile time options: IPv6 GNU-getopt DBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP 
conntrack ipset auth DNSSEC loop-detect inotify >
DBus support enabled: connected to system bus
DNSSEC validation enabled
configured with trust anchor for  keytag 20326
configured with trust anchor for  keytag 19036
DHCP, IP range 192.168.182.10 -- 192.168.182.200, lease time 12h
DHCPv4-derived IPv6 names on fd62:3d70:c86f:73c7::
router advertisement on fd62:3d70:c86f:73c7::
RTR-ADVERT(aps) fd62:3d70:c86f:73c7::
using nameserver 192.168.178.48#53 for domain 168.192.in-addr.arpa (no DNSSEC)
using nameserver 192.168.178.48#53 for domain lan (no DNSSEC)
reading /etc/resolv.conf
using nameserver 192.168.178.48#53 for domain 168.192.in-addr.arpa (no DNSSEC)
using nameserver 192.168.178.48#53 for domain lan (no DNSSEC)
using nameserver 192.168.178.48#53
using nameserver 192.168.178.1#53
read /etc/hosts - 0 addresses
RTR-ADVERT(aps) fd62:3d70:c86f:73c7:: (941 times)
Stopping A lightweight DHCP and caching DNS server...
RTR-ADVERT(aps) fd62:3d70:c86f:73c7::
Stopped A lightweight DHCP and caching DNS server.
RTR-ADVERT(aps) fd62:3d70:c86f:73c7::
RTR-ADVERT(aps) fd62:3d70:c86f:73c7::
RTR-ADVERT(aps) fd62:3d70:c86f:73c7::
exiting on receipt of SIGTERM

-- 
Noel Kuntze
IT security consultant

GPG Key ID: 0x0739AD6C
Fingerprint: 3524 93BE B5F7 8E63 1372 AF2D F54E E40B 0739 AD6C



0xF54EE40B0739AD6C.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] dnsmasq crash - no core dump generated

2018-12-28 Thread Simon Kelley
This code is relevant, in src/dnsmasq.c


  if (option_bool(OPT_DEBUG))
prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);



Cheers,

Simon.

On 28/12/2018 03:40, Arvind Nagarajan wrote:
> Hi All,
> 
> When dnsmasq crashes due to segfault (SIGSEGV) I am not getting a core
> file generated.
> Is this expected?
> dnsmasq is managed by systemd and started using
> systemctl start dnsmasq.
> The dnsmasq service file starts dnsmasq with '-k' option - keep in
> foreground mode.
> 
> Howerver If I run the dnsmasq in debug mode using '-d' mode the core
> dump is getting generated.
> 
> Do I need to add any signal handling code/any config knob to generate
> core dump in -k' mode.
> Any pointers regarding this will be helpful.
> 
> Thanks,
> Arvind
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss