<?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>16081</bug_id>
          
          <creation_ts>2025-11-27 09:06:40 +0000</creation_ts>
          <short_desc>bitbake: SemLock usage error on fedora43</short_desc>
          <delta_ts>2026-03-12 14:13:27 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>ccasciato</cc>
    
    <cc>philip</cc>
    
    <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>103399</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-11-27 09:06:40 +0000</bug_when>
    <thetext>We got this error on the Fedor43 worker:

ERROR: An uncaught exception occurred in runqueue
Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/qa-extras/build/layers/bitbake/lib/bb/runqueue.py&quot;, line 1663, in execute_runqueue
    return self._execute_runqueue()
           ~~~~~~~~~~~~~~~~~~~~~~^^
  File &quot;/srv/pokybuild/yocto-worker/qa-extras/build/layers/bitbake/lib/bb/runqueue.py&quot;, line 1607, in _execute_runqueue
    retval = self.dump_signatures(dumpsigs)
  File &quot;/srv/pokybuild/yocto-worker/qa-extras/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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103401</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-11-27 09:23:40 +0000</bug_when>
    <thetext>qa-extras fedora43-vk-1 master completed at 2025-11-24 02:29:07+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/99/builds/2754/steps/22/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103442</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-12-01 14:04:10 +0000</bug_when>
    <thetext>I think that:

bb/runqueue.py:from multiprocessing import Process

can be changed to:

bb/runqueue.py:from bb.multiprocessing import Process

to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104591</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-03-12 14:13:27 +0000</bug_when>
    <thetext>https://git.openembedded.org/bitbake/commit/?id=35866d55908009df429870b28cda0d2266074b48</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>