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
Running VVL tests with UBSAN does show failing tests.
Here is an example:
[ RUN ] NegativeCommand.MultiDraw
/home/juaramos/projects/Vulkan-ValidationLayers/layers/core_checks/cc_drawdispatch.cpp:284:96: runtime error: member access within misaligned address 0x7ffdc5bf777d for type 'const struct VkMultiDrawIndexedInfoEXT', which requires 4 byte alignment
0x7ffdc5bf777d: note: pointer points here
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
^
Command "/home/juaramos/projects/Vulkan-ValidationLayers/build-ci/install/bin/vk_layer_validation_tests" failed with return code -6
NOTE: This doesn't need to be a new CI pass. This can just be added to ASAN testing.
GCC / Clang accept the following: -fsanitize=address,undefined.
NOTE: I had to set the environment variable UBSAN_OPTIONS to abort_on_error=1:halt_on_error=1 to get lldb to quickly point me to the exact problem when running the tests in vscode.
The text was updated successfully, but these errors were encountered:
Similar to the existing address sanitization and thread sanitization it's worth adding undefined behavior sanitization testing:
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
Running VVL tests with UBSAN does show failing tests.
Here is an example:
NOTE: This doesn't need to be a new CI pass. This can just be added to ASAN testing.
GCC / Clang accept the following:
-fsanitize=address,undefined
.NOTE: I had to set the environment variable
UBSAN_OPTIONS
toabort_on_error=1:halt_on_error=1
to get lldb to quickly point me to the exact problem when running the tests in vscode.The text was updated successfully, but these errors were encountered: