Bug 16524

Summary: Runqueue deadlock warnings in multiconfig builds
Product: [Build System, Metadata & Runtime] BitBake Reporter: Mariam Elshakfy <Mariam.Elshakfy>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: NEW --- QA Contact:
Severity: minor    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 0.0.0   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Runqueue Deadlock Reproducer none

Description Mariam Elshakfy 2026-11-16 09:57:12 UTC
Created attachment 5259 [details]
Runqueue Deadlock Reproducer

When building with at least two BBMULTICONFIGs that have cross task dependencies via mcdepends and also share common dependencies (mostly native ones), BitBake reports multiple runqueue deadlocks during cached rebuilds.


This doesn't block the build, but spams the log with these warnings:

```
WARNING: Runqueue deadlocked on deferred tasks, forcing task .. blocked by ..
```

The attached patch contains a minimal layer and kas configuration for replicating the warnings.

Steps to reproduce:
1. Apply the reproducer patch to any empty repo.
2. Build twice:

  ```
  kas build kas/reproducer.yml
  kas build kas/reproducer.yml
  ```

3. Second build emits around 28 warnings for deadlocked tasks.

Expected result:
Less warning spam in the cached build log.

Last tested with:
- BitBake: f22df7e0e00be1f3c406138b8b7269d47ea491fe
- OE-Core: 34991d0ce3cc5f38dd29e824af7579512d2b917e
- kas 5.1
Comment 1 Richard Purdie 2026-11-17 12:03:24 UTC
I just posted two patches on the bitbake mailing list which address an issue kuje this, would you be able to test and see if those improve things please?