What's new

Dnsmasq crashes, watchdog fails to restart it

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I didn't try it with the dhcp-optsfile option removed, didn't see that post.
Thanks for being a good sport and running all these tests. Feels like we’re stuck as far as the debug goes.

When it is convenient, please do comment out the dhcp-optsfile line and see how it goes.
 
When it is convenient, please do comment out the dhcp-optsfile line and see how it goes.

Ok, I tried it, but now I'm losing the plot somewhat.

I edited "/jffs/configs/dnsmasq.conf.add" and commented out the "dhcp-optsfile" line.

Then I ran "killall dnsmasq; dnsmasq -d --log-debug --log-async" and ran "killall -SIGHUP dnsmasq" from another window.

This time, it didn't crash, but it still loaded the 'dhcp-optsfile' file.
Code:
dnsmasq: read /etc/hosts - 24 names
dnsmasq: read /jffs/addons/YazDHCP.d/.hostnames - 34 names
dnsmasq-dhcp: read /jffs/addons/YazDHCP.d/.staticlist
dnsmasq-dhcp: read /jffs/addons/YazDHCP.d/.optionslist
dnsmasq: using nameserver 208.67.222.222#53
dnsmasq: using nameserver 208.67.220.220#53
dnsmasq: using only locally-known addresses for local
dnsmasq: using nameserver 208.67.222.222#53
dnsmasq: using nameserver 208.67.220.220#53
dnsmasq: using only locally-known addresses for local

So then I removed the comment (i.e. put dhcp-optsfile back) and tried again and it no longer crashes. Don't know what's going on.
 
Ok, I tried it, but now I'm losing the plot somewhat.

I edited "/jffs/configs/dnsmasq.conf.add" and commented out the "dhcp-optsfile" line.

Then I ran "killall dnsmasq; dnsmasq -d --log-debug --log-async" and ran "killall -SIGHUP dnsmasq" from another window.

This time, it didn't crash, but it still loaded the 'dhcp-optsfile' file.
Code:
dnsmasq: read /etc/hosts - 24 names
dnsmasq: read /jffs/addons/YazDHCP.d/.hostnames - 34 names
dnsmasq-dhcp: read /jffs/addons/YazDHCP.d/.staticlist
dnsmasq-dhcp: read /jffs/addons/YazDHCP.d/.optionslist
dnsmasq: using nameserver 208.67.222.222#53
dnsmasq: using nameserver 208.67.220.220#53
dnsmasq: using only locally-known addresses for local
dnsmasq: using nameserver 208.67.222.222#53
dnsmasq: using nameserver 208.67.220.220#53
dnsmasq: using only locally-known addresses for local

So then I removed the comment (i.e. put dhcp-optsfile back) and tried again and it no longer crashes. Don't know what's going on.
Sorry. Let’s try it this way:
  1. Comment out the line again.
  2. run service restart_dnsmasq
  3. run killall -SIGHUP dnsmasq
Does it crash?
 
Ok, tried that and this time it no longer reads the "dhcp-optsfile", but doesn't crash either.
Code:
cat /jffs/configs/dnsmasq.conf.add

addn-hosts=/jffs/addons/YazDHCP.d/.hostnames # YazDHCP_hostnames
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist # YazDHCP_staticlist
### dhcp-optsfile=/jffs/addons/YazDHCP.d/.optionslist # YazDHCP_optionslist


26-Feb 16:53:14 AX dnsmasq[26990]: read /etc/hosts - 24 names
26-Feb 16:53:14 AX dnsmasq[26990]: read /jffs/addons/YazDHCP.d/.hostnames - 34 names
26-Feb 16:53:14 AX dnsmasq-dhcp[26990]: read /jffs/addons/YazDHCP.d/.staticlist
26-Feb 16:53:14 AX dnsmasq[26990]: using nameserver 208.67.222.222#53
26-Feb 16:53:14 AX dnsmasq[26990]: using nameserver 208.67.220.220#53
26-Feb 16:53:14 AX dnsmasq[26990]: using only locally-known addresses for local
26-Feb 16:53:14 AX dnsmasq[26990]: using nameserver 208.67.222.222#53
26-Feb 16:53:14 AX dnsmasq[26990]: using nameserver 208.67.220.220#53
26-Feb 16:53:14 AX dnsmasq[26990]: using only locally-known addresses for local

But then I put it back the way it was and it still doesn't crash???
Code:
cat /jffs/configs/dnsmasq.conf.add

addn-hosts=/jffs/addons/YazDHCP.d/.hostnames # YazDHCP_hostnames
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist # YazDHCP_staticlist
dhcp-optsfile=/jffs/addons/YazDHCP.d/.optionslist # YazDHCP_optionslist


26-Feb 16:54:31 AX dnsmasq[27909]: read /etc/hosts - 24 names
26-Feb 16:54:31 AX dnsmasq[27909]: read /jffs/addons/YazDHCP.d/.hostnames - 34 names
26-Feb 16:54:31 AX dnsmasq-dhcp[27909]: read /jffs/addons/YazDHCP.d/.staticlist
26-Feb 16:54:31 AX dnsmasq-dhcp[27909]: read /jffs/addons/YazDHCP.d/.optionslist
26-Feb 16:54:31 AX dnsmasq[27909]: using nameserver 208.67.222.222#53
26-Feb 16:54:31 AX dnsmasq[27909]: using nameserver 208.67.220.220#53
26-Feb 16:54:31 AX dnsmasq[27909]: using only locally-known addresses for local
26-Feb 16:54:31 AX dnsmasq[27909]: using nameserver 208.67.222.222#53
26-Feb 16:54:31 AX dnsmasq[27909]: using nameserver 208.67.220.220#53
26-Feb 16:54:31 AX dnsmasq[27909]: using only locally-known addresses for local
 
I might have got my router into a strange state...

I was sensible enough to save the jffs & config before starting all these experiments.
I'll probably do a factory reset and restore it to it's former glory this evening.
 
Well, my AX86S died - jffs failed, loads of jffs2 checksum errors and it just crashed after a hard reset and restore attempt.

So - now I'm the proud owner of an AX88U_Pro.
dnsmasq still crashes when the WAN goes down, but now it gives a potentially unexpected fatal signal 6, instead of 11.

Code:
10-Mar 07:54:44 AX custom_script: Running /jffs/scripts/wan-event (args: 0 disconnected)
10-Mar 07:54:44 AX dnsmasq[3524]: read /etc/hosts - 24 names
10-Mar 07:54:44 AX dnsmasq[3524]: read /jffs/addons/YazDHCP.d/.hostnames - 34 names
10-Mar 07:54:44 AX custom_script: Running /jffs/scripts/wan-event (args: 0 stopped)
10-Mar 07:54:44 AX kernel: potentially unexpected fatal signal 6.
10-Mar 07:54:44 AX kernel: CPU: 0 PID: 3524 Comm: dnsmasq Tainted: P           O      4.19.183 #1
10-Mar 07:54:44 AX kernel: Hardware name: RTAX88U_PRO (DT)
10-Mar 07:54:44 AX kernel: pstate: 00070010 (nzcv q A32 LE aif)
10-Mar 07:54:44 AX kernel: pc : 00000000f78f33a4
10-Mar 07:54:44 AX kernel: lr : 00000000ffc00b80
10-Mar 07:54:44 AX kernel: sp : 00000000ffc00b80
10-Mar 07:54:44 AX kernel: x12: 0000000000000000
10-Mar 07:54:44 AX kernel: x11: 00000000ffc00e10 x10: 00000000f79e9de0
10-Mar 07:54:44 AX kernel: x9 : 0000000000000002 x8 : 0000000000000001
10-Mar 07:54:44 AX kernel: x7 : 00000000000000af x6 : 00000000ffc00dc0
10-Mar 07:54:44 AX kernel: x5 : 00000000ffc00dc0 x4 : 0000000000000006
10-Mar 07:54:44 AX kernel: x3 : 0000000000000008 x2 : 0000000000000000
10-Mar 07:54:44 AX kernel: x1 : 00000000ffc00b80 x0 : 0000000000000000
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top