<?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>14595</bug_id>
          
          <creation_ts>2021-10-11 13:20:48 +0000</creation_ts>
          <short_desc>worker processes exit unexpectedly</short_desc>
          <delta_ts>2021-10-17 12:38:11 +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>core</component>
          <version>unspecified</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Perrot">thomas.perrot</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</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>91709</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Perrot">thomas.perrot</who>
    <bug_when>2021-10-11 13:20:48 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/108/builds/2167/steps/12/logs/stdio

qemux86-world-alt centos7-ty-4

ERROR: Worker process (29925) exited unexpectedly (1), shutting down...
ERROR: Worker process (29925) exited unexpectedly (1), shutting down...
ERROR: Worker process (29925) exited unexpectedly (1), shutting down...
ERROR: Worker process (29925) exited unexpectedly (1), shutting down...
NOTE: Sending SIGTERM to remaining 6 tasks
NOTE: Sending SIGTERM to remaining 6 tasks
NOTE: Sending SIGTERM to remaining 6 tasks
NOTE: Sending SIGTERM to remaining 6 tasks
NOTE: Tasks Summary: Attempted 14296 tasks of which 2007 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91747</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-14 14:37:23 +0000</bug_when>
    <thetext>Need to add more logging so that we can debug if it happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91748</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-10-14 14:37:59 +0000</bug_when>
    <thetext>From Richard:

https://autobuilder.yoctoproject.org/typhoon/#/builders/108/builds/2167

failed and logged in the grab the cookerdaemon log whilst they were still there.
In the log there was the traceback:

Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86-world-alt/build/bitbake/bin/bitbake-worker&quot;, line 513, in &lt;module&gt;
    worker.serve()
  File &quot;/home/pokybuild/yocto-worker/qemux86-world-alt/build/bitbake/bin/bitbake-worker&quot;, line 402, in serve
    self.handle_item(b&quot;newtaskhashes&quot;, self.handle_newtaskhashes)
  File &quot;/home/pokybuild/yocto-worker/qemux86-world-alt/build/bitbake/bin/bitbake-worker&quot;, line 420, in handle_item
    func(self.queue[(len(item) + 2):index])
  File &quot;/home/pokybuild/yocto-worker/qemux86-world-alt/build/bitbake/bin/bitbake-worker&quot;, line 444, in handle_newtaskhashes
    self.workerdata[&quot;newhashes&quot;] = pickle.loads(data)
_pickle.UnpicklingError: invalid load key, &apos;\x00&apos;.
invalid load key, &apos;\x00&apos;./home/pokybuild/yocto-worker/qemux86-world-alt/build/bitbake/lib/bb/runqueue.py:1329: ResourceWarning: unclosed file &lt;_io.BufferedWriter name=131&gt;
  self.worker = {}

Not sure why that could happen but it is helpful to have the data and we could
maybe improve that exception handling to dump the invalid data so the next time
it happens we get further info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91771</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-10-17 12:38:04 +0000</bug_when>
    <thetext>Debug added in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b8be48c718a40bf0abafa9aa15a33dfc6ce9937c which is all we can do until it fails again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91772</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-10-17 12:38:11 +0000</bug_when>
    <thetext>See above</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>