From one of my scripts, I called find
command, as a normal user (not root).
It was not returning/continuing, so I killed the script and find
is still running.
At htop
I see it is always using 100% of one core (4 cores here).
The core at 100% changes from time to time btw.
At htop, its state is 'R' (running), won't change after kill signals below.
I have tried: SIGKILL, SIGSTOP, SIGTERM, SIGABRT, hup, 15, none works.
Neither using sudo
.
I tried also all possible kill signals:
astr=(`kill -l |grep "..[)]" -o |tr -d ')'`)
for str in "${astr[@]}"; do echo "======== $str";kill -$str 2315444;ps -o pid,stat,status,state,pcpu,cmd -p 2315444;sleep 1;done
but after each, the result is always the same:
PID STAT STATUS S %CPU CMD
2315444 RN - R 99.5 find
apparmor
is running but find
is not listed on it (after checking), but stopping it didn't work either. SELinux is not running and I found yet no way to check for LSM here yet.
thinking about this I tried to forcefully umount the partition it was running at (what would cause no problem), and after doing so, find
was still running.
What else can I try, other than reboot?
There is nothing special at dmesg either.
Could it be a hardware failure? or a kernel bug?
I think it could have happened with any other process, not sure though. Maybe it is related to process that does hard drive IO?
OS.: Ubuntu 16.04
kill -9
?kill -l
:)strace
it to maybe see what it's doing?