KhronosGroup / KhronosGroup/Vulkan-Tools

Windows vulkaninfo sometimes aborts with STATUS_INTEGER_DIVIDE_BY_ZERO

Open
#1,059 1 comment 0 reactions 0 assignees View on GitHub
bug vulkaninfo
Dominant language
C++
Stars
491
Forks
202
Avg merge
1h 37m
Merged PRs (30d)
4

Description

This first started appearing around loader 1.3.260. It's quite rare, only appearing a few times, and so far only on two CI test machines `tcwinamd3` and `tcwinnvi6`. It's likely tied to the particular version of `vulkaninfo` or the loader, though the fact that it appears in two different SDKs is concerning.

The symptoms appear as a failure to run `vulkaninfoSDK`, which is used on _every_ **Vulkan** CI job run to determine the configuraiton of the running machine:
```
INFO: executing #1: C:\VulkanSDK\1.3.275.0\Bin32\vulkaninfoSDK.exe -j
ERROR: execute() call failed after 0.28 seconds (0.28 seconds): returncode=3221225620 (0xc0000094=STATUS_INTEGER_DIVIDE_BY_ZERO); execution log index: 1, working directory: C:\j\workspace\setuptest\BITS\32\label\tcwinnvi6\vulkantest-results
ERROR: failure during run setup: execute(C:\VulkanSDK\1.3.275.0\Bin32\vulkaninfoSDK.exe -j) failed after 0.28 seconds (0.28 seconds) with returncode=3221225620 (0xc0000094=STATUS_INTEGER_DIVIDE_BY_ZERO)
```

So far it has appeared at least in these instances (it may have appeared in more developer runs that were never reported):
- 20240119 `tcwinamd3` 1.3.260
- 20240109 `tcwinamd3` 1.3.275
- 20240715 `tcwinnvi6` http://tcubuser.lunarg.localdomain:8080/job/Vulkan-ValidationLayers/17075/BITS=64,BUILD_MODE=Debug,label=Windows-NVIDIA-20XX-rolling-NDA/console
- 20240729 `tcwinnvi6` http://tcubuser.lunarg.localdomain:8080/view/Administration/job/setuptest/448/BITS=32,label=tcwinnvi6/console
- 20241210 `tcwinnvi6` http://tcubuser.lunarg.localdomain:8080/job/Vulkan-ValidationLayers/18284/BITS=64,BUILD_MODE=Debug,label=Windows-NVIDIA-20XX-rolling-NDA/console

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `vulkaninfoSDK -j` setup failure on the listed Windows CI machines, across the referenced SDK versions and 32-bit/64-bit runs. Compare the loader and `vulkaninfo` environments around the reported `STATUS_INTEGER_DIVIDE_BY_ZERO` failures; done means identifying the cause and confirming that CI setup no longer aborts.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.