Bug 10324 - When running builds in a docker contain, they occasionally fail and close the container
Summary: When running builds in a docker contain, they occasionally fail and close the...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 2.2 M4
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-22 20:21 UTC by Mark Hatle
Modified: 2016-09-29 14:35 UTC (History)
6 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 Mark Hatle 2016-09-22 20:21:09 UTC
It was discovered that in some cases a build in a docker container would cause the container to terminate.  It appeared that the mini init program in the container would simply exist.

In a heavily loaded container, the child process might not started before the parent process had terminated.  The child process attempts to signal the parent with SIGUSR1.  If the parent had terminated, the parent becomes PID 1, which is generally init.  When it signaled pid 1, it caused the docker mini-init to terminate.

This doesn't happen in a traditional system, as systemd/sysvinit is protected to only root users can signal it.

This was fixed in the pseudo commit: 647ea4b1bc780b40a852e7e2d1439f700339e613
Comment 1 Mark Hatle 2016-09-23 14:57:56 UTC
Sent to oe-core list on 2016-09-22