Defunct process consumes all CPU, init does not reap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have managed to create zombie process that consumes 100% of the CPU
and is unkillable. I see here two bugs
1. Zombie process should not have any CPU activity (only process
table slot should be consumed). Something is wrong with kernel
allowing a zombie process to still have executing thread.
2. After killing the process's parent, it is inherited by init process (pid 1).
Init should reap the zombie. This is not happening.
How to reproduce: Create over 4GB file on encrypted home directory. (This can
easily happen if you start downloading a torrent.)
Workaround: do not encrypt home directories. Given that the encrypted home directories
become dangerous for nonexpert users due to this bug, encrypt home directories option
should not be offered in the install process.
Discussion: While the culprit may appear to be ecryptfs kernel module
or ext4 or their interaction, I claim that despite module's
misbehaviour, it still should not be possible to have process in
zombie state executing a thread. I also claim that init still should
reap the process.
It is NOT a filesystem, disk, or crypto CPU performance problem
(filesystem continues to perform for all other purposes and I waited
over 30h for it to possibly sort itself out). It really is something
unduely stuck in kernel.
Distribution: LinuxMint 12 "lisa" based on Ubuntu 11.10 "Oneric" based on Debian?
apt-get upgrade run on 20120107
lsb_release -rd
Description: Linux Mint 12 Lisa
Release: 12
uname -a
Linux saz 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux
mount |grep ecrypt
/home/sk/.Private on /home/sk type ecryptfs (ecryptfs_
Potentially related bugs: #431975 (2009-09-17), #888497
Given that this is obvious and serious bug, it is quite sad that it
has not been fixed in 2 years. If there is no intent to support the
encrypted home directories, then the feature should be removed (at
least from install).
Cheers,
--Sampo
P.S. ubuntu-bug PID on the zombie process reports
*** Error: Invalid PID
The specified process ID does not belong to a program.
Press any key to continue...
No pending crash reports. Try --help for more information.
Perhaps ubuntu-bug should be more robust to be useful in submitting
bugs like this.
P.S2: It is quite annoying that I can't get past "Is one of these bugs the same bug"
question although this is genuinely different bug. I had to change the subject
line to be less descriptive to get past. Such automated braindamage *requires* me
to degrade the quality of my bug report.
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/913787/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]