<?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>16080</bug_id>
          
          <creation_ts>2025-11-27 08:59:09 +0000</creation_ts>
          <short_desc>bitbake: fork() use in multi-threaded warning</short_desc>
          <delta_ts>2026-02-13 12:47:47 +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</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Mathieu Dubois-Briand">mathieu.dubois-briand</assigned_to>
          <cc>ccasciato</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</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>103393</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-11-27 08:59:09 +0000</bug_when>
    <thetext>We got this warning on a few workers:

WARNING: /srv/pokybuild/yocto-worker/qemuarm64-armhost/build/layers/bitbake/lib/bb/daemonize.py:37: DeprecationWarning: This process (pid=1039305) is multi-threaded, use of fork() may lead to deadlocks in the child.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103394</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-11-27 09:01:00 +0000</bug_when>
    <thetext>qemuarm64-armhost debian13-vk-arm1 master-next completed at 2025-11-20 08:34:09+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/8/builds/2774/steps/12/logs/stdio

qemux86-alt opensuse155-vk-2 master-next completed at 2025-11-21 11:03:49+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/2733/steps/15/logs/stdio

qemuarm64-armhost debian13-vk-arm1 master-next completed at 2025-11-21 13:52:29+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/8/builds/2783/steps/12/logs/stdio

qemuarm-alt rocky8-vk-1 master completed at 2025-11-26 09:16:28+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/2761/steps/14/logs/stdio

qemuarm64-armhost debian13-vk-arm1 master completed at 2025-11-27 01:37:05+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/8/builds/2807/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103413</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-11-27 15:52:17 +0000</bug_when>
    <thetext>Probably &quot;fix&quot; by masking the warning... probably.
In theory we could deadlock but we&apos;ve been doing this for years and 
haven&apos;t had a real issue appear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103454</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-02 09:23:53 +0000</bug_when>
    <thetext>qemuarm64-ltp debian13-vk-arm1 mathieu/master-next completed at 2025-11-29 11:05:31+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/98/builds/2655/steps/11/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103469</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-03 12:48:28 +0000</bug_when>
    <thetext>qemuarm64-armhost debian13-vk-arm1 master completed at 2025-12-03 01:42:23+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/8/builds/2832/steps/12/logs/stdio

qemux86 ubuntu2404-vk-3 mathieu/master-next completed at 2025-12-03 10:07:58+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/30/builds/2788/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103486</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-04 09:32:42 +0000</bug_when>
    <thetext>qemuarm64-armhost debian13-vk-arm1 master completed at 2025-12-03 21:55:57+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/8/builds/2837/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103495</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-04 12:22:43 +0000</bug_when>
    <thetext>qemuarm64-ltp debian13-vk-arm1 mathieu/master-next completed at 2025-12-04 11:30:49+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/98/builds/2672/steps/11/logs/stdio

qemux86-world opensuse156-vk-1 mathieu/master-next completed at 2025-12-04 10:47:38+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/2825/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103499</commentid>
    <comment_count>7</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-05 12:09:04 +0000</bug_when>
    <thetext>I was not able to reproduce this locally, but I believe the filter we have in bitbake-server and bitbake-worker should be imported to bitbake-layers.

I&apos;ve created such a patch, I will let it sit in my branch for a few days to check if the issue is indeed fixed.

https://git.openembedded.org/bitbake-contrib/commit/?h=mathieu/master-next&amp;id=ba07270ef9fbdaeaf43f4ef18d71098e8e4cb11e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103507</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-08 10:18:01 +0000</bug_when>
    <thetext>qemuarm64-ptest debian13-vk-arm1 master completed at 2025-12-08 01:37:13+00:00
https://valkyrie.yocto.io/pub/non-release/20251208-8/testresults/qemuarm64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/2682/steps/11/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103511</commentid>
    <comment_count>9</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-09 08:31:00 +0000</bug_when>
    <thetext>Patch merged

https://git.openembedded.org/bitbake/commit/?id=8b02d65a6439b21d8bd5590dc0009f2cf29c1de8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103557</commentid>
    <comment_count>10</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-15 13:01:54 +0000</bug_when>
    <thetext>Reopen: I did miss that some occurrences were not from bitbake-config, but from the main bitbake script. Which is a bit strange IMO: why are we only seeing these kind of issues now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103558</commentid>
    <comment_count>11</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-15 13:11:35 +0000</bug_when>
    <thetext>qemux86-64-x32 rocky8-vk-1 mathieu/master-next completed at 2025-12-13 09:20:41+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/11/builds/2820/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103609</commentid>
    <comment_count>12</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-19 08:14:04 +0000</bug_when>
    <thetext>Sent a new fix: https://lists.openembedded.org/g/bitbake-devel/message/18612</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103687</commentid>
    <comment_count>13</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-05 09:48:28 +0000</bug_when>
    <thetext>qemux86-64-ltp ubuntu2404-vk-1 master completed at 2026-01-04 21:41:24+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/2792/steps/12/logs/stdio

SERIOUSLY!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103689</commentid>
    <comment_count>14</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2026-01-05 10:16:34 +0000</bug_when>
    <thetext>What if we put the filter in lib/bb/__init__.py? Does that work?
If that work, then bin/bitbake-xxx programs will not need that same filter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103690</commentid>
    <comment_count>15</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-05 10:35:58 +0000</bug_when>
    <thetext>(In reply to Chen Qi from comment #14)
&gt; What if we put the filter in lib/bb/__init__.py? Does that work?
&gt; If that work, then bin/bitbake-xxx programs will not need that same filter?

Looking at the documentation, this should work. I will try modify the code in that way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104069</commentid>
    <comment_count>16</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-26 14:07:08 +0000</bug_when>
    <thetext>Importing failures logged to the wrong bugzilla entry. All of these come from the &quot;bitbake&quot; script and should be fixed by the patch present in my branch.

qemuarm64-armhost debian13-vk-arm1 master completed at 2026-01-12 08:46:57+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/8/builds/3033/steps/13/logs/stdio

qemux86-64-ltp rocky8-vk-1 master-next completed at 2026-01-13 14:27:32+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/2840/steps/13/logs/stdio

qemuarm-oecore rocky8-vk-1 master-next completed at 2026-01-13 19:59:08+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/40/builds/3005/steps/13/logs/stdio

qemux86-alt rocky8-vk-1 master&amp;master-next completed at 2026-01-14 18:27:43+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/3001/steps/15/logs/stdio

qa-extras2 alma8-vk-2 master completed at 2026-01-14 20:43:31+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/26/builds/3011/steps/13/logs/stdio

qemux86-world-alt alma8-vk-1 master-next&amp;master completed at 2026-01-20 14:55:49+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/2903/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104132</commentid>
    <comment_count>17</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-31 09:25:14 +0000</bug_when>
    <thetext>qemuarm64 debian13-vk-2 master completed at 2026-01-31 02:28:11+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/36/builds/3120/steps/14/logs/stdio

qemux86-world ubuntu2504-vk-1 master completed at 2026-01-31 01:21:36+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/3121/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104150</commentid>
    <comment_count>18</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-04 12:04:36 +0000</bug_when>
    <thetext>wic opensuse155-vk-2 master completed at 2026-02-03 01:26:44+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/3075/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104296</commentid>
    <comment_count>19</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-13 12:47:47 +0000</bug_when>
    <thetext>New fix merged: https://git.openembedded.org/bitbake/commit/?id=2834c4dfa932547ba9e20e00895b8ac1e4ba9cd6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>