You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CPU family read lock can deadlock against a writer through its shared virtual alias #3878
Deadlock in the shipped CPU pool (current main, daa5dae)
The default pool config includes both cpu and model_loader:cpu. These keys share one _RWLock, but family read_lock("cpu") includes both keys and acquires that same lock twice. If a writer queues between the two acquisitions, the second read waits behind the writer, while the writer waits for the first read: a permanent cycle.
This standalone script controls only that interleaving and exits after observing the blocked daemon threads:
_RWLock.acquire_read prioritizes waiting writers and does not recognize a read held by the same thread. The global CPU pool config is in gptqmodel/__init__.py, and CPU input capture uses this family read lock.
Expected
Deduplicate lock identities before acquiring a group, or make read reentrancy compatible with writer priority. Add a deterministic alias/read/write interleaving test.
Activity
fix(threadx): acquire each distinct lock once per lock scope (ModelCl…