#1142206 vkd3d: FTBFS on armhf: Most tests segfault

Package:
src:vkd3d
Source:
src:vkd3d
Submitter:
Simon McVittie
Date:
2026-08-08 15:51:04 UTC
Severity:
normal
Tags:
#1142206#5
Date:
2026-07-16 14:29:07 UTC
From:
To:
After fixing (or working around?) #1142193 with the patch that I
attached there, when I try to build vkd3d in an armhf chroot on the
arm64 porterbox amdahl, most of the test suite segfaults. See attached
test-suite.log.

When I tried to get a backtrace using gdb, I got multiple of these
warnings, which might be relevant:

% p=$(basename "$(pwd)"); d=; a=armhf; s="smcv${p:+"-$p"}${d:+"-$d"}${a:+"-$a"}"; schroot -c "$s" -r -- libtool --mode=execute linux32 gdb ./tests/hlsl_d3d12
...
warning: JITed object file architecture armv8-a is not compatible with target architecture armv7.

I don't know whether this failure mode would also occur on buildds, and
I don't think out-of-archive mechanisms like Salsa-CI and debusine offer
an armhf environment.

Wine upstream no longer supports 32-bit ARM, and nothing in Debian seems
to depend on vkd3d anyway, so I think it might be most realistic to drop
vkd3d from the armhf architecture and then ask the ftp team to remove
the old "cruft" binaries, rather than chasing after a solution to this.

    smcv

#1142206#10
Date:
2026-07-16 14:37:28 UTC
From:
To:
I was able to get this backtrace, which seems like the issue might be in
generated code (?) in Mesa, rather than vkd3d, if it helps:

smcv@amdahl ~/vkd3d % p=$(basename "$(pwd)"); d=; a=armhf; s="smcv${p:+"-$p"}${d:+"-$d"}${a:+"-$a"}"; schroot -c "$s" -r -- libtool --mode=execute env DEBUGINFOD_URLS=https://debuginfod.debian.net linux32 gdb ./tests/hlsl_d3d12
...
#0  0xf6fdee2e in vk_enqueue_cmd_pipeline_barrier2 (queue=queue@entry=0x23ef6e4, pDependencyInfo=<optimized out>)
     at src/vulkan/runtime/vk_cmd_queue.c:5664
#1  0xf6feb2d0 in vk_cmd_enqueue_CmdPipelineBarrier2 (commandBuffer=0x23ef180, pDependencyInfo=<optimized out>)
     at src/vulkan/runtime/vk_cmd_queue.c:15386
#2  0xf6fd7950 in vk_common_CmdPipelineBarrier (commandBuffer=0x23ef180, srcStageMask=<optimized out>,
     dstStageMask=2296, dependencyFlags=0, memoryBarrierCount=<optimized out>, pMemoryBarriers=<optimized out>,
     bufferMemoryBarrierCount=<optimized out>, pBufferMemoryBarriers=<optimized out>,
     imageMemoryBarrierCount=<optimized out>, pImageMemoryBarriers=<optimized out>)
     at ../src/vulkan/runtime/vk_synchronization.c:250
#3  0xf7f42ad2 in d3d12_command_list_transition_resource_to_initial_state (list=list@entry=0x239c110,
     resource=resource@entry=0x4b7148) at libs/vkd3d/command.c:2495
#4  0xf7f4765e in d3d12_command_list_track_resource_usage (list=0x239c110, resource=0x4b7148)
     at libs/vkd3d/command.c:2506
#5  d3d12_command_list_track_resource_usage (list=0x239c110, resource=0x4b7148) at libs/vkd3d/command.c:2499
#6  d3d12_command_list_clear_uav (list=list@entry=0x239c110, resource=resource@entry=0x4b7148, descriptor=0x4751f8,
     clear_colour=clear_colour@entry=0xfffef84c, rect_count=<optimized out>, rect_count@entry=0,
     rects=<optimized out>, rects@entry=0x0) at libs/vkd3d/command.c:5629
#7  0xf7f4c46e in d3d12_command_list_ClearUnorderedAccessViewUint (iface=0x239c110, gpu_handle=..., cpu_handle=...,
     resource=<optimized out>, values=<optimized out>, rect_count=<optimized out>, rects=<optimized out>)
     at libs/vkd3d/command.c:5853
#8  0x0040835c in ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint (This=0x239c110, gpu_handle=...,
     cpu_handle=..., resource=0x4b7148, values=0xfffefa24, rect_count=0, rects=0x0) at ./include/vkd3d_d3d12.h:5219
#9  test_thread_id () at tests/hlsl_d3d12.c:617
#10 0x00402970 in vkd3d_test_main (argc=<optimized out>, argv=<optimized out>) at tests/hlsl_d3d12.c:4039
#11 main (argc=1, argv=0xfffefc24) at ./include/private/vkd3d_test.h:314

     smcv

#1142206#15
Date:
2026-08-08 15:49:41 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
vkd3d, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1142206@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Kitt <skitt@debian.org> (supplier of updated vkd3d package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 08 Aug 2026 17:29:02 +0200
Source: vkd3d
Architecture: source
Version: 2.0+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Wine Party <debian-wine@lists.debian.org>
Changed-By: Stephen Kitt <skitt@debian.org>
Closes: 1055135 1142191 1142192 1142193 1142206 1142299
Changes:
 vkd3d (2.0+ds-2) unstable; urgency=medium
 .
   [ Simon McVittie ]
   * d/control: Add missing dependency libvkd3d-headers -> libvulkan-dev.
   * d/tests/control: Add missing dependencies for -dev test (Closes: #1142191).
   * d/tests/libvkd3d-dev: Use cross-compile-friendly executable names.
 .
   [ Stephen Kitt ]
   * Limit builds to supportable architectures
     (Closes: #1142192, #1142193, #1142206, #1142299).
   * Build on loong64 (Closes: #1055135).
Checksums-Sha1:
 009fa48024d57e93ea12bc5485f6e751e3d002ff 2993 vkd3d_2.0+ds-2.dsc
 339876145b6b9cf93d6f0040adeb4b87578d4f68 11708 vkd3d_2.0+ds-2.debian.tar.xz
 65cc82c444fcccdbda20215a7a6dc8505730c232 6933 vkd3d_2.0+ds-2_source.buildinfo
Checksums-Sha256:
 fc87d075f2328f57492ecbca1b6691ccb35d13164cc61a4410ebb1f5fc94c483 2993 vkd3d_2.0+ds-2.dsc
 0a028e6c9db08d2f57f303343b32222cc83cd675f115c8705b3c104497f68a1f 11708 vkd3d_2.0+ds-2.debian.tar.xz
 0a2b8d6ac223fb47392d5742594b6f861cf11e533ce06f3dedd537c12c44327a 6933 vkd3d_2.0+ds-2_source.buildinfo
Files:
 0a8534eeecd0c04f84bdc5f42e1c6aca 2993 libs optional vkd3d_2.0+ds-2.dsc
 86ce189af23fe5e355d7c1258dfa509c 11708 libs optional vkd3d_2.0+ds-2.debian.tar.xz
 7bfb202298eb3cd16005993e32612305 6933 libs optional vkd3d_2.0+ds-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAmp3S0wACgkQgNMC9Yht
g5xZyg//QXeqH0a8yd9Nhrad19eakx7gkIdLl28mW3nPJDCCevQwZphWMnHJKZdt
+MgVrOITYVugsESQsKImrMWJWq7HSjrHO187bVAmsCP/OWr8VKansjMvUgr041ZD
85diosGS8W/sGauMRZCMohLHXKe5NODfNg3+5ZbzJz4Kq/yqxKnIVioQc4wA2XI4
LKAq8avk8NYKH+IjKVTc/MhiCDJRBWv7X2toXq/jLu/P5VgNT4rTgK+vq0S2EB54
HdC0ZNuJLNKBh1ZUHFqb6FBUzCkPpKewhe8k0NnG1C2Q7vCa206ZGkQ8yIs+m9KN
agR7QAtwgx8XMzS9ofy864pGxjSRlwdA3U40a+iZCwciZMMRPKc+u4h0eQLXdItR
NjToy/RgEYwAr+Oqz/iZHHssnFR1wQWNF/ASdPLGhTBDM//hGswZNZhHaduvI55A
IWSMd+fpnfOZkPWIgk4Mj/609r8FUjoEjbWWqk7Y/KpcjhGyJbNoTTq9vPrpemwY
RpX3JSWJZ2R9u2/kWEV+KBsY/2auMF+p7M5edTJypow/Koaywx2qVuurVc+8DSt7
JFTfjJjINpkItfqefn9qKZXJPZPE6hgKM5WWxHhQ3urFmWM24SkrSmZtfe1Fbsn2
kgHGg4KCVoXDfxFyw6xnR4nB1k/YMonInuTlEU6FW0jYfosWVao=
=TBY9
-----END PGP SIGNATURE-----