<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10324</bug_id>
          
          <creation_ts>2016-09-22 20:21:09 +0000</creation_ts>
          <short_desc>When running builds in a docker contain, they occasionally fail and close the container</short_desc>
          <delta_ts>2016-09-29 14:35:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>mark.asselstine</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>seebs</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66518</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-09-22 20:21:09 +0000</bug_when>
    <thetext>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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66551</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-09-23 14:57:56 +0000</bug_when>
    <thetext>Sent to oe-core list on 2016-09-22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66713</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-29 14:35:57 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2305c0038dd7d9d3bffd7babdffc81deafbe45a1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>