Skip to content

Make DeviceVarMtx recursive to avoid teardown self-deadlock - #1389

Open
zqb-all wants to merge 1 commit into
CHIP-SPV:mainfrom
zqb-all:recursive-DeviceVarMtx
Open

Make DeviceVarMtx recursive to avoid teardown self-deadlock#1389
zqb-all wants to merge 1 commit into
CHIP-SPV:mainfrom
zqb-all:recursive-DeviceVarMtx

Conversation

@zqb-all

@zqb-all zqb-all commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

getOrCreateModule() holds DeviceVarMtx across compile(). If the backend exits the process during compile (e.g. the SPIR-V translator calls exit() on an invalid module), the atexit path deallocateDeviceVariables() re-locks DeviceVarMtx on the same thread and deadlocks.

getOrCreateModule() holds DeviceVarMtx across compile(). If the backend
exits the process during compile (e.g. the SPIR-V translator calls exit()
on an invalid module), the atexit path deallocateDeviceVariables() re-locks
DeviceVarMtx on the same thread and deadlocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant