[Dnsmasq-discuss] dnsmasq rc5 segfault

Simon Kelley simon at thekelleys.org.uk
Fri Jul 11 19:40:35 BST 2008


Carlos Carvalho wrote:
> Today dnsmasq died. It was the first time since I use it :-(
> 
> In its log there's no sign of problems. The last entry is for a
> DHCPNAK; it's the only such record with 2.43. The kernel log says
> 
> Jul 11 14:27:38 hoggar dnsmasq[11797]: segfault at 10 ip 08061e91 sp bfffe770 error 4 in dnsmasq[8048000+22000]
> 
> The kernel is compiled with several PAX protections, in particular
> non-executable pages.
> 
> Any ideas on how to debug this? All I can imagine demand a significant
> amount of work here :-(
> 

Best bet is to be ready to catch the next one.

1) rebuild dnsmasq with

make CFLAGS=-g

2) enable coredumps and move to a directory where they can be written

ulimit -c unlimited

3) run dnsmasq in the foreground

dnsmasq -d


If it crashes again, send me the core dump and the executable file.


Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list