<?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>16187</bug_id>
          
          <creation_ts>2026-03-03 08:58:08 +0000</creation_ts>
          <short_desc>AB-INT: bitbake: ForkingPickler: SemLock shared between fork and spawn context</short_desc>
          <delta_ts>2026-03-05 15:42:28 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>16184</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>104469</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-03 08:58:08 +0000</bug_when>
    <thetext>Another new AB-INT. This is probably related to #16184. I logged some errors in there, but the error is different enough so I create a separate entry.

ERROR: An uncaught exception occurred in runqueue
Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/bitbake/lib/bb/runqueue.py&quot;, line 1663, in execute_runqueue
    return self._execute_runqueue()
           ~~~~~~~~~~~~~~~~~~~~~~^^
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/bitbake/lib/bb/runqueue.py&quot;, line 1607, in _execute_runqueue
    retval = self.dump_signatures(dumpsigs)
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/bitbake/lib/bb/runqueue.py&quot;, line 1718, in dump_signatures
    p.start()
    ~~~~~~~^^
  File &quot;/usr/lib64/python3.14/multiprocessing/process.py&quot;, line 121, in start
    self._popen = self._Popen(self)
                  ~~~~~~~~~~~^^^^^^
  File &quot;/usr/lib64/python3.14/multiprocessing/context.py&quot;, line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.14/multiprocessing/context.py&quot;, line 300, in _Popen
    return Popen(process_obj)
  File &quot;/usr/lib64/python3.14/multiprocessing/popen_forkserver.py&quot;, line 35, in __init__
    super().__init__(process_obj)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.14/multiprocessing/popen_fork.py&quot;, line 20, in __init__
    self._launch(process_obj)
    ~~~~~~~~~~~~^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.14/multiprocessing/popen_forkserver.py&quot;, line 47, in _launch
    reduction.dump(process_obj, buf)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.14/multiprocessing/reduction.py&quot;, line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File &quot;/usr/lib64/python3.14/multiprocessing/synchronize.py&quot;, line 109, in __getstate__
    raise RuntimeError(&apos;A SemLock created in a fork context is being &apos;
    ...&lt;2 lines&gt;...
                       &apos;multiprocessing objects and Process.&apos;)
RuntimeError: A SemLock created in a fork context is being shared with a process in a spawn context. This is not supported. Please use the same context to create multiprocessing objects and Process.
when serializing dict item &apos;rlock&apos;
when serializing bb.server.process.ConnectionReader state
when serializing bb.server.process.ConnectionReader object
when serializing dict item &apos;command_channel&apos;
when serializing bb.server.process.ProcessServer state
when serializing bb.server.process.ProcessServer object
when serializing dict item &apos;process_server&apos;
when serializing bb.cooker.BBCooker state
when serializing bb.cooker.BBCooker object
when serializing dict item &apos;cooker&apos;
when serializing bb.runqueue.RunQueue state
when serializing bb.runqueue.RunQueue object
when serializing tuple item 0
when serializing method reconstructor arguments
when serializing method object
when serializing dict item &apos;_target&apos;
when serializing multiprocessing.context.Process state
when serializing multiprocessing.context.Process object</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104471</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-03 09:03:27 +0000</bug_when>
    <thetext>a-full fedora43-vk-2 mathieu/master-next completed at 2026-03-02 13:55:15+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3318/steps/31/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104490</commentid>
    <comment_count>2</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-04 12:12:47 +0000</bug_when>
    <thetext>qa-extras fedora43-vk-2 mathieu/master-next&amp;mathieu/master-next-tests completed at 2026-03-03 12:37:14+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/99/builds/3268/steps/22/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104519</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-05 15:41:06 +0000</bug_when>
    <thetext>Trevor to mark as a duplicate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104522</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2026-03-05 15:42:28 +0000</bug_when>
    <thetext>Looks like the same bug - need to fix the multiprocessing import.

*** This bug has been marked as a duplicate of bug 16184 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>