Bug 8268 - Killing bitbake with SIGKILL does not always kill child processes.
Summary: Killing bitbake with SIGKILL does not always kill child processes.
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High normal
Target Milestone: 1.9 M3
Assignee: Richard Purdie
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-08 11:37 UTC by Beth Flanagan
Modified: 2015-09-18 14:07 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Flanagan 2015-09-08 11:37:14 UTC
From:

https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64/builds/492

This build was interrupted by buildbot (SIGKILL) however processes are still hanging about:

[eflanagan@fedora21 ~]$ ps aux|grep bitbake
pokybui+  2345  0.0  0.0 217836  2400 ?        SNs  Sep04   0:05 python /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/bitbake/bin/bitbake-worker decafbad
pokybui+  2724  0.0  0.0 205440  2400 ?        SNs  Sep04   0:00 python /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/bitbake/bin/bitbake-worker decafbad
eflanag+  7005  0.0  0.0 113004  2340 pts/2    S+   11:26   0:00 grep --color=auto bitbake
pokybui+  8454  0.0  0.0 430820  3116 ?        SNs  Sep04   0:06 python /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/bitbake/bin/bitbake-worker decafbad

I would think that this isn't an autobuilder issue as the autobuilder is reporting:

command interrupted, attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=4928.831333

So autobuilder is picking up that it killed the parent process but it seems some of the children are still about.
Comment 2 Mihail Stanciu 2015-09-18 14:07:48 UTC
Verified on master: ea562de57590c966cd5a75fda8defecd397e6436