Bug 16524 - Runqueue deadlock warnings in multiconfig builds
Summary: Runqueue deadlock warnings in multiconfig builds
Status: NEW
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: All Multiple
: Undecided minor
Target Milestone: 0.0.0
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-11-16 09:57 UTC by Mariam Elshakfy
Modified: 2026-11-17 12:03 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Runqueue Deadlock Reproducer (7.18 KB, application/mbox)
2026-11-16 09:57 UTC, Mariam Elshakfy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?