Summary: | genkernel 4.1.0-r2 running from chrooted environment creates zombie sh processes while using install livecd | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Juozas Pocius <juozaspo> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | juozaspo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/log/genkernel.log, partial output
lscpu output kernel .config file lspci -k /var/log/messages from livecd lsmod dmesg capture ps -Alf Screenshot of top program showing zombie process created by genkernel while in process tree mode |
Description
Juozas Pocius
2020-08-21 12:42:21 UTC
Created attachment 655892 [details]
lscpu output
Created attachment 655894 [details]
kernel .config file
Created attachment 655896 [details]
lspci -k
Created attachment 655898 [details]
/var/log/messages from livecd
Created attachment 655900 [details]
lsmod
Created attachment 655902 [details]
dmesg capture
Created attachment 655904 [details]
ps -Alf
Created attachment 655906 [details]
Screenshot of top program showing zombie process created by genkernel while in process tree mode
Virtualbox VM Configuration VM Type: Linux, Gentoo (64-bit) 992 MB ram on host with 2GB ram PIIX3 Chipset, PS2 Mouse emulation I/O APIC on, 2 processors, PAE/NX on 128 MB video ram, VMSVGA with 3D acceleration on Network: Bridged Adapter Where did you run genkernel? From ps tree it looks like within the livecd environment so I guess you run out of space. You are supposed to do that in chroot... I run it from chrooted environment entered from within livecd. On main livecd environment genkernel cannot be installed as there's no portage tools such as emerge coming with livecd, also ps -Alf shows all processes even when on livecd. (In reply to Juozas Pocius from comment #11) > I run it from chrooted environment entered from within livecd. On main > livecd environment genkernel cannot be installed as there's no portage tools > such as emerge coming with livecd, also ps -Alf shows all processes even > when on livecd. Clarification: ^__ ps -Alf on chroot, not livecd I cannot reproduce: I run your commands in HyperV instead of VirtualBox. Had a problem with grub (grub-install: error: cannot find EFI directory.) so I had to specify "--target=i386-pc" but this is unrelated. Yes, during kernel build and even initramfs creation, zombie counter in top will change from 0 to >=0. But for me it went down to 0 again and when genkernel was finished, no zombies were left. System was able to boot. So, are you really having a problem or are you just only concerned? Some zombies would remain, but I was able to get arround by issuing SIGCHLD signal to the parent of zombie process and that fixed it. The kernel boots fine after running grub-mkconfig -o /boot/grub/grub.cfg while in chroot to generate config file. > Some zombies would remain
Did they block you in any way? I.e. did genkernel hang until you killed them? Or did genkernel just normally like expected but you noticed the zombies?
(In reply to Thomas Deutschmann from comment #15) > > Some zombies would remain > > Did they block you in any way? I.e. did genkernel hang until you killed > them? Or did genkernel just normally like expected but you noticed the > zombies? Genkernel would hang if no jobs were left free w/o killing the zombies or sending SIGCHLD to their parent. Sorry, I don't know what to do with this bug report. I cannot reproduce. If this is happening as described, it shouldn't have any negative impact until you run genkernel in loop and will run out of PIDs at one point (that you cannot kill zombies is normal). Feel free to suggest a patch if you can reproduce and find the root cause. |