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

Reply via email to