What's new

Script to remove dcd crashes from system log

  • 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!

Then I'd double-check that the file /tmp/syslog.log is actually the one being used for the syslog (by opening it in an editor). I'd also check that it contains the block of text in the correct format that you're trying to delete, e.g. it starts with "kernel: dcd" and ends with "kernel: x1 ".
 
Then I'd double-check that the file /tmp/syslog.log is actually the one being used for the syslog (by opening it in an editor). I'd also check that it contains the block of text in the correct format that you're trying to delete, e.g. it starts with "kernel: dcd" and ends with "kernel: x1 ".
Thanks everyone for trying to help with this. It's really not a big deal. Just an annoyance.

I just checked. It does appear that /tmp/syslog.log is correct. It matches the log screen and when I "cleared" the log on the gui, the syslog.log also cleared.
Here's what they look like:
Nov 9 08:45:13 kernel: pgd = ffffffc0119f4000
Nov 9 08:45:13 kernel: [00000000] *pgd=00000000101d1003, *pud=00000000101d1003, *pmd=000000000348e003, *pte=0000000000000000
Nov 9 08:45:13 kernel: CPU: 1 PID: 26044 Comm: dcd Tainted: P O 4.1.27 #2
Nov 9 08:45:13 kernel: Hardware name: Broadcom-v8A (DT)
Nov 9 08:45:13 kernel: task: ffffffc014e8c140 ti: ffffffc00a65c000 task.ti: ffffffc00a65c000
Nov 9 08:45:13 kernel: PC is at 0xf75ddf44
Nov 9 08:45:13 kernel: LR is at 0x1dc74
Nov 9 08:45:13 kernel: pc : [<00000000f75ddf44>] lr : [<000000000001dc74>] pstate: 600e0010
Nov 9 08:45:13 kernel: sp : 00000000ffbe3b98
Nov 9 08:45:13 kernel: x12: 000000000009ff08
Nov 9 08:45:13 kernel: x11: 00000000f68ff024 x10: 00000000000a02ac
Nov 9 08:45:13 kernel: x9 : 00000000f68ff868 x8 : 00000000000a0764
Nov 9 08:45:13 kernel: x7 : 00000000f68ff8a0 x6 : 00000000000a075e
Nov 9 08:45:13 kernel: x5 : 0000000000000000 x4 : 00000000f68ff84c
Nov 9 08:45:13 kernel: x3 : 0000000000000000 x2 : 00000000ffbe3b74
Nov 9 08:45:13 kernel: x1 : 000000000007c66c x0 : 0000000000000000

EDIT: I just tried this and it worked... (changed dcd to pgd)
Code:
/bin/sed -i '/kernel: pgd/,/kernel: x1 /d' /tmp/syslog.log
 
EDIT: I just tried this and it worked... (changed dcd to pgd)
Code:
/bin/sed -i '/kernel: pgd/,/kernel: x1 /d' /tmp/syslog.log
That's strange. In the original posts which this tread is based on (e.g. here) there was another line immediately before those you have that looked like this:
Code:
Apr 25 12:51:53 kernel: dcd[8189]: unhandled level 3 translation fault (11) at 0x00000000, esr 0x92000007
So it sounds like you're missing that line, which is why the script didn't work.
 

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