Repository navigation
Commit c924db3
committed
fix(compositor): share one wgpu device across the Linux unit tests
Vulkan-Loader 1.4.341 (Ubuntu 26.04, ubuntu-latest since 30/10/2026) walks
its global device list on every vkSetDebugUtilsObjectNameEXT and
vkGetDeviceProcAddr while vkDestroyDevice on another thread frees a node of
that list under a different lock. With one device per test, the parallel
suite read a freed loader_device and died in SIGSEGV. Fixed upstream in
KhronosGroup/Vulkan-Loader#1866, not in 1.4.341.
One device created once and never destroyed leaves no destruction racing the
tests, without serialising them.
(cherry picked from commit 5ae165e)1 parent 9a66b0e commit c924db3
3 files changed
Lines changed: 32 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4549 | 4549 | | |
4550 | 4550 | | |
4551 | 4551 | | |
4552 | | - | |
4553 | | - | |
4554 | | - | |
4555 | | - | |
4556 | | - | |
4557 | | - | |
4558 | | - | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
4559 | 4557 | | |
| 4558 | + | |
4560 | 4559 | | |
4561 | 4560 | | |
4562 | 4561 | | |
| |||
7215 | 7214 | | |
7216 | 7215 | | |
7217 | 7216 | | |
7218 | | - | |
| 7217 | + | |
7219 | 7218 | | |
7220 | 7219 | | |
7221 | 7220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
273 | 296 | | |
274 | 297 | | |
275 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | | - | |
| 1776 | + | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | 1779 | | |
| |||
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
1839 | | - | |
| 1839 | + | |
1840 | 1840 | | |
1841 | 1841 | | |
1842 | 1842 | | |
| |||
0 commit comments