Undefined behavior warnings caught by ROCPROFILER_DEFAULT_FAIL_REGEX (#23)
* Add regex for undefined behavior to ROCPROFILER_DEFAULT_FAIL_REGEX - add UBSAN_OPTIONS to setup-sanitizer-env.sh * Improve ROCPROFILER_DEFAULT_FAIL_REGEX * Use -fno-sanitize-recover=undefined flag - this compiler flag causes all undefined behavior errors to exit * Revert ROCPROFILER_DEFAULT_FAIL_REGEX * fix for shift overflow --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com> Co-authored-by: Manjunath-Jakaraddi <manjunath.jakaraddi@amd.com>
Cette révision appartient à :
@@ -61,8 +61,8 @@ mark_as_advanced(libdw_INCLUDE_DIR libdw_LIBRARY)
|
||||
|
||||
# default FAIL_REGULAR_EXPRESSION for tests
|
||||
set(ROCPROFILER_DEFAULT_FAIL_REGEX
|
||||
"threw an exception|Permission denied|Could not create logging file"
|
||||
CACHE STRING "Default FAIL_REGULAR_EXPRESSION for tests")
|
||||
"threw an exception|Permission denied|Could not create logging file|failed with error code"
|
||||
CACHE INTERNAL "Default FAIL_REGULAR_EXPRESSION for tests")
|
||||
|
||||
# build flags
|
||||
add_library(rocprofiler-sdk-samples-build-flags INTERFACE)
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur