Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-20 Thread Steven Barth
On another note: I just backported an upstream fix for a race condition. 
Might be related to this issue or might not. Please try to test with 
latest trunk or bb-branch.


Cheers,

Steven
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Bastian Bittorf
sometimes dnsmasq 2.71 (trunk) dies silently but
the process is still running. when sending:

kill -SIGSEGV $PID

there is no coredump but the daemon gets restarted (via procd?)
normally inserting 'ulimit -c unlimited' just before starting
the daemon should be enough, but i'am unsure how to apply,
because there is some procd-magic involved. any hints?

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Roman Yeryomin
On 19 August 2014 12:10, Bastian Bittorf bitt...@bluebottle.com wrote:
 sometimes dnsmasq 2.71 (trunk) dies silently but
 the process is still running. when sending:

 kill -SIGSEGV $PID

 there is no coredump but the daemon gets restarted (via procd?)
 normally inserting 'ulimit -c unlimited' just before starting
 the daemon should be enough, but i'am unsure how to apply,
 because there is some procd-magic involved. any hints?

I've noticed this yesterday too.
Seems this has something to do both with procd and ipcalc.sh (because
dhcp-range string had invalid ip addresses, like 0.0.0.100, in
/tmp/etc/dnsmasq.conf).
I was able to get it working after fixing the /tmp/etc/dnsmasq.conf
and setting USE_PROCD=0 in /etc/init.d/dnsmasq
Didn't have much time to debug further.

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Steven Barth

Hi Bastian,

you should try:


procd_set_param limits core=unlimited


Cheers,

Steven
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Bastian Bittorf
* Steven Barth cy...@openwrt.org [19.08.2014 12:49]:
 procd_set_param limits core=unlimited

thanks, this works fine here when the 'root' part of
dnsmasq gets a -SIGSEGV (or during a real crash) and
produces coredumps. i will keep the list updated,
when i catch a real hang.

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Luis E. Garcia
I've noticed this issue with dnsmasq, I think that miniupnp is also having
a similar issue where it dies silently after a few days.
Can I apply the same method to debug miniupnp ??

Regards,
Luis Garcia


On Tue, Aug 19, 2014 at 10:45 AM, Bastian Bittorf bitt...@bluebottle.com
wrote:

 * Steven Barth cy...@openwrt.org [19.08.2014 12:49]:
  procd_set_param limits core=unlimited

 thanks, this works fine here when the 'root' part of
 dnsmasq gets a -SIGSEGV (or during a real crash) and
 produces coredumps. i will keep the list updated,
 when i catch a real hang.

 bye, bastian
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] dnsmasq 2.71 dies silently (hangs) / how to debug

2014-08-19 Thread Steven Barth
No, miniupnp doesn't use procd yet. However you should be able to use the 
usual: ulimit -c unlimited somewhere above the service_start call to enable 
core dumps.

On 19. August 2014 19:15:32 MESZ, Luis E. Garcia l...@bitamins.net wrote:
I've noticed this issue with dnsmasq, I think that miniupnp is also
having
a similar issue where it dies silently after a few days.
Can I apply the same method to debug miniupnp ??

Regards,
Luis Garcia


On Tue, Aug 19, 2014 at 10:45 AM, Bastian Bittorf
bitt...@bluebottle.com
wrote:

 * Steven Barth cy...@openwrt.org [19.08.2014 12:49]:
  procd_set_param limits core=unlimited

 thanks, this works fine here when the 'root' part of
 dnsmasq gets a -SIGSEGV (or during a real crash) and
 produces coredumps. i will keep the list updated,
 when i catch a real hang.

 bye, bastian
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel