Bug 13162 - oe-selftest hang due to wic process being unable to exit normally
Summary: oe-selftest hang due to wic process being unable to exit normally
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: ---
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-02-01 02:46 UTC by Chen Qi
Modified: 2019-02-14 08:16 UTC (History)
1 user (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 Chen Qi 2019-02-01 02:46:04 UTC
Sometimes, oe-selftest hang at wic test cases. I've met this situation for two times.
Below are some process information.
chenqi    2239  3585  0 Jan31 pts/16   00:00:00 /bin/sh -c wic create wictestdisk --image-name=core-image-minimal -D -o /buildarea5/chenqi/SWAT/poky/build-selftest/wic-tmp/
chenqi    2241  2239  0 Jan31 pts/16   00:00:00 python3 /buildarea5/chenqi/SWAT/poky/scripts/wic create wictestdisk --image-name=core-image-minimal -D -o /buildarea5/chenqi/SWAT/poky/build-selftest/wic-tmp/
chenqi   21859     1  0 Jan31 ?        00:00:00 python3 /buildarea5/chenqi/SWAT/poky/scripts/wic create wictestdisk --image-name=core-image-minimal -D -o /buildarea5/chenqi/SWAT/poky/build-selftest/wic-tmp/
chenqi   30288     1  0 Jan26 ?        00:00:00 python3 /buildarea5/chenqi/SWAT/poky/scripts/wic create wictestdisk --image-name=core-image-minimal --skip-build-check --outdir /buildarea5/chenqi/SWAT/poky/build-selftest/wic-tmp/
chenqi   31153     1  0 Jan30 ?        00:00:00 python3 /buildarea5/chenqi/SWAT/poky/scripts/wic create sdimage-bootpart -e core-image-minimal -o /buildarea5/chenqi/SWAT/poky/build-selftest/wic-tmp/

chenqi    2247  2241 99 Jan31 pts/16   16:15:47 python3 /buildarea5/chenqi/SWAT/poky/bitbake/bin/bitbake -e core-image-minimal

Process 2247 is blocked, causing test case hang there for more than 16 hours.
And there are some wic processes whose ppid is 1. This is unusual. I think there's some problem with it.
Comment 1 Richard Purdie 2019-02-07 15:32:37 UTC
I have a suspicion that http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=65a7662c5b83d56b7baff5cc4ee79051c3ced18c may fix this (wic starts bitbake server). Could you see if you can reproduce after that fix please?
Comment 2 Chen Qi 2019-02-14 08:16:39 UTC
I've tested with latest master, with the above patch, the problem does not occur any more.

bitbake: server/process: Add missing exception raise
The intent of the code was to catch one kind of error, it was actually swallowing
all exceptions and looping indefinitely. Fix it to work as intended.

This explains some mystery hangs we've been seeing.

(Bitbake rev: d73dbc3580faa1225d95ae4cefac4879ca3c1b2f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>